1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh for testfile in *.test; do ./$testfile ret=$(expr $ret + $?) done if [ $ret -gt 0 ]; then printf "%d tests failed\n" $ret fi exit $ret