qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r562162 - in /incubator/qpid/trunk/qpid: ./ cpp/src/tests/topictest
Date Thu, 02 Aug 2007 16:11:39 GMT
Author: astitcher
Date: Thu Aug  2 09:11:38 2007
New Revision: 562162

URL: http://svn.apache.org/viewvc?view=rev&rev=562162
Log:
 r852@fuschia:  andrew | 2007-08-02 16:58:33 +0100
 Allow use of topictest script from other directories (than cpp/src/tests)

Modified:
    incubator/qpid/trunk/qpid/   (props changed)
    incubator/qpid/trunk/qpid/cpp/src/tests/topictest

Propchange: incubator/qpid/trunk/qpid/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Thu Aug  2 09:11:38 2007
@@ -1,2 +1,2 @@
 8427bd24-ae5a-4eba-a324-d2fc9c9c6c77:/local/qpid.0-9.ams:1224
-c99eadab-1afc-4df6-acde-a632afdabecb:/local/qpid/trunk/qpid:797
+c99eadab-1afc-4df6-acde-a632afdabecb:/local/qpid/trunk/qpid:852

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/topictest
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/topictest?view=diff&rev=562162&r1=562161&r2=562162
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/topictest (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/topictest Thu Aug  2 09:11:38 2007
@@ -9,6 +9,11 @@
 MESSAGES=2000
 BATCHES=10
 
+# Setup path to publisher/subscriber
+dir=$(dirname $0)
+publisher=$dir/topic_publisher
+subscriber=$dir/topic_listener
+
 while getopts "s:m:b:" opt ; do
     case $opt in
 	s) SUBSCRIBERS=$OPTARG ;;
@@ -24,11 +29,11 @@
 subscribe() {
     echo Start subscriber $1
     LOG="subscriber_$1.log"
-    ./topic_listener > $LOG 2>&1 && rm -f $LOG 
+    $subscriber > $LOG 2>&1 && rm -f $LOG 
 }
 
 publish() {
-    ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS
+    $publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS
 }
 
 for ((i=$SUBSCRIBERS ; i--; )); do



Mime
View raw message