scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

chktest.sh (253B)


      1 #!/bin/sh
      2 
      3 trap "rm -rf file*" EXIT HUP INT QUIT TERM
      4 ulimit -c 0
      5 rm -f test.log
      6 rm -rf file*
      7 
      8 for i in *-*.sh
      9 do
     10 	printf "Test: %s\n\n" $i >> test.log
     11 	(./$i >> test.log 2>&1 && printf '[PASS]\t' || printf '[FAIL]\t'
     12 	echo "$i") | tee -a test.log
     13 done