vm: use assert() instead of vm_assert(); remove vm_assert().
[minix.git] / test / run
blob59a2499e88a952f1e7fc1f4434d25ad71481bbb5
1 #!/bin/sh
3 # Initialization
4 PATH=:/bin:/usr/bin
5 export PATH
7 rm -rf DIR* # remove any old junk lying around
8 passed=`expr 0` # count number of tests run correctly
9 failed=`expr 0` # count number of tests that failed
10 skipped=`expr 0` # count number of tests that were skipped
11 total=`expr 0` # total number of tests tried
12 badones= # list of tests that failed
14 # Print test welcome message
15 clr
16 echo "Running POSIX compliance test suite. There are 56 tests in total."
17 echo " "
19 # Run all the tests, keeping track of who failed.
20 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
21 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
22 41 42 43 44 45 45-gcc 46 47 48 49 49-gcc 50 51 51-gcc sh1.sh sh2.sh
24 if [ -x ./test$i ]
25 then
26 total=`expr $total + 1`
27 FAIL=0
28 if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
29 then su - ast -c "cd `pwd`; ./test$i" || FAIL=1
30 else ./test$i || FAIL=1
32 if [ $FAIL -eq 0 ]
33 then passed=`expr $passed + 1`
34 else failed=`expr $failed + 1`
35 badones=`echo $badones " " $i`
37 else
38 skipped=`expr $skipped + 1`
40 done
42 # Print results of the tests.
43 echo " "
44 if test $total = $passed
45 then echo All $passed tests completed without error \($skipped skipped\).
46 else echo Testing completed. Score: $passed passed, $failed failed, \
47 skipped $skipped
48 echo The following tests failed: $badones
51 # echo " "