| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. x"`xpaaccess i_xpa`" != xyes ]; then |
| 4 | echoscip-shell system . . echo. "please start stest before running xpatests ..." |
| 5 | exit 1 |
| 6 | fi |
| 7 | |
| 8 | LOOPS=100 |
| 9 | TARGET="xpa*" |
| 10 | ITARGET="i_xpa" |
| 11 | |
| 12 | while [scip-shell system . . `[`. x"$1" != x ]; do |
| 13 | case $1 in |
| 14 | -a) FLAGS="$FLAGS -m ack=false" |
| 15 | shift |
| 16 | continue;; |
| 17 | |
| 18 | -d) shift |
| 19 | FLAGS="$FLAGS -d $1" |
| 20 | shift |
| 21 | continue;; |
| 22 | |
| 23 | -f) shift |
| 24 | FLAGS="$FLAGS $1" |
| 25 | shift |
| 26 | continue;; |
| 27 | |
| 28 | -l) shift |
| 29 | LOOPS=$1 |
| 30 | shift |
| 31 | continue;; |
| 32 | |
| 33 | -q) FLAGS="$FLAGS -q" |
| 34 | shift |
| 35 | continue;; |
| 36 | |
| 37 | -s) shift |
| 38 | SUFFIX=.$1 |
| 39 | shift |
| 40 | continue;; |
| 41 | |
| 42 | -t) shift |
| 43 | TARGET=$1 |
| 44 | shift |
| 45 | continue;; |
| 46 | esac |
| 47 | done |
| 48 | FLAGS="-l $LOOPS $FLAGS" |
| 49 | |
| 50 | echoscip-shell system . . echo. " " |
| 51 | echoscip-shell system . . echo. "starting xpaget test with flags: $FLAGS" |
| 52 | ./ctest${SUFFIX} ${FLAGS} -g "$TARGET" |
| 53 | |
| 54 | echoscip-shell system . . echo. " " |
| 55 | echoscip-shell system . . echo. "starting xpaset test with flags: $FLAGS" |
| 56 | ./ctest${SUFFIX} ${FLAGS} -s "$TARGET" |
| 57 | |
| 58 | echoscip-shell system . . echo. " " |
| 59 | echoscip-shell system . . echo. "starting xpaget and xpaset test with flags: $FLAGS" |
| 60 | ./ctest${SUFFIX} ${FLAGS} -b "$TARGET" |
| 61 | |
| 62 | echoscip-shell system . . echo. " " |
| 63 | echoscip-shell system . . echo. "starting xpainfo test with flags: $FLAGS" |
| 64 | ./ctest${SUFFIX} ${FLAGS} -i "$ITARGET" |
| 65 | |
| 66 | echoscip-shell system . . echo. " " |
| 67 | echoscip-shell system . . echo. 'All done!' |