[Tile-serving] [osm2pgsql] change directory for tests if TEST_DATA_DIR is present (#496)
alex85k
notifications at github.com
Thu Nov 5 08:35:39 UTC 2015
https://github.com/openstreetmap/osm2pgsql/issues/490
This patch solves the problem of missing files in tests.
To run tests from any directory one need to add environment variable
```
export TEST_DATA_DIR=/path/to/osm2pgsql_sources
```
(if the variable is not present, the tests will get data from current directory)
ctest did not need it, it had WORKING_DIRECTORY in it.
If we want to just run executable without setting TEST_DATA_DIR, only auto-hardcoding in source can help. Will do it if really needed.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/496
-- Commit Summary --
* change directory for tests if TEST_DATA_DIR is present
-- File Changes --
M tests/CMakeLists.txt (2)
A tests/common-chdir.hpp (14)
M tests/test-hstore-match-only.cpp (2)
M tests/test-middle-flat.cpp (2)
M tests/test-middle-pgsql.cpp (2)
M tests/test-options-parse.cpp (3)
M tests/test-output-multi-line-storage.cpp (2)
M tests/test-output-multi-line.cpp (2)
M tests/test-output-multi-point-multi-table.cpp (2)
M tests/test-output-multi-point.cpp (2)
M tests/test-output-multi-poly-trivial.cpp (2)
M tests/test-output-multi-polygon.cpp (2)
M tests/test-output-multi-tags.cpp (2)
M tests/test-output-pgsql-schema.cpp (2)
M tests/test-output-pgsql-tablespace.cpp (2)
M tests/test-output-pgsql-z_order.cpp (3)
M tests/test-output-pgsql.cpp (2)
M tests/test-parse-xml2.cpp (4)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/496.patch
https://github.com/openstreetmap/osm2pgsql/pull/496.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/496
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151105/67162ab8/attachment.html>
More information about the Tile-serving
mailing list