]> diplodocus.org Git - nmh/blobdiff - test/runalltests
Some tests failed because they displayed the user's local
[nmh] / test / runalltests
index b43d42ce784bf42f115e735eacd8f4e5b7a5d001..340be0a46e06832e39d6cc49cba09593c35685c0 100755 (executable)
@@ -1,6 +1,17 @@
 #!/bin/sh
 
-for i in `find tests -name 'test-*' -type f`;
+status=0
+
+# Get full pathnames that we'll need.
+cd `dirname $0`
+testdir=`pwd`
+
+test -d testinstall || ./setup-test
+
+# 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