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

16 lines
285 B
Plaintext
Raw Normal View History

2017-09-08 00:15:12 +02:00
#!/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
2017-09-08 00:15:12 +02:00
if ( cat $test_output | grep 'FAIL' > /dev/null ) {
cat $test_output
echo FAIL
exit FAIL
}
echo PASS
exit PASS