]> granicus.if.org Git - re2c/commitdiff
- Count tests
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 1 Jan 2006 19:39:31 +0000 (19:39 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 1 Jan 2006 19:39:31 +0000 (19:39 +0000)
run_tests.sh.in

index 37057af00fde80d8213e08e827d6fc0ad341238b..a576ee31055a2f090fecbbeed2b69de3daa46398 100644 (file)
@@ -1,7 +1,9 @@
 #!/bin/sh
 result=0
 errcnt=0
+tstcnt=0;
 for x in @top_srcdir@/test/*.re; do
+       tstcnt=$(($tstcnt+1))
        echo $x
        switches=`basename $x|sed -e 's/^.*\.\([^.]*\)\..*$/-\1/g' -e 's/^[^-].*//'g`
        # don't use the -o flag, since it makes it harder to diff.
@@ -19,8 +21,8 @@ for x in @top_srcdir@/test/*.re; do
        test -f ${x%.re}.diff -a ! -s $difname && rm -f $difname
 done
 if test $result = 0; then
-       echo "All tests passed successfully."
+       echo "All $tstcnt tests passed successfully."
 else
-       echo "Error: $errcnt tests failed."
+       echo "Error: $errcnt out $tstcnt tests failed."
 fi
 exit $result