Home | History | Annotate | Download | only in tests
      1 #!/bin/sh
      2 # report stats about test scripts that were run
      3 
      4 num_ok=`ls *.ok 2>/dev/null | wc -l`
      5 num_failed=`ls *.failed 2>/dev/null | wc -l`
      6 
      7 echo "$num_ok tests succeeded	$num_failed tests failed"
      8 
      9 test "$num_failed" -eq 0 && exit 0
     10 
     11 echo -n "Tests failed: "
     12 for fname in $(ls *.failed); do
     13 	echo -n "${fname%%.failed} "
     14 done
     15 echo ""
     16 
     17 exit 1
     18