summaryrefslogtreecommitdiffstats
path: root/xpa/xpatests
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-23 16:54:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-23 16:54:55 (GMT)
commit5bf617b1e9347322b8b16419fd5e74107e8b1c26 (patch)
treee5bbb785b82b35bc62df41bebca8b540078aaf76 /xpa/xpatests
parent51e1f85047b34f095ed69a3024d696997d2667c8 (diff)
parent0ebcd152c10d2eae6b62f16e7138aa187a8a1bdd (diff)
downloadblt-5bf617b1e9347322b8b16419fd5e74107e8b1c26.zip
blt-5bf617b1e9347322b8b16419fd5e74107e8b1c26.tar.gz
blt-5bf617b1e9347322b8b16419fd5e74107e8b1c26.tar.bz2
Merge commit '0ebcd152c10d2eae6b62f16e7138aa187a8a1bdd' as 'xpa'
Diffstat (limited to 'xpa/xpatests')
-rwxr-xr-xxpa/xpatests67
1 files changed, 67 insertions, 0 deletions
diff --git a/xpa/xpatests b/xpa/xpatests
new file mode 100755
index 0000000..8362ea8
--- /dev/null
+++ b/xpa/xpatests
@@ -0,0 +1,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!'