| 
            Last change
 on this file since 19 was             9, checked in by Mattia Monga, 14 years ago           | 
        
        
          | 
             
Minix 3.1.2a 
 
           | 
        
        
          
            
              - 
Property                 svn:executable
 set to                 
*
               
             
           | 
        
        
          | 
            File size:
            1.1 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | #!/bin/sh
 | 
|---|
| 2 | 
 | 
|---|
| 3 | # Initialization
 | 
|---|
| 4 | PATH=:/bin:/usr/bin
 | 
|---|
| 5 | export PATH
 | 
|---|
| 6 | 
 | 
|---|
| 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 | total=`expr 0`                  # total number of tests tried
 | 
|---|
| 11 | badones=                        # list of tests that failed
 | 
|---|
| 12 | 
 | 
|---|
| 13 | # Print test welcome message
 | 
|---|
| 14 | clr
 | 
|---|
| 15 | echo "Running POSIX compliance test suite. There are 43 tests in total."
 | 
|---|
| 16 | echo "The last few tests may take up to 15 minutes each, even on fast"
 | 
|---|
| 17 | echo "systems."
 | 
|---|
| 18 | echo " "
 | 
|---|
| 19 | 
 | 
|---|
| 20 | # Run all the tests, keeping track of who failed.
 | 
|---|
| 21 | for i in  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 \
 | 
|---|
| 22 |          21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 \
 | 
|---|
| 23 |         sh1.sh sh2.sh
 | 
|---|
| 24 | do total=`expr $total + 1`
 | 
|---|
| 25 |    if ./test$i
 | 
|---|
| 26 |       then passed=`expr $passed + 1`
 | 
|---|
| 27 |       else failed=`expr $failed + 1`
 | 
|---|
| 28 |            badones=`echo $badones " " $i`
 | 
|---|
| 29 |    fi
 | 
|---|
| 30 | done
 | 
|---|
| 31 | 
 | 
|---|
| 32 | # Print results of the tests.
 | 
|---|
| 33 | echo " "
 | 
|---|
| 34 | if test $total = $passed
 | 
|---|
| 35 |    then echo All $passed tests completed without error.
 | 
|---|
| 36 |    else echo Testing completed.  Score:   $passed passed,  $failed failed
 | 
|---|
| 37 |         echo The following tests failed: $badones
 | 
|---|
| 38 | fi
 | 
|---|
| 39 | 
 | 
|---|
| 40 | # echo " "
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.