1#! /bin/sh 2 3cd tests 4 5export srcdir=. 6 7failed=0 8all=0 9for f in tst-*; do 10 "./$f" > /dev/null 2>&1 11 case "$?" in 12 0) 13 echo "PASS: $f" 14 all=$((all + 1)) 15 ;; 16 77) 17 echo "SKIP: $f" 18 ;; 19 *) 20 echo "FAIL: $f" 21 failed=$((failed + 1)) 22 all=$((all + 1)) 23 ;; 24 esac 25done 26 27if [ "$failed" -eq 0 ] ; then 28 echo "All $all tests passed" 29else 30 echo "$failed of $all tests failed" 31fi 32unset srcdir 33