X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a7ce6ecebce9ee549a8367f048ef5468ef16768c..dc1f54e0b883f7deec844b7acd87d5c9ad9b306d:/test/runalltests diff --git a/test/runalltests b/test/runalltests index 0497c52b..340be0a4 100755 --- a/test/runalltests +++ b/test/runalltests @@ -1,7 +1,17 @@ #!/bin/sh -# Note that we ignore *~ files as these are probably editor backups -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