aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-28 12:03:20 +0100
committerGitHub <noreply@github.com>2020-01-28 12:03:20 +0100
commitf2efd1d73c6c56531280604fd27c73fb13b41206 (patch)
tree93b2016db24e875ccebb43abcd2de43a41d1f698 /test
parenta4c5cc1e42559f1d92c6b7655680d11f1eead703 (diff)
parent15814256e2fbbc2702422fd3d09d3a0f6be60006 (diff)
downloadPROJ-f2efd1d73c6c56531280604fd27c73fb13b41206.tar.gz
PROJ-f2efd1d73c6c56531280604fd27c73fb13b41206.zip
Merge pull request #1892 from rouault/add_projinfo_searchpaths
projinfo: add --searchpaths switch
Diffstat (limited to 'test')
-rwxr-xr-xtest/cli/testprojinfo26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo
index b9c452fb..4ec1bdbb 100755
--- a/test/cli/testprojinfo
+++ b/test/cli/testprojinfo
@@ -175,6 +175,32 @@ echo 'Testing -k operation EPSG:8457 -o PROJ -q' >> ${OUT}
$EXE -k operation EPSG:8457 -o PROJ -q >>${OUT} 2>&1
echo "" >>${OUT}
+# Testing --searchpaths
+if ! $EXE --searchpaths > testprojinfo_out_searchpaths.txt; then
+ echo "--searchpaths failed"
+ exit 100
+fi
+# Hard to test content of testprojinfo_out_searchpaths.txt
+rm testprojinfo_out_searchpaths.txt
+
+# Testing --remote-data
+if ! $EXE --remote-data > testprojinfo_out_remotedata.txt; then
+ echo "--remote-data failed"
+ exit 100
+fi
+# Hard to test content of testprojinfo_out_remotedata.txt
+rm testprojinfo_out_remotedata.txt
+
+# Testing --remote-data
+export PROJ_NETWORK=ON
+if ! $EXE --remote-data > testprojinfo_out_remotedata.txt; then
+ echo "--remote-data failed"
+ exit 100
+fi
+# Hard to test content of testprojinfo_out_remotedata.txt
+rm testprojinfo_out_remotedata.txt
+unset PROJ_NETWORK
+
# do 'diff' with distribution results
echo "diff ${OUT} with testprojinfo_out.dist"
diff -u ${OUT} ${TEST_CLI_DIR}/testprojinfo_out.dist