1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash cd `dirname $0` for FILE in */Makefile */*/Makefile; do TEST=`dirname $FILE` echo -n "Running test $TEST ... " if make -C $TEST run_test > $TEST/test.log 2>&1; then echo OK else echo FAIL fi done