chktest.sh (326B)
1 #!/bin/sh 2 3 ttyflags=`stty -g` 4 trap "stty $ttyflags;tabs -8;rm -f a.out; exit 1" 0 1 2 3 15 5 stty tabs 6 tabs 40 7 ulimit -c 0 8 rm -f test.log 9 10 while read i state 11 do 12 echo $i >>test.log 13 printf "%s\t" $i 14 printf "%s" $state 15 rm -f a.out 16 (scc -Isysinclude $CFLAGS "$i" && ./a.out) 2>test.log && 17 echo "[OK]" || echo "[FAILED]" 18 done