| 
                Last change
                  on this file since 405 was
                  232,
                  checked in by alain, 13 years ago
           | 
        
        
          | 
               
Introducing the elementary tests for a TSAR mono-cluster 
mono-processor platform with MMU using the vci_cc_vcache_v4   
such as the "tsarv4_mono_mmu". 
(assemby level tests written by Manuel Bouyer) 
 
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            643 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #!/bin/sh  | 
|---|
| 2 |  | 
|---|
| 3 | . ../common/common.sh | 
|---|
| 4 |  | 
|---|
| 5 | check_output() | 
|---|
| 6 | { | 
|---|
| 7 |         egrep "^mmu started ptpr_b 0x0000DEAD 0x0000BEEF$" run.out > /dev/null | 
|---|
| 8 |         if [ $? -ne 0 ]; then | 
|---|
| 9 |                 echo "couldn't find string 1 in output - mtty not working ?" >> run.out | 
|---|
| 10 |                 return 1 | 
|---|
| 11 |         fi | 
|---|
| 12 |         egrep "^mmu started ptpr_a 0x0000BEEF 0x0000DEAD$" run.out > /dev/null | 
|---|
| 13 |         if [ $? -ne 0 ]; then | 
|---|
| 14 |                 echo "couldn't find string 2 in output - mtty not working ?" >> run.out | 
|---|
| 15 |                 return 1 | 
|---|
| 16 |         fi | 
|---|
| 17 |         return 0; | 
|---|
| 18 | } | 
|---|
| 19 |  | 
|---|
| 20 | make --quiet || exit 1 | 
|---|
| 21 | ${SIMUL} > run.out 2>&1  | 
|---|
| 22 | if [ $? -eq 0 ]; then | 
|---|
| 23 |         if check_output; then | 
|---|
| 24 |                 echo "test passsed"; | 
|---|
| 25 |                 make --quiet clean | 
|---|
| 26 |                 exit 0; | 
|---|
| 27 |         fi | 
|---|
| 28 |         echo "test FAILED" | 
|---|
| 29 |         exit 1 | 
|---|
| 30 | fi | 
|---|
| 31 | echo "test FAILED" | 
|---|
| 32 | exit 1 | 
|---|
| 33 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.