9 sh $1 > tmp.stdout 2> tmp.stderr
10 if [ $? -ne $2 ]; then
11 echo "not ok ${c} - ${1} # wrong exit status"
12 rm tmp.stdout tmp.stderr
15 for i in stdout stderr; do
16 if [ -f ${1}.${i} ]; then
17 if ! cmp -s tmp.${i} ${1}.${i}; then
18 echo "not ok ${c} - ${1} # wrong output on ${i}"
19 rm tmp.stdout tmp.stderr
22 elif [ -s tmp.${i} ]; then
23 echo "not ok ${c} - ${1} # wrong output on ${i}"
24 rm tmp.stdout tmp.stderr
29 rm tmp.stdout tmp.stderr
32 TESTS=$(find -Es . -regex ".*\.[0-9]+")
33 printf "1..%d\n" $(echo ${TESTS} | wc -w)
35 for i in ${TESTS} ; do