From b778a29c52dc004d86f173f9bc2b8ea598e10208 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Fri, 9 Apr 2010 20:53:51 +0000 Subject: QPID-2487: add federation tests to verify bugfix. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932607 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/run_federation_tests | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/src/tests/run_federation_tests') diff --git a/qpid/cpp/src/tests/run_federation_tests b/qpid/cpp/src/tests/run_federation_tests index 8d7954a533..f5bb123d0a 100755 --- a/qpid/cpp/src/tests/run_federation_tests +++ b/qpid/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 -- cgit v1.2.1