From: helly Date: Sun, 10 Jul 2005 09:56:38 +0000 (+0000) Subject: - Show test summary X-Git-Tag: 0.13.6~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=918229fc5bda37573808dc50e813f02b96afc73b;p=re2c - Show test summary --- diff --git a/run_tests.sh.in b/run_tests.sh.in index 8442f89f..f2a0898b 100644 --- a/run_tests.sh.in +++ b/run_tests.sh.in @@ -1,5 +1,6 @@ #!/bin/sh result=0 +errcnt=0 for x in @top_srcdir@/test/*.re; do echo $x # don't use the -o flag, since it makes it harder to diff. @@ -11,6 +12,12 @@ for x in @top_srcdir@/test/*.re; do else echo "Failed: ${x%.re}.c ${x%.re}.temp differ." result=1 + errcnt=$(($errcnt+1)) fi done +if test $result = 0; then + echo "All tests passed successfully." +else + echo "Error: $errcnt tests failed." +fi exit $result