7 cat /dev
/null
> failure-outputs.txt
13 case $i in TEST
*.sh
) continue;; esac
23 cat TESTLIST |
while read name input output options
30 [ "$only" != "" -a "$name" != "$only" ] && continue
31 if .
/TESTonce
$name $input $output "$options"
33 passed
=`expr $passed + 1`
36 failed
=`expr $failed + 1`
39 [ "$only" != "" -a "$name" = "$only" ] && break
41 # I hate shells with their stupid, useless subshells.
56 echo "Usage: $0 [test_name]"
60 # exit with number of failing tests.
61 echo '------------------------------------------------'
62 printf "%4u tests failed\n" $failed
63 printf "%4u tests passed\n" $passed
66 cat failure-outputs.txt