1
2
3
4
5
6
7
8
9
10
11
12
13
  | #!/bin/sh 
 |  # 
 |  #This script is used to run qemu test suites 
 |  # 
 |    
 |  ptestdir=$(dirname "$(readlink -f "$0")") 
 |  export SRC_PATH=$ptestdir 
 |    
 |  cd $ptestdir/tests 
 |  tests=$(find . -name "test-*" ! -name "*.p") 
 |  for f in $tests; do 
 |      $f  | sed '/^ok/ s/ok/PASS:/g' 
 |  done 
 |  
  |