clean up "helper" files

This commit is contained in:
Ben Merritt 2018-06-16 15:16:53 -07:00
parent e267a9216d
commit 76d8bdeca3
No known key found for this signature in database
GPG Key ID: F8AD20ED4E6239B7
8 changed files with 23 additions and 34 deletions

View File

@ -1,2 +1,9 @@
/.git /.git
/.vscode /.vscode
/**/*.o
/**/*.so
/results/
/regression.diffs
/regression.out

10
.gitignore vendored
View File

@ -1,7 +1,7 @@
*.swp /**/*.o
*.o /**/*.so
*.so
regression.diffs
regression.out
/results/ /results/
/regression.diffs
/regression.out

View File

@ -28,6 +28,7 @@
"includePath": [ "includePath": [
"/usr/include", "/usr/include",
"/usr/local/include", "/usr/local/include",
"/usr/include/postgresql/server",
"${workspaceRoot}" "${workspaceRoot}"
], ],
"defines": [], "defines": [],
@ -75,15 +76,7 @@
"intelliSenseMode": "clang-x64", "intelliSenseMode": "clang-x64",
"includePath": [ "includePath": [
"${workspaceRoot}", "${workspaceRoot}",
"${workspaceRoot}/src", "${workspaceRoot}/src"
"${localappdata}/lxss/rootfs/usr/include/c++/5",
"${localappdata}/lxss/rootfs/usr/include/x86_64-linux-gnu/c++/5",
"${localappdata}/lxss/rootfs/usr/include/c++/5/backward",
"${localappdata}/lxss/rootfs/usr/lib/gcc/x86_64-linux-gnu/5/include",
"${localappdata}/lxss/rootfs/usr/local/include",
"${localappdata}/lxss/rootfs/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed",
"${localappdata}/lxss/rootfs/usr/include/x86_64-linux-gnu",
"${localappdata}/lxss/rootfs/usr/include"
], ],
"defines": [ "defines": [
"__linux__", "__linux__",
@ -106,5 +99,5 @@
} }
} }
], ],
"version": 3 "version": 4
} }

View File

@ -30,9 +30,3 @@ SHLIB_LINK := -lphonenumber -lstdc++
PG_CONFIG := pg_config PG_CONFIG := pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs) PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)
# Docker stuff
.PHONY: docker-image
docker-image: clean
docker build -t pg_libphonenumber .

View File

@ -49,8 +49,4 @@ sudo make install
## Running tests ## Running tests
For convenience, we provide a Docker image that sets up a test environment. For convenience, we provide a Docker image that sets up a test environment.
Run the script `./run-tests.sh` to build and run the image.
```shell-script
make docker-image
docker run -it pg_libphonenumber
```

View File

@ -3,8 +3,7 @@
# Used in the Docker image to run tests # Used in the Docker image to run tests
PGDATA=/var/lib/postgresql/data PGDATA=/var/lib/postgresql/data
# Reads PG_MAJOR from the environment
pg_ctl=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_ctl pg_ctl=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_ctl
$pg_ctl "--pgdata=${PGDATA}" start -w "$pg_ctl" "--pgdata=${PGDATA}" start -w
make installcheck make installcheck
$pg_ctl "--pgdata=${PGDATA}" stop "$pg_ctl" "--pgdata=${PGDATA}" stop

4
run-tests.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
docker build -t pg_libphonenumber_test -f docker/Dockerfile .
docker run -it --rm --mount type=tmpfs,destination=/var/lib/postgresql/data pg_libphonenumber_test

View File

@ -1,4 +0,0 @@
#!/bin/sh
docker build -t pg_libphonenumber_test -f docker/Dockerfile .
docker run -it --mount type=tmpfs,destination=/var/lib/postgresql/data pg_libphonenumber_test