diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-06 16:48:03 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-06 16:48:03 +0400 |
commit | e34e8782a979b372c521d460511d82d87f5a3646 (patch) | |
tree | 149d7c0dc3bc772a93d8ae96bf39a0e357452a62 /testsuite | |
parent | cf95e0b2d5f5dd0b0682bd4cc5959cf32427134f (diff) |
- support make check V=1 to run the checks in verbose mode
- pass verbose from runtest to testing.sh
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/runtest | 6 | ||||
-rwxr-xr-x | testsuite/testing.sh | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/testsuite/runtest b/testsuite/runtest index 4ac1d3bfe..9fd2d0f13 100755 --- a/testsuite/runtest +++ b/testsuite/runtest @@ -37,7 +37,7 @@ run_applet_testcase () if [ $? != 0 ] ; then echo FAIL: $testname - if [ "$verbose" = 1 ]; then + if [ $verbose -gt 0 ]; then cat .logfile.txt #exit 1; fi; @@ -77,14 +77,16 @@ run_applet_tests () status=0 +verbose=0 if [ x"$1" = x"-v" ]; then verbose=1 + export VERBOSE=$verbose shift fi if [ $# -ne 0 ]; then - applets="$@" + applets=$(cd $srcdir ; for i in $@; do ls ${i}* ; done) else applets=$(ls $srcdir) fi diff --git a/testsuite/testing.sh b/testsuite/testing.sh index b7c85c227..83727f6d3 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh @@ -54,7 +54,7 @@ config_is_set () # The testing function -testing() +testing () { if [ $# -ne 5 ] then @@ -62,11 +62,11 @@ testing() exit fi - if [ "$debug" = "1" ] ; then + if [ $debug -eq 1 ] ; then set -x fi - if [ -n "$_BB_CONFIG_DEP" ] && [ "${force}" = "0" ] + if [ -n "$_BB_CONFIG_DEP" ] && [ ${force} -eq 0 ] then if ! config_is_set "$_BB_CONFIG_DEP" then @@ -85,7 +85,7 @@ testing() then ((FAILCOUNT++)) echo "FAIL: $1" - if [ "$verbose" = "1" ] + if [ $verbose -eq 1 ] then diff -u expected actual fi @@ -94,7 +94,7 @@ testing() fi rm -f input expected actual - if [ "$debug" = "1" ] ; then + if [ $debug -eq 1 ] ; then set +x fi |