diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-09 20:53:51 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-09 20:53:51 +0000 |
| commit | 0866712a5e2cb0d4bef28753fb986d624639179b (patch) | |
| tree | ae3ac136784b15456eaf5982d236b6c74f853be3 /cpp/src/tests/run_federation_tests | |
| parent | 0d241bfaf809689f8a5cf022ff9418a5f26c9e7f (diff) | |
| download | qpid-python-0866712a5e2cb0d4bef28753fb986d624639179b.tar.gz | |
QPID-2487: add federation tests to verify bugfix.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/run_federation_tests')
| -rwxr-xr-x | cpp/src/tests/run_federation_tests | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cpp/src/tests/run_federation_tests b/cpp/src/tests/run_federation_tests index 8d7954a533..f5bb123d0a 100755 --- a/cpp/src/tests/run_federation_tests +++ b/cpp/src/tests/run_federation_tests @@ -30,20 +30,27 @@ start_brokers() { LOCAL_PORT=`cat qpidd.port` ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no > qpidd.port REMOTE_PORT=`cat qpidd.port` + + ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no > qpidd.port + REMOTE_B1=`cat qpidd.port` + ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no > qpidd.port + REMOTE_B2=`cat qpidd.port` } stop_brokers() { $QPIDD_EXEC --no-module-dir -q --port $LOCAL_PORT $QPIDD_EXEC --no-module-dir -q --port $REMOTE_PORT + $QPIDD_EXEC --no-module-dir -q --port $REMOTE_B1 + $QPIDD_EXEC --no-module-dir -q --port $REMOTE_B2 } if test -d ${PYTHON_DIR} ; then start_brokers - echo "Running federation tests using brokers on ports $LOCAL_PORT $REMOTE_PORT" - $QPID_PYTHON_TEST -m federation -b localhost:$LOCAL_PORT -Dremote-port=$REMOTE_PORT $@ + echo "Running federation tests using brokers on ports $LOCAL_PORT $REMOTE_PORT $REMOTE_B1 $REMOTE_B2" + $QPID_PYTHON_TEST -m federation -b localhost:$LOCAL_PORT -Dremote-port=$REMOTE_PORT -Dextra-brokers="$REMOTE_B1 $REMOTE_B2" $@ RETCODE=$? stop_brokers - if test x$RETCODE != x0; then + if test x$RETCODE != x0; then echo "FAIL federation tests"; exit 1; fi fi |
