Run the correct tests (not 0)

This commit is contained in:
macbishop 2007-02-17 14:52:15 +00:00
parent d2f767ddc7
commit 17f112d4c2

View File

@ -3,16 +3,15 @@
let "suc = 0" let "suc = 0"
let "fail = 0" let "fail = 0"
for tnam in `ls test*.sh` for (( tno = 1 ; $tno < 62 ; tno = $tno + 1 )); do
do ./testCheck.sh $tno
echo "Running test $tnam" if [ "$?" -eq "0" ]; then
if ./$tnam; then echo "OK"
echo "OK" let "suc = $(($suc + 1))"
let "suc = $(($suc + 1))" else
else echo "FAIL"
echo "FAIL" let "fail = $(($fail + 1))"
let "fail = $(($fail + 1))" fi
fi
done done
let "total = $(($suc + $fail))" let "total = $(($suc + $fail))"