diff options
author | Alan Conway <aconway@apache.org> | 2007-11-21 19:21:21 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-11-21 19:21:21 +0000 |
commit | 604f4c5287ead1c6bf8a6798f3266adc2a828dbb (patch) | |
tree | 2f5349ec4fe75ba974e634d1dd7c1c08f933d42f /cpp/src | |
parent | 118dd41c03ddc12f603439b122a3ab80af450a89 (diff) | |
download | qpid-python-604f4c5287ead1c6bf8a6798f3266adc2a828dbb.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/tests/topictest | 5 |
1 files changed, 3 insertions, 2 deletions
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 <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 |