X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/031871c2ede845956070da603e8494690f7beb70..9ea2daf5e74e3ff03043cfa6fb68033aea0da52a:/test/runalltests diff --git a/test/runalltests b/test/runalltests index b43d42ce..340be0a4 100755 --- a/test/runalltests +++ b/test/runalltests @@ -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