summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-10 01:10:04 +0000
committerAlan Conway <aconway@apache.org>2007-08-10 01:10:04 +0000
commitf72fcd8aa7f45c2daa0931bebf39dd035292589d (patch)
tree6c2f82dd96e78b946626ba597a0d000c0b1e062d /qpid/cpp/src/tests
parentad0f4097dc9602c657389994bf49ed097cbd802d (diff)
downloadqpid-python-f72fcd8aa7f45c2daa0931bebf39dd035292589d.tar.gz
Revert $(dirname $0) changes, break distclean/rpm builds.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@564446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rwxr-xr-xqpid/cpp/src/tests/topictest9
1 files changed, 2 insertions, 7 deletions
diff --git a/qpid/cpp/src/tests/topictest b/qpid/cpp/src/tests/topictest
index e03c033f6d..21387ac3bd 100755
--- a/qpid/cpp/src/tests/topictest
+++ b/qpid/cpp/src/tests/topictest
@@ -9,11 +9,6 @@ SUBSCRIBERS=10
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 ;;
@@ -29,11 +24,11 @@ done
subscribe() {
echo Start subscriber $1
LOG="subscriber_$1.log"
- $subscriber > $LOG 2>&1 && rm -f $LOG
+ ./topic_listener > $LOG 2>&1 && rm -f $LOG
}
publish() {
- $publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS
+ ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers $SUBSCRIBERS
}
for ((i=$SUBSCRIBERS ; i--; )); do