Commit 3459d319 authored by Martin Pool's avatar Martin Pool

Set up scratch directory for tests.

parent 09ec75a6
......@@ -5,4 +5,5 @@ config.h
config.log
config.status
rsync
testdir
zlib/dummy
......@@ -92,4 +92,4 @@ finddead:
test: check
check:
rsync_bin=`pwd`/rsync srcdir="$(srcdir)" $(srcdir)/testsuite/master.test
rsync_bin=`pwd`/rsync srcdir="$(srcdir)" testdir=`pwd`/testdir $(srcdir)/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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment