diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-05 22:55:01 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-01-05 23:50:38 +0100 |
| commit | cff5dd526edebd8aefa4405e7a9ddf7914fd79fc (patch) | |
| tree | 75d10eb9111b7f2a72ff611a1d6ae8b5539a8176 /data/Makefile.am | |
| parent | 5be02bf6d1d45ac0d835c138074611843982e9e8 (diff) | |
| download | PROJ-cff5dd526edebd8aefa4405e7a9ddf7914fd79fc.tar.gz PROJ-cff5dd526edebd8aefa4405e7a9ddf7914fd79fc.zip | |
Make sure tests pass if extra grids are present
Should fix the issue reported in https://lists.osgeo.org/pipermail/proj/2020-January/009188.html
Some extra north-american grids present in data/ can affect the results of
some tests, so create a data/for_tests/ subdirectory in which we copy only
select grids.
Diffstat (limited to 'data/Makefile.am')
| -rw-r--r-- | data/Makefile.am | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index e7c38d7c..7e822381 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -96,12 +96,39 @@ proj.db: $(DATAPATH)/sql/*.sql fi # For out-of-tree builds, link all file of the source data dir to the generated data +# Also link select resource files in a for_tests subdirectory so that we are not +# influenced by the presence of other grids check-local: @if [ ! -f GL27 ]; then \ for x in $(DATAPATH)/*; do \ ln -sf $$x .; \ done \ - fi + fi; \ + rm -rf for_tests; \ + mkdir for_tests; \ + for x in $(DATAPATH)/null \ + $(DATAPATH)/GL27 \ + $(DATAPATH)/nad27 \ + $(DATAPATH)/nad83 \ + $(DATAPATH)/ntv1_can.dat \ + $(DATAPATH)/MD \ + $(DATAPATH)/ntf_r93.gsb \ + $(DATAPATH)/egm96_15.gtx \ + $(DATAPATH)/ntv2_0.gsb \ + $(DATAPATH)/conus \ + $(DATAPATH)/alaska \ + $(DATAPATH)/nzgd2kgrid0005.gsb \ + $(DATAPATH)/ITRF2000 \ + $(DATAPATH)/BETA2007.gsb; \ + do \ + if test -f "$$x" ; then \ + ln -sf "../$$x" for_tests; \ + else \ + echo "WARNING: grid $$x missing: some tests will be skipped"; \ + fi \ + done; \ + ln -sf ../proj.db for_tests clean-local: $(RM) proj.db + $(RM) -rf for_tests |
