diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2007-08-02 16:11:38 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2007-08-02 16:11:38 +0000 |
| commit | 924fba8a8a529f2e60c3d102645b67fadb578f8f (patch) | |
| tree | 08c38f99348df2b216d1975cd23b980c39810302 /qpid/cpp/src/tests | |
| parent | b6c1b0098cc167edb3d4d6710db84d8c57196459 (diff) | |
| download | qpid-python-924fba8a8a529f2e60c3d102645b67fadb578f8f.tar.gz | |
r852@fuschia: andrew | 2007-08-02 16:58:33 +0100
Allow use of topictest script from other directories (than cpp/src/tests)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@562162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
| -rwxr-xr-x | qpid/cpp/src/tests/topictest | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/topictest b/qpid/cpp/src/tests/topictest index 21387ac3bd..e03c033f6d 100755 --- a/qpid/cpp/src/tests/topictest +++ b/qpid/cpp/src/tests/topictest @@ -9,6 +9,11 @@ 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 ;; @@ -24,11 +29,11 @@ done 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 |
