Commit 42be5918 authored by Martin Pool's avatar Martin Pool

Remove testtmp directory on 'clean'.

Run test scripts in POSIX mode to try to catch portability problems.
parent 3a4c683f
...@@ -73,6 +73,7 @@ proto: ...@@ -73,6 +73,7 @@ proto:
clean: clean:
rm -f *~ $(OBJS) rsync rm -f *~ $(OBJS) rsync
rm -rf ./testtmp
distclean: clean distclean: clean
rm -f config.h config.cache config.status Makefile rm -f config.h config.cache config.status Makefile
...@@ -101,13 +102,17 @@ test: check ...@@ -101,13 +102,17 @@ test: check
# This depends on building rsync; if we need any helper programs it # This depends on building rsync; if we need any helper programs it
# should depend on them too. # should depend on them too.
# We try to run the scripts with POSIX mode on, in the hope that will
# catch Bash-isms earlier even if we're running on GNU. Of course, we
# might lose in the future where POSIX diverges from old sh.
check: all check: all
rsync_bin=./rsync srcdir="$(srcdir)" $(srcdir)/runtests.sh POSIXLY_CORRECT=1 rsync_bin=./rsync srcdir="$(srcdir)" $(srcdir)/runtests.sh
# This does *not* depend on building or installing: you can use it to # This does *not* depend on building or installing: you can use it to
# check a version installed from a binary or some other source tree, # check a version installed from a binary or some other source tree,
# if you want. # if you want.
installcheck: installcheck:
rsync_bin="$(bindir)/rsync" srcdir="$(srcdir)" $(srcdir)/runtests.sh POSIXLY_CORRECT=1 rsync_bin="$(bindir)/rsync" srcdir="$(srcdir)" $(srcdir)/runtests.sh
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