From b49e17352cced3738af38930b2ddfe6a7867967a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Nov 2007 19:21:21 +0000 Subject: src/tests/topictest: Added -h host parameter to script. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@597187 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/topictest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src/tests') diff --git a/qpid/cpp/src/tests/topictest b/qpid/cpp/src/tests/topictest index 21387ac3bd..c36aa319ba 100755 --- a/qpid/cpp/src/tests/topictest +++ b/qpid/cpp/src/tests/topictest @@ -9,11 +9,12 @@ SUBSCRIBERS=10 MESSAGES=2000 BATCHES=10 -while getopts "s:m:b:" opt ; do +while getopts "s:m:b:h:" opt ; do case $opt in s) SUBSCRIBERS=$OPTARG ;; m) MESSAGES=$OPTARG ;; b) BATCHES=$OPTARG ;; + h) HOST=-h$OPTARG ;; ?) echo "Usage: %0 [-s ] [-m ]" exit 1 @@ -28,7 +29,7 @@ subscribe() { } publish() { - ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS + ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS $HOST } for ((i=$SUBSCRIBERS ; i--; )); do -- cgit v1.2.1