5 echo RUNNING from
${srcdir}
9 cat /dev
/null
> failure-outputs.txt
13 for i
in ${srcdir}/*.sh
15 case $i in ${srcdir}/TEST
*.sh
) continue;; esac
25 cat ${srcdir}/tests
/TESTLIST |
while read name input output options
32 [ "$only" != "" -a "$name" != "$only" ] && continue
33 export SRCDIR
=${srcdir}
34 if ${srcdir}/tests/TESTonce $name ${srcdir}/tests/$input ${srcdir}/tests
/$output "$options"
36 passed
=`expr $passed + 1`
39 failed
=`expr $failed + 1`
42 if [ -d COREFILES
]; then
43 if [ -f core
]; then mv core COREFILES
/$name.core
; fi
45 [ "$only" != "" -a "$name" = "$only" ] && break
47 # I hate shells with their stupid, useless subshells.
64 echo "Usage: $0 [test_name]"
68 # exit with number of failing tests.
69 echo '------------------------------------------------'
70 printf "%4u tests failed\n" $failed
71 printf "%4u tests passed\n" $passed
73 cat failure-outputs.txt