jehanne/qa/lib/newlib/050-setsid.runner

16 lines
285 B
Bash
Executable File

#!/cmd/rc
runner=$0
test = `{echo $runner|sed 's/.runner//'}
test_output = /tmp/output-`{basename $test}
if ( test -e $test_output) rm $test_output
$test > $test_output
if ( cat $test_output | grep 'FAIL' > /dev/null ) {
cat $test_output
echo FAIL
exit FAIL
}
echo PASS
exit PASS