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 | f26c2d31e51044712b7df93a0f4f587af8169213 (patch) | |
| tree | 50f845b060e169bf587ea326eba1b14cb03ad464 /qpid/cpp/src/tests/perfdist | |
| parent | 6c3647858be91b75c03498563071b91fd612b082 (diff) | |
| download | qpid-python-f26c2d31e51044712b7df93a0f4f587af8169213.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@692478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perfdist')
| -rwxr-xr-x | qpid/cpp/src/tests/perfdist | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qpid/cpp/src/tests/perfdist b/qpid/cpp/src/tests/perfdist index b05787f37d..59b6396fe0 100755 --- a/qpid/cpp/src/tests/perfdist +++ b/qpid/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() { |
