X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=testkit%2Fprepare_tools.sh;h=97aa6f2448dd22629659ac202403ea816d1a1ac9;hb=0de1caf60da973466329eb1cf094aa4bc4acc663;hp=9186522eed70a00fcc94b18844ed2c3f4ab103a8;hpb=19ee386361579e1c524d01371fe1076bbd9e0a12;p=feisty_meow.git diff --git a/testkit/prepare_tools.sh b/testkit/prepare_tools.sh index 9186522e..97aa6f24 100644 --- a/testkit/prepare_tools.sh +++ b/testkit/prepare_tools.sh @@ -43,6 +43,16 @@ GRITTY_TESTING_TOP_LEVEL="$(echo "$GRITTY_TESTING_TOP_LEVEL" | sed -e 's/\/cygdr # the top-level directory for tests, i.e. the root of testing hierarchy. export TESTKIT_ROOT="$GRITTY_TESTING_TOP_LEVEL" +# location needed for shunit temporary files. +export TMPDIR="$HOME/.shunit-temp" +if [ ! -d "$TMPDIR" ]; then + mkdir -p "$TMPDIR" + if [ $? -ne 0 ]; then + echo "Failure during creation of TMPDIR for shunit!" + exit 1 + fi +fi + # a bit of a dance to not pull in code too early... export TESTKIT_BOOTSTRAPPING=true source "$TESTKIT_ROOT/library/establish_environment.sh"