X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4df7868d39f4f6c5708dc2fd15af7dcd5a9cbae1..3459d319d1ea16c51937ec5e2046a48d8f54050c:/testsuite/master.test diff --git a/testsuite/master.test b/testsuite/master.test index 4f9f2866..2260386e 100755 --- a/testsuite/master.test +++ b/testsuite/master.test @@ -17,16 +17,27 @@ # build scripts. It might be relative, so we need to make it # absolute. +# testdir is a scratch directory for holding temporary test files. + # The pwd is undefined when this script starts. +set -e + +if ! [ -d "$testdir" ] && ! mkdir "$testdir" +then + echo "warning: testdir $testdir is not a directory!" >&2 + exit 1 +fi + +testdir=`cd $testdir && pwd` + srcdir=`cd $srcdir && pwd` echo "============================================================" echo "$0 running in `pwd`" echo " rsync_bin=$rsync_bin" echo " srcdir=$srcdir" - -set -e +echo " testdir=$testdir" test_names="rsync-hello hands"