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
35 [ "$only" != "" -a "$name" != "$only" ] && continue
36 if .
/TESTonce
$name $input $output "$options"
38 passed
=`expr $passed + 1`
41 failed
=`expr $failed + 1`
44 [ "$only" != "" -a "$name" = "$only" ] && break
46 # I hate shells with their stupid, useless subshells.
59 echo "Usage: $0 [test_name]"
63 # exit with number of failing tests.
64 echo '------------------------------------------------'
65 printf "%4u tests failed\n" $failed
66 printf "%4u tests passed\n" $passed
69 cat failure-outputs.txt