7 cat /dev
/null
> failure-outputs.txt
13 case $i in TEST
*.sh
) continue;; esac
16 passed
=`expr $passed + 1`
18 failed
=`expr $failed + 1`
28 cat TESTLIST |
while read name input output options
34 [ "$only" != "" -a "$name" != "$only" ] && continue
35 if .
/TESTonce
$name $input $output "$options"
37 passed
=`expr $passed + 1`
40 failed
=`expr $failed + 1`
43 [ "$only" != "" -a "$name" = "$only" ] && break
45 # I hate shells with their stupid, useless subshells.
58 echo "Usage: $0 [test_name]"
62 # exit with number of failing tests.
63 echo '------------------------------------------------'
64 printf "%4u tests failed\n" $failed
65 printf "%4u tests passed\n" $passed
68 cat failure-outputs.txt