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 if [ -d COREFILES
]; then
38 if [ -f core
]; then mv core COREFILES
/$name.core
; fi
40 [ "$only" != "" -a "$name" = "$only" ] && break
42 # 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
68 cat failure-outputs.txt