use oxpcie only if enabled to avoid baud bottleneck of uart.
[minix.git] / test / run
blob6b0d9bd4d914183e537f6416f89e46514a8d8ce9
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 tests=" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
15 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
16 41 42 43 44 45 45-gcc 46 47 48 49 49-gcc 50 \
17 51 51-gcc 52 52-gcc 53 \
18 sh1.sh sh2.sh"
19 tests_no=`expr 0`
21 for i in `echo $tests`; do
22 if [ -x ./test$i ]; then
23 tests_no=`expr $tests_no + 1`
25 done
27 # Print test welcome message
28 clr
29 echo "Running POSIX compliance test suite. There are $tests_no tests in total."
30 echo " "
32 # Run all the tests, keeping track of who failed.
33 for i in `echo $tests`
35 if [ -x ./test$i ]
36 then
37 total=`expr $total + 1`
38 FAIL=0
39 if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
40 then su - ast -c "cd `pwd`; ./test$i" || FAIL=1
41 else ./test$i || FAIL=1
43 if [ $FAIL -eq 0 ]
44 then passed=`expr $passed + 1`
45 else failed=`expr $failed + 1`
46 badones=`echo $badones " " $i`
48 else
49 skipped=`expr $skipped + 1`
51 done
53 # Print results of the tests.
54 echo " "
55 if test $total = $passed
56 then echo All $passed tests completed without error \($skipped skipped\).
57 else echo Testing completed. Score: $passed passed, $failed failed, \
58 skipped $skipped
59 echo The following tests failed: $badones
62 # echo " "