scc

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

chktest.sh (275B)


      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 export TZ=${TZ:-UTC}
      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