Commit 82323812 authored by Niels Möller's avatar Niels Möller

Added --debug option. If used, the teardown-env

script is not run.

Rev: misc/run-tests:1.3
parent 95da24d5
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
failed=0 failed=0
all=0 all=0
debug='no'
if [ -z "$srcdir" ] ; then if [ -z "$srcdir" ] ; then
srcdir=`pwd` srcdir=`pwd`
fi fi
...@@ -48,6 +50,23 @@ test_program () { ...@@ -48,6 +50,23 @@ test_program () {
env_program `find_program setup-env` env_program `find_program setup-env`
while test $# != 0
do
case "$1" in
--debug)
debug=yes
;;
-*)
echo >&2 'Unknown option `'"$1'"
exit 1
;;
*)
break
;;
esac
shift
done
if [ $# -eq 0 ] ; then if [ $# -eq 0 ] ; then
for f in *-test; do test_program "./$f"; done for f in *-test; do test_program "./$f"; done
else else
...@@ -64,7 +83,9 @@ echo "$dashes" ...@@ -64,7 +83,9 @@ echo "$dashes"
echo "$banner" echo "$banner"
echo "$dashes" echo "$dashes"
env_program `find_program teardown-env` if [ "x$debug" = xno ] ; then
env_program `find_program teardown-env`
fi
[ "$failed" -eq 0 ] [ "$failed" -eq 0 ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment