From c212333a21ca81015035441ad4c7db185581742a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 5 Sep 2008 16:30:03 +0000 Subject: 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 --- cpp/src/tests/perfdist | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpp/src/tests/perfdist') 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 -- 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 flag. +include a --host 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() { -- cgit v1.2.1