Browse Source

Print total number of tests run to get a better view of how much is broken.

Tobias Heider 1 năm trước cách đây
mục cha
commit
2d683e0c53
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      tools/test.sh

+ 3 - 1
tools/test.sh

@@ -196,15 +196,17 @@ fi
 case "$1" in
 case "$1" in
 "all")
 "all")
 	fail=0
 	fail=0
+	count=0
 	for t in $dir/../test/[!_]*.ssa
 	for t in $dir/../test/[!_]*.ssa
 	do
 	do
 		once $t
 		once $t
 		fail=`expr $fail + $?`
 		fail=`expr $fail + $?`
+		count=`expr $count + 1`
 	done
 	done
 	if test $fail -ge 1
 	if test $fail -ge 1
 	then
 	then
 		echo
 		echo
-		echo "$fail test(s) failed!"
+		echo "$fail of $count tests failed!"
 	else
 	else
 		echo
 		echo
 		echo "All is fine!"
 		echo "All is fine!"