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