8 # first run any specific tests.
11 case $i in TEST*.sh) continue;; esac
13 if sh ./$i >DIFF/$i.result
17 passed=$(($passed + 1))
20 failed=$(($failed + 1))
27 # now run typical tests
28 cat TESTLIST | while read name input output options
35 if ./TESTonce $name $input $output "$options"
38 rm -f DIFF/$output.diff
39 passed=$(($passed + 1))
43 failed=$(($failed + 1))
48 # I hate shells with their stupid, useless subshells.
52 # exit with number of failing tests.
55 printf "%4u tests failed\n" $failed
56 printf "%4u tests passed\n" $passed