aboutsummaryrefslogtreecommitdiff
path: root/test/cli
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-27 20:38:40 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-27 20:38:40 +0100
commit15814256e2fbbc2702422fd3d09d3a0f6be60006 (patch)
tree93b2016db24e875ccebb43abcd2de43a41d1f698 /test/cli
parentea6245ea32f0b0ee414c22951b1f5dc4048782de (diff)
downloadPROJ-15814256e2fbbc2702422fd3d09d3a0f6be60006.tar.gz
PROJ-15814256e2fbbc2702422fd3d09d3a0f6be60006.zip
projinfo: add --remote-data switch
Diffstat (limited to 'test/cli')
-rwxr-xr-xtest/cli/testprojinfo18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/cli/testprojinfo b/test/cli/testprojinfo
index 5cc425c5..4ec1bdbb 100755
--- a/test/cli/testprojinfo
+++ b/test/cli/testprojinfo
@@ -183,6 +183,24 @@ 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