3 if [ -z "${SH}" ]; then
4 echo '${SH} is not set, please correct and re-run.'
14 COUNTER=$((COUNTER+1))
15 ${SH} $1 > tmp.stdout 2> tmp.stderr
16 if [ $? -ne $2 ]; then
17 echo "not ok ${c} - ${1} # wrong exit status"
18 rm tmp.stdout tmp.stderr
21 for i in stdout stderr; do
22 if [ -f ${1}.${i} ]; then
23 if ! cmp -s tmp.${i} ${1}.${i}; then
24 echo "not ok ${c} - ${1} # wrong output on ${i}"
25 rm tmp.stdout tmp.stderr
28 elif [ -s tmp.${i} ]; then
29 echo "not ok ${c} - ${1} # wrong output on ${i}"
30 rm tmp.stdout tmp.stderr
35 rm tmp.stdout tmp.stderr
38 TESTS=$(find -Es . -regex ".*\.[0-9]+")
39 printf "1..%d\n" $(echo ${TESTS} | wc -w)
41 for i in ${TESTS} ; do