From: Michael Orlitzky Date: Tue, 8 Aug 2023 14:52:55 +0000 (-0400) Subject: run-tests.sh: hack a path to allow ./run-tests.sh outside of automake X-Git-Tag: 0.0.1~2 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b1395a9dd2be84ad26f38536358451e46e947aef;p=libsvgtiny-pixbuf.git run-tests.sh: hack a path to allow ./run-tests.sh outside of automake --- diff --git a/run-tests.sh b/run-tests.sh index cd25d0c..ad311f7 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -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"