summaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-09-01 12:06:13 +0200
committerjustdave%syndicomm.com <>2001-09-01 12:06:13 +0200
commitfe6d2a3abbaf4e8c10b04aab02c69c1b8c88b470 (patch)
tree6d7144eedf3b2d42906eca197772e6818dc2a64e /runtests.sh
parent415a5d128205e8d6b6749f962cf25c81316389f9 (diff)
downloadbugzilla-fe6d2a3abbaf4e8c10b04aab02c69c1b8c88b470.tar.gz
bugzilla-fe6d2a3abbaf4e8c10b04aab02c69c1b8c88b470.tar.xz
Added a --verbose option to runtests.sh that the tinderbox scripts can use to get all the warnings and errors and whatnot into the build log. Also corrected several syntax and logic errors in the 1.t test file.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtests.sh b/runtests.sh
index d220f7c20..c558fcf7d 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -1,3 +1,12 @@
#!/bin/sh
-/usr/bonsaitools/bin/perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
+export VERBOSE=0
+PART1='use Test::Harness qw(&runtests $verbose); $verbose='
+PART2='; runtests @ARGV;'
+for f in $*; do
+ if [ $f == "--verbose" ] ; then
+ export VERBOSE=1
+ fi
+done
+
+/usr/bonsaitools/bin/perl -e "${PART1}${VERBOSE}${PART2}" t/*.t