]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
run-tests.sh: hack a path to allow ./run-tests.sh outside of automake
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 14:52:55 +0000 (10:52 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Aug 2023 14:52:55 +0000 (10:52 -0400)
run-tests.sh

index cd25d0c67971c2768ef4b9496a6d62d1c20c5383..ad311f785476c3c9558c7d9f5dbf6f0b0acbab02 100755 (executable)
@@ -15,6 +15,9 @@ LOADERS_CACHE=$(pwd)/loaders.cache
 GDK_PIXBUF_MODULEDIR=.libs gdk-pixbuf-query-loaders > "${LOADERS_CACHE}"
 export GDK_PIXBUF_MODULE_FILE="${LOADERS_CACHE}"
 
+# Support running the test suite outside of automake
+test -z "${test_cases}" && test_cases=test-cases
+
 TEST_CASES=$(find ${test_cases} -type f -name '*.svg')
 for f in $TEST_CASES; do
     g="$(basename "${f}").png"