chktest.sh (224B)
1 #!/bin/sh 2 3 rm -f test.log 4 5 unset CFLAGS 6 unset CC 7 unset MAKEFLAGS 8 9 for i in *-*.sh 10 do 11 printf "Test: %s\n\n" $i >> test.log 12 (./$i >> test.log 2>&1 && printf '[PASS]\t' || printf '[FAIL]\t' 13 echo "$i") | tee -a test.log 14 done