From 22a20ae6488ff1c377617d45bc4c38ba4f7d79d5 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 17 Jun 2008 09:21:56 +0000 Subject: Added option to start topictest scripti n transactional mode (&durable) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@668582 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/topictest | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp') diff --git a/cpp/src/tests/topictest b/cpp/src/tests/topictest index ad7c5df693..6763d8552b 100755 --- a/cpp/src/tests/topictest +++ b/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 ] [-m ]" 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 -- cgit v1.2.1