Always run setup-test from make test/runalltests, just in case the test build directo...
[mmh] / test / runalltests
index 0497c52..48ba7f1 100755 (executable)
@@ -1,7 +1,18 @@
 #!/bin/sh
 
-# Note that we ignore *~ files as these are probably editor backups
-for i in `find tests -name 'test-*[!~]' -type f`;
+# Get full pathnames that we'll need.
+cd `dirname $0`
+testdir=`pwd`
+
+# Always run setup-test in case the code or configuration has changed.
+./setup-test
+
+status=0
+
+# Note that we ignore *~ files as these are probably editor backups.
+for i in `find . -name 'test-*[!~]' -type f`
 do
-    ./runtest $i
+    $testdir/runtest $i || status=$?
 done
+
+exit $status