8 # first run any specific tests.
11 case $i in TEST
*.sh
) continue;; esac
13 if sh .
/$i >DIFF
/$i.result
16 passed
=$
(($passed + 1))
19 failed
=$
(($failed + 1))
26 # now run typical tests
27 cat TESTLIST |
while read name input output options
34 if .
/TESTonce
$name $input $output "$options"
37 passed
=$
(($passed + 1))
41 failed
=$
(($failed + 1))
46 # I hate shells with their stupid, useless subshells.
50 # exit with number of failing tests.
53 printf "%4u tests failed\n" $failed
54 printf "%4u tests passed\n" $passed