Changeset 8297 for trunk/Ohana/src/opihi/test/tests.sh
- Timestamp:
- Aug 11, 2006, 4:52:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/test/tests.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/test/tests.sh
r8173 r8297 1 1 2 $VERBOSE = 0 2 if ($?VERBOSE == 0) 3 $VERBOSE = 0 4 end 5 6 $failtest:n = 0 7 $failfile:n = 0 8 $faildirs:n = 0 9 $currentdir = . 3 10 4 11 macro fulltests … … 16 23 echo "directory $testdir:$Ti" 17 24 end 18 list testscripts -x "ls $testdir:$Ti/*.sh" 19 for Tj 0 $testscripts:n 20 if ($VERBOSE > 1) 21 echo " running $testscripts:$Tj" 22 end 23 input $testscripts:$Tj 24 for Tk 0 $tests:n 25 if ($VERBOSE > 2) 26 echo " running $tests:$Tk" 27 end 28 $tests:$Tk 29 if ($PASS == 0) 30 echo " ** failed test $tests:$Tk" 31 $Nfail ++ 32 $n = $failtest:n 33 $failtest:$n = $tests:$Tk 34 $failfile:$n = $testscripts:$Tj 35 $faildirs:$n = $testdir:$Ti 36 $failtest:n ++ 37 $failfile:n ++ 38 $faildirs:n ++ 39 else 40 $Npass ++ 41 end 42 $Ntest ++ 43 # echo "finished $tests:$Tk" 44 end 45 # echo "finished $testscripts:n test scripts from $testscripts:$Tj" 46 end 47 # echo "finished tests from $testdir:$Ti" 25 runtestdir $testdir:$Ti 48 26 end 49 27 … … 54 32 55 33 if ($Nfail > 0) 34 echo " ** failed tests **" 56 35 for i 0 $Nfail 57 36 echo $faildirs:$i $failfile:$i $failtest:$i … … 60 39 end 61 40 41 macro runtestdir 42 if ($0 != 2) 43 echo "USAGE: runtestdir (testdir)" 44 break -auto on 45 break 46 end 47 48 pwd -var startdir 49 cd -q $1 50 list testscripts -x "ls *.sh" 51 52 $currentdir = $1 53 for Tj 0 $testscripts:n 54 if ($VERBOSE > 1) 55 echo " running $testscripts:$Tj" 56 end 57 runtests $testscripts:$Tj 58 end 59 60 cd -q $startdir 61 end 62 63 macro runtests 64 if ($0 != 2) 65 echo "USAGE: runtests (script.sh)" 66 break -auto on 67 break 68 end 69 70 local Tk 71 72 input $1 73 for Tk 0 $tests:n 74 if ($VERBOSE > 2) 75 echo " running $tests:$Tk" 76 end 77 $tests:$Tk 78 if ($PASS == 0) 79 echo " ** failed $tests:$Tk $1" 80 $Nfail ++ 81 $n = $failtest:n 82 $failtest:$n = $tests:$Tk 83 $failfile:$n = $1 84 $faildirs:$n = $currentdir 85 $failtest:n ++ 86 $failfile:n ++ 87 $faildirs:n ++ 88 else 89 $Npass ++ 90 end 91 $Ntest ++ 92 # echo "finished $tests:$Tk" 93 end 94 end
Note:
See TracChangeset
for help on using the changeset viewer.
