runall 333 B

12345678910111213141516
  1. #!/bin/rc
  2. # Script to run all tests in 'tests'. If any test fails, this script fails.
  3. tests=/bin/regress/^(fpuexcept fpunote)
  4. echo 1..$#tests
  5. finalstatus=PASS
  6. for (test in $tests) {
  7. output=PASS
  8. $test >[2=1] >/dev/null || {output='FAIL - '^$status; finalstatus=FAIL}
  9. echo $output
  10. }
  11. if (~ $finalstatus FAIL) exit $finalstatus