summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2005-11-25 14:09:40 +0100
committerNiels Möller <nisse@lysator.liu.se>2005-11-25 14:09:40 +0100
commiteb5920a107322fc793eeec4adbe469e09b05e2d1 (patch)
tree380571e83a67c0aaca8554eefc15430f15004a84
parenteb13d9782306038dfda7d5fbf0b1495a51f5df2b (diff)
downloadnettle-eb5920a107322fc793eeec4adbe469e09b05e2d1.tar.gz
New -v option, propagated to test programs.
Rev: misc/run-tests:1.4
-rwxr-xr-xrun-tests6
1 files changed, 5 insertions, 1 deletions
diff --git a/run-tests b/run-tests
index 3aabe868..a15c744c 100755
--- a/run-tests
+++ b/run-tests
@@ -4,6 +4,7 @@ failed=0
all=0
debug='no'
+testflags=''
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
@@ -31,7 +32,7 @@ env_program () {
test_program () {
testname=`basename "$1" .exe`
testname=`basename "$testname" -test`
- "$1"
+ "$1" $testflags
case "$?" in
0)
echo PASS: $testname
@@ -56,6 +57,9 @@ do
--debug)
debug=yes
;;
+ -v)
+ testflags='-v'
+ ;;
-*)
echo >&2 'Unknown option `'"$1'"
exit 1