| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
if [ x"`xpaaccess i_xpa`" != xyes ]; then |
| 4 |
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 [ 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 |
echo " " |
| 51 |
echo "starting xpaget test with flags: $FLAGS" |
| 52 |
./ctest${SUFFIX} ${FLAGS} -g "$TARGET" |
| 53 |
|
| 54 |
echo " " |
| 55 |
echo "starting xpaset test with flags: $FLAGS" |
| 56 |
./ctest${SUFFIX} ${FLAGS} -s "$TARGET" |
| 57 |
|
| 58 |
echo " " |
| 59 |
echo "starting xpaget and xpaset test with flags: $FLAGS" |
| 60 |
./ctest${SUFFIX} ${FLAGS} -b "$TARGET" |
| 61 |
|
| 62 |
echo " " |
| 63 |
echo "starting xpainfo test with flags: $FLAGS" |
| 64 |
./ctest${SUFFIX} ${FLAGS} -i "$ITARGET" |
| 65 |
|
| 66 |
echo " " |
| 67 |
echo 'All done!' |