From 604f4c5287ead1c6bf8a6798f3266adc2a828dbb 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/qpid@597187 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/topictest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/topictest b/cpp/src/tests/topictest index 21387ac3bd..c36aa319ba 100755 --- a/cpp/src/tests/topictest +++ b/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