summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-21 19:21:21 +0000
committerAlan Conway <aconway@apache.org>2007-11-21 19:21:21 +0000
commitb49e17352cced3738af38930b2ddfe6a7867967a (patch)
tree511aded526de91850fec7c0d439c084f0d9c818c /qpid/cpp/src/tests
parentbbe8a15519d991af717a3bff50d10ea102131fca (diff)
downloadqpid-python-b49e17352cced3738af38930b2ddfe6a7867967a.tar.gz
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
Diffstat (limited to 'qpid/cpp/src/tests')
-rwxr-xr-xqpid/cpp/src/tests/topictest5
1 files changed, 3 insertions, 2 deletions
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 <subscribers>] [-m <messages.] [-b <batches>]"
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