summaryrefslogtreecommitdiffstats
path: root/xpa/xpatests
blob: 8362ea8e82454dceecc1ff6d6532a74513bea61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh

if [ x"`xpaaccess i_xpa`" != xyes ]; then
  echo "please start stest before running xpatests ..."
  exit 1
fi

LOOPS=100
TARGET="xpa*"
ITARGET="i_xpa"

while [ x"$1" != x ]; do
    case $1 in
	-a) FLAGS="$FLAGS -m ack=false"
	    shift
	    continue;;

	-d) shift
	    FLAGS="$FLAGS -d $1"
	    shift
	    continue;;

	-f) shift
	    FLAGS="$FLAGS $1"
	    shift
	    continue;;

	-l) shift
	    LOOPS=$1
	    shift
	    continue;;

	-q) FLAGS="$FLAGS -q"
	    shift
	    continue;;

	-s) shift
	    SUFFIX=.$1
	    shift
	    continue;;

	-t) shift
	    TARGET=$1
	    shift
	    continue;;
    esac
done
FLAGS="-l $LOOPS $FLAGS"

echo " "
echo "starting xpaget test with flags: $FLAGS"
./ctest${SUFFIX} ${FLAGS} -g "$TARGET"

echo " "
echo "starting xpaset test with flags: $FLAGS"
./ctest${SUFFIX} ${FLAGS} -s "$TARGET"

echo " "
echo "starting xpaget and xpaset test with flags: $FLAGS"
./ctest${SUFFIX} ${FLAGS} -b "$TARGET"

echo " "
echo "starting xpainfo test with flags: $FLAGS"
./ctest${SUFFIX} ${FLAGS} -i "$ITARGET"

echo " "
echo 'All done!'