#!/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