jehanne/qa/lib/newlib/testsuite/atexit.runner

19 lines
314 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 a0cba > /dev/null ) {
rm $test_output
echo PASS
exit PASS
}
if not {
cat $test_output
echo FAIL
exit FAIL
}