5 cat /dev
/null
> failure-outputs.txt
11 case $i in TEST
*.sh
) continue;; esac
21 cat TESTLIST |
while read name input output options
28 [ "$only" != "" -a "$name" != "$only" ] && continue
29 if .
/TESTonce
$name $input $output "$options"
31 passed
=`expr $passed + 1`
34 failed
=`expr $failed + 1`
37 [ "$only" != "" -a "$name" = "$only" ] && break
39 # 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
65 cat failure-outputs.txt