Redraft testsuite driver script to unify 'make check', 'make
[rsync.git] / Makefile.in
index 7e3df7922bc24ce033bd2fc1add7d1e8f65f9f1c..d2799c71e669459bdbf4375dc1e4adc1b368fad0 100644 (file)
@@ -91,5 +91,16 @@ finddead:
 
 test: check
 
+
+# There seems to be no standard way to specify some variables as
+# exported from a Makefile apart from listing them like this.
+
+# TODO: These targets both ought to depend on a set of test programs
+# to build, if any.
+
 check:
-       rsync_bin=`pwd`/rsync srcdir="$(srcdir)" testdir=`pwd`/testdir $(srcdir)/testsuite/master.test
+       rsync_bin=./rsync srcdir="$(srcdir)" $(srcdir)/runtests.sh
+
+installcheck:
+       rsync_bin="$(bindir)/rsync" srcdir="$(srcdir)" $(srcdir)/runtests.sh
+