summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-06-17 09:21:56 +0000
committerGordon Sim <gsim@apache.org>2008-06-17 09:21:56 +0000
commit8e26a3d09214c057400e3d7e68376150919e5fec (patch)
treeb352b01399206f32835ea114d5cf5c83c415bb55 /qpid/cpp
parentbf59f162c3c7f310c8480dbc9e4fa0018e8f2159 (diff)
downloadqpid-python-8e26a3d09214c057400e3d7e68376150919e5fec.tar.gz
Added option to start topictest scripti n transactional mode (&durable)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@668582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rwxr-xr-xqpid/cpp/src/tests/topictest7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/topictest b/qpid/cpp/src/tests/topictest
index ad7c5df693..6763d8552b 100755
--- a/qpid/cpp/src/tests/topictest
+++ b/qpid/cpp/src/tests/topictest
@@ -9,12 +9,13 @@ SUBSCRIBERS=10
MESSAGES=2000
BATCHES=10
-while getopts "s:m:b:h:" opt ; do
+while getopts "s:m:b:h:t" opt ; do
case $opt in
s) SUBSCRIBERS=$OPTARG ;;
m) MESSAGES=$OPTARG ;;
b) BATCHES=$OPTARG ;;
h) HOST=-h$OPTARG ;;
+ t) TRANSACTIONAL="--transactional --durable" ;;
?)
echo "Usage: %0 [-s <subscribers>] [-m <messages.] [-b <batches>]"
exit 1
@@ -25,11 +26,11 @@ done
subscribe() {
echo Start subscriber $1
LOG="subscriber_$1.log"
- ./topic_listener > $LOG 2>&1 && rm -f $LOG
+ ./topic_listener $TRANSACTIONAL > $LOG 2>&1 && rm -f $LOG
}
publish() {
- ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS $HOST
+ ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS $HOST $TRANSACTIONAL
}
for ((i=$SUBSCRIBERS ; i--; )); do