X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsubr.sh;h=8980035eb98148d7f1f94407346ad29260838160;hb=13bf1193b6c3429a5881a5d604daea33a187a5b2;hp=84ee1a4b8955d637c09520750b4f43aff25848c5;hpb=c5e9ad7d244be10589cf079e36422ffe005d0e67;p=sbcl.git diff --git a/tests/subr.sh b/tests/subr.sh index 84ee1a4..8980035 100644 --- a/tests/subr.sh +++ b/tests/subr.sh @@ -26,16 +26,17 @@ set -u set -a # export all variables at assignment-time. # Note: any script that uses the variables that name files should # quote them (with double quotes), to contend with whitespace. -SBCL_HOME="$SBCL_PWD/../contrib" -SBCL_CORE="$SBCL_PWD/../output/sbcl.core" -SBCL_RUNTIME="$SBCL_PWD/../src/runtime/sbcl" -SBCL_ARGS="--noinform --no-sysinit --no-userinit --noprint --disable-debugger" +SBCL_HOME="${TEST_SBCL_HOME:-$SBCL_PWD/../contrib}" +SBCL_CORE="${TEST_SBCL_CORE:-$SBCL_PWD/../output/sbcl.core}" +SBCL_RUNTIME="${TEST_SBCL_RUNTIME:-$SBCL_PWD/../src/runtime/sbcl}" +SBCL_ARGS="${TEST_SBCL_ARGS:---noinform --no-sysinit --no-userinit --noprint --disable-debugger}" # Scripts that use these variables should quote them. TEST_BASENAME="`basename $0`" -TEST_FILESTEM="`basename "${TEST_BASENAME}" | sed 's/\.sh$//'`" -TEST_FILESTEM="`echo "${TEST_FILESTEM}" | sed 's/\./-/g'`" -TEST_DIRECTORY="$SBCL_PWD/$TEST_FILESTEM-$$" +TEST_FILESTEM="$(basename "${TEST_BASENAME}" | sed 's/\.sh$// ; s/\./-/g')" +: ${TEST_BASEDIR:="$SBCL_PWD"} +TEST_DIRECTORY="${TEST_BASEDIR}/${TEST_FILESTEM}-$$" +export TEST_DIRECTORY # "Ten four" is the closest numerical slang I can find to "OK", so # it's the Unix status value that we expect from a successful test.