diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-05 16:30:03 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-05 16:30:03 +0000 |
| commit | c212333a21ca81015035441ad4c7db185581742a (patch) | |
| tree | 4746759885fdaa9edf2b6148e401f73ebc3fe2b8 /cpp/src/tests/perfdist | |
| parent | b2b3d97bca484ea0b4733bdc7d65d1333262805b (diff) | |
| download | qpid-python-c212333a21ca81015035441ad4c7db185581742a.tar.gz | |
src/qpid/client/SubscriptionManager.cpp: added start().
src/tests* improvements to multi-host test scripts.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@692478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/perfdist')
| -rwxr-xr-x | cpp/src/tests/perfdist | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/tests/perfdist b/cpp/src/tests/perfdist index b05787f37d..59b6396fe0 100755 --- a/cpp/src/tests/perfdist +++ b/cpp/src/tests/perfdist @@ -12,7 +12,7 @@ usage: $0 <perftest-args> -- <client-hosts ...> Run perftest with clients running on the listed hosts. Clients are assigned to hosts publishers first, then subscribers the host list is used round-robin if there are more clients than hosts. perftest-args should -include a --host <brokerhost> flag. +include a --host <brokerhost> flag (and --port if necessary). Do not pass preftest action flags: --setup, --control, --publish, --subscribe. The script will pass them to the appropriate client processes. @@ -24,6 +24,8 @@ EOF exit 1 } +TESTDIR=${TESTDIR:-$PWD} # Absolute path to test exes on all hosts. + collect() { eval $COLLECT=\""\$$COLLECT $*"\"; } NPUBS=1 NSUBS=1 @@ -40,10 +42,7 @@ while test $# -gt 0; do done if [ -z "$HOSTS" ]; then usage "No hosts listed after --"; fi -ADDPATH="$PWD" -PATH=$ADDPATH:$PATH -which perftest>/dev/null || exit 1 -PERFTEST="perftest $ARGS" +PERFTEST="$TESTDIR/perftest $ARGS" HOSTS=($HOSTS) start() { |
