Author: gsim
Date: Tue Jun 17 02:21:56 2008
New Revision: 668582

URL: http://svn.apache.org/viewvc?rev=668582&view=rev
Log:
Added option to start topictest scripti n transactional mode (&durable)

Modified:
    incubator/qpid/trunk/qpid/cpp/src/tests/topictest

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/topictest
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/topictest?rev=668582&r1=668581&r2=668582&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/topictest (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/topictest Tue Jun 17 02:21:56 2008
@@ -9,12 +9,13 @@
 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 @@
 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


Reply via email to