aboutsummaryrefslogtreecommitdiff
path: root/test/postinstall/c_app/test_searchpath.sh
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-12-09 00:45:03 +1300
committerGitHub <noreply@github.com>2021-12-09 00:45:03 +1300
commit7a9b6566ac02d8c408f4f3758bfa5fcc3e90b552 (patch)
treed71d0771cc9f95d5a8ea96bd975bbd4164188813 /test/postinstall/c_app/test_searchpath.sh
parent1b18defb63c7d2420d18e4375348663874247838 (diff)
downloadPROJ-7a9b6566ac02d8c408f4f3758bfa5fcc3e90b552.tar.gz
PROJ-7a9b6566ac02d8c408f4f3758bfa5fcc3e90b552.zip
Refactor post-install suite to test shared and static projlib (#2972)
Diffstat (limited to 'test/postinstall/c_app/test_searchpath.sh')
-rwxr-xr-xtest/postinstall/c_app/test_searchpath.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/postinstall/c_app/test_searchpath.sh b/test/postinstall/c_app/test_searchpath.sh
new file mode 100755
index 00000000..0bd4feab
--- /dev/null
+++ b/test/postinstall/c_app/test_searchpath.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+. ../common.sh
+
+PROGRAM_SEARCHPATH="$(./c_app -s)"
+EXPECTED_SEARCHPATH="$(pkg-config proj --variable=datadir)"
+
+test_searchpath "${PROGRAM_SEARCHPATH}" "${EXPECTED_SEARCHPATH}"