123456789101112131415161718 |
- #!/bin/rc
- # Script to run all tests in 'tests'. If any test fails, this script fails.
- # Skip folders or files beginning in '_'
- tests=`{du -a /bin/regress | awk '{print $2}' | grep -v /_}
- finalstatus=PASS
- for (file in $tests) {
- if (test -f $file && test -x $file) {
- $file >[2=1] >/dev/null
- teststatus = $status
- if (! ~ $teststatus '') { echo FAIL $file $teststatus }
- if not { echo PASS $file; finalstatus=FAIL }
- }
- }
- if (~ $finalstatus FAIL) exit $finalstatus
|