7 cat /dev
/null
> failure-outputs.txt
9 # first run any specific tests.
12 case $i in TEST
*.sh
) continue;; esac
14 if sh .
/$i >DIFF
/$i.result
18 passed
=`expr $passed + 1`
21 failed
=`expr $failed + 1`
28 # now run typical tests
29 cat TESTLIST |
while read name input output options
36 if .
/TESTonce
$name $input $output "$options"
39 rm -f DIFF
/$output.
diff
40 passed
=`expr $passed + 1`
44 failed
=`expr $failed + 1`
46 echo "Failed test: $name" >> failure-outputs.txt
47 echo >> failure-outputs.txt
48 cat DIFF
/$output.
diff >> failure-outputs.txt
49 echo >> failure-outputs.txt
53 # I hate shells with their stupid, useless subshells.
57 # exit with number of failing tests.
60 printf "%4u tests failed\n" $failed
61 printf "%4u tests passed\n" $passed
64 cat failure-outputs.txt