8 cat /dev
/null
> failure-outputs.txt
14 case $i in TEST
*.sh
) continue;; esac
18 passed
=`expr $passed + 1`
20 failed
=`expr $failed + 1`
30 cat TESTLIST |
while read name input output options
36 [ "$only" != "" -a "$name" != "$only" ] && continue
38 if .
/TESTonce
$name $input $output "$options"
40 passed
=`expr $passed + 1`
43 failed
=`expr $failed + 1`
46 [ "$only" != "" -a "$name" = "$only" ] && break
48 # I hate shells with their stupid, useless subshells.
61 echo "Usage: $0 [test_name]"
65 # exit with number of failing tests.
66 echo '------------------------------------------------'
67 printf "%4u tests failed\n" $failed
68 printf "%4u tests passed\n" $passed
71 cat failure-outputs.txt