qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r597187 - /incubator/qpid/trunk/qpid/cpp/src/tests/topictest
Date Wed, 21 Nov 2007 19:21:23 GMT
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



Mime
View raw message