You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2007/11/21 20:21:23 UTC
svn commit: r597187 - /incubator/qpid/trunk/qpid/cpp/src/tests/topictest
Author: aconway
Date: Wed Nov 21 11:21:21 2007
New Revision: 597187
URL: http://svn.apache.org/viewvc?rev=597187&view=rev
Log:
src/tests/topictest: Added -h host parameter to script.
Modified:
incubator/qpid/trunk/qpid/cpp/src/tests/topictest
Modified: incubator/qpid/trunk/qpid/cpp/src/tests/topictest
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/topictest?rev=597187&r1=597186&r2=597187&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/topictest (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/topictest Wed Nov 21 11:21:21 2007
@@ -9,11 +9,12 @@
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 @@
}
publish() {
- ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS
+ ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS $HOST
}
for ((i=$SUBSCRIBERS ; i--; )); do