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