summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/federated_cluster_test
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-12-02 19:00:11 +0000
committerAlan Conway <aconway@apache.org>2009-12-02 19:00:11 +0000
commit59ab4a4ecaf9b6a820a0cf2e60a70add8e0bf31b (patch)
treed80c1d37e6554c30d7d25fb2ed425c0bf8634274 /qpid/cpp/src/tests/federated_cluster_test
parent7eaea4e705f4a0e13c71c4124102b7ae0d93c1c8 (diff)
downloadqpid-python-59ab4a4ecaf9b6a820a0cf2e60a70add8e0bf31b.tar.gz
Run cluster tests under cmake.
Various other test fixes. - Env vars to abstract different library location under cmake/automake. - More consistent use of env vars test_env.sh in test scripts. - Fix replication/replicating_exchange mismatch. - Add --no-module-dir to prevent accidentally loading modules. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@886259 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/federated_cluster_test')
-rwxr-xr-xqpid/cpp/src/tests/federated_cluster_test11
1 files changed, 6 insertions, 5 deletions
diff --git a/qpid/cpp/src/tests/federated_cluster_test b/qpid/cpp/src/tests/federated_cluster_test
index 89bb711c3e..70bec5e703 100755
--- a/qpid/cpp/src/tests/federated_cluster_test
+++ b/qpid/cpp/src/tests/federated_cluster_test
@@ -33,15 +33,15 @@ fail() {
stop_brokers() {
if [[ $BROKER_A ]] ; then
- ../qpidd -q --port $BROKER_A
+ ../qpidd --no-module-dir -q --port $BROKER_A
unset BROKER_A
fi
if [[ $NODE_1 ]] ; then
- ../qpidd -q --port $NODE_1
+ ../qpidd --no-module-dir -q --port $NODE_1
unset NODE_1
fi
if [[ $NODE_2 ]] ; then
- ../qpidd -q --port $NODE_2
+ ../qpidd --no-module-dir -q --port $NODE_2
unset NODE_2
fi
if [ -f cluster.ports ]; then
@@ -51,13 +51,14 @@ stop_brokers() {
start_brokers() {
#start single node...
- ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --log-enable info+ > fed.port.tmp
- BROKER_A=`cat fed.port.tmp`
+ BROKER_A=`../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --log-enable info+` || fail "BROKER_A failed to start"
#...and start cluster
$srcdir/start_cluster 2 || fail "Could not start cluster"
NODE_1=$(head -1 cluster.ports)
NODE_2=$(tail -1 cluster.ports)
+ test -n "$NODE_1" || fail "NODE_1 failed to start"
+ test -n "$NODE_2" || fail "NODE_2 failed to start"
}
setup() {