scc

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

chktest.sh (260B)


      1 #!/bin/sh
      2 
      3 trap "rm -rf file*" EXIT
      4 trap "exit 1" HUP INT TERM
      5 
      6 rm -f test.log
      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