diff options
author | Gordon Sim <gsim@apache.org> | 2008-06-17 09:21:56 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-06-17 09:21:56 +0000 |
commit | 22a20ae6488ff1c377617d45bc4c38ba4f7d79d5 (patch) | |
tree | 16ebb0f63c5f476c54eee8ac154375a8bbb6131c /cpp/src | |
parent | dcaa50952b3a2929ad0e973dcb1f532645505f31 (diff) | |
download | qpid-python-22a20ae6488ff1c377617d45bc4c38ba4f7d79d5.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/tests/topictest | 7 |
1 files changed, 4 insertions, 3 deletions
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 <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 |