2 # $1 is the number of iterations to run
3 # If $2 is specified, this is the number of times you run each iteration
4 # If there is a fail at run, exit 1
5 # Prints to stdout # of successes and passes
6 # Prints to stderr a dot for each run
9 [[ -z $total_runs ]] && total_runs
=1
11 while [[ $run -le $total_runs ]] ; do
15 while [[ $i -lt $1 ]] ; do
17 if [[ $?
-eq 0 ]] ; then
18 success
=$
(($success+1))
24 print
"Success=$success Fail=$fail"
25 [[ $fail -gt 0 ]] && exit 1
27 [[ $total_runs -gt 1 ]] && print
-u2 -n "."
29 [[ $total_runs -gt 1 ]] && print
-u2