Skip to content
Snippets Groups Projects
Commit eb5920a1 authored by Niels Möller's avatar Niels Möller
Browse files

New -v option, propagated to test programs.

Rev: misc/run-tests:1.4
parent eb13d978
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ failed=0 ...@@ -4,6 +4,7 @@ failed=0
all=0 all=0
debug='no' debug='no'
testflags=''
if [ -z "$srcdir" ] ; then if [ -z "$srcdir" ] ; then
srcdir=`pwd` srcdir=`pwd`
...@@ -31,7 +32,7 @@ env_program () { ...@@ -31,7 +32,7 @@ env_program () {
test_program () { test_program () {
testname=`basename "$1" .exe` testname=`basename "$1" .exe`
testname=`basename "$testname" -test` testname=`basename "$testname" -test`
"$1" "$1" $testflags
case "$?" in case "$?" in
0) 0)
echo PASS: $testname echo PASS: $testname
...@@ -56,6 +57,9 @@ do ...@@ -56,6 +57,9 @@ do
--debug) --debug)
debug=yes debug=yes
;; ;;
-v)
testflags='-v'
;;
-*) -*)
echo >&2 'Unknown option `'"$1'" echo >&2 'Unknown option `'"$1'"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment