diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-15 22:39:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:48 -0500 |
commit | d6c128fb4c0d0f5368aa9729d1e4bb8005b909c6 (patch) | |
tree | 6f10dccd5e0ab5930cb7fb91dda39aed4727d113 /source4/script/tests/test_functions.sh | |
parent | 1ce5df6c724f8d943b9c32c23f9e8e551630ac4a (diff) | |
download | samba-d6c128fb4c0d0f5368aa9729d1e4bb8005b909c6.tar.gz samba-d6c128fb4c0d0f5368aa9729d1e4bb8005b909c6.tar.bz2 samba-d6c128fb4c0d0f5368aa9729d1e4bb8005b909c6.zip |
r18571: try to make it a lot more obvious when 'make test' or 'make quicktest'
has failed. The output was too subtle for people who aren't used to
it.
(This used to be commit a57decb96aee05d3238b64d50a136c8b8001f811)
Diffstat (limited to 'source4/script/tests/test_functions.sh')
-rwxr-xr-x | source4/script/tests/test_functions.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source4/script/tests/test_functions.sh b/source4/script/tests/test_functions.sh index e53bac1909..3d397ac255 100755 --- a/source4/script/tests/test_functions.sh +++ b/source4/script/tests/test_functions.sh @@ -100,7 +100,7 @@ testit() { date echo "Testing $name" else - echo "Testing $name ($failed)" + echo "Testing $name (`expr $failed + $totalfailed` test failed so far)" fi smbd_check_only && SMBD_IS_UP="yes" @@ -167,11 +167,14 @@ teststatus() { name=`basename $1` failed=$2 - if [ x"$failed" = x"0" ];then - echo "TEST STATUS: $failed"; - else - echo "TEST STATUS: $failed"; - fi + echo "TEST STATUS: $failed failures"; + test x"$failed" = x"0" || { +cat <<EOF +************************ +*** TESTSUITE FAILED *** +************************ +EOF + } exit $failed } @@ -180,3 +183,6 @@ if [ -z "$VALGRIND" ]; then export MALLOC_CHECK_ fi +# initialise the local failed variable to zero when starting each of the tests +failed=0 + |