]> granicus.if.org Git - re2c/commitdiff
- Show test summary
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 10 Jul 2005 09:56:38 +0000 (09:56 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 10 Jul 2005 09:56:38 +0000 (09:56 +0000)
run_tests.sh.in

index 8442f89f17625dc522381706407754e15c698096..f2a0898b34a37f2caa09e039b24750190f286bb2 100644 (file)
@@ -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