6 echo RUNNING from
${srcdir}
10 cat /dev
/null
> failure-outputs.txt
14 for i
in ${srcdir}/*.sh
16 case $i in ${srcdir}/TEST
*.sh
) continue;; esac
26 cat ${srcdir}/tests
/TESTLIST |
while read name input output options
33 [ "$only" != "" -a "$name" != "$only" ] && continue
34 export SRCDIR
=${srcdir}
35 if ${srcdir}/tests/TESTonce $name ${srcdir}/tests/$input ${srcdir}/tests
/$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.
62 echo "Usage: $0 [test_name]"
66 # exit with number of failing tests.
67 echo '------------------------------------------------'
68 printf "%4u tests failed\n" $failed
69 printf "%4u tests passed\n" $passed
71 cat failure-outputs.txt