diff options
| author | Alan Conway <aconway@apache.org> | 2009-12-02 19:00:11 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-12-02 19:00:11 +0000 |
| commit | 59ab4a4ecaf9b6a820a0cf2e60a70add8e0bf31b (patch) | |
| tree | d80c1d37e6554c30d7d25fb2ed425c0bf8634274 /qpid/cpp/src/tests/clustered_replication_test | |
| parent | 7eaea4e705f4a0e13c71c4124102b7ae0d93c1c8 (diff) | |
| download | qpid-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/clustered_replication_test')
| -rwxr-xr-x | qpid/cpp/src/tests/clustered_replication_test | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qpid/cpp/src/tests/clustered_replication_test b/qpid/cpp/src/tests/clustered_replication_test index c7719b8424..174f93382d 100755 --- a/qpid/cpp/src/tests/clustered_replication_test +++ b/qpid/cpp/src/tests/clustered_replication_test @@ -32,19 +32,19 @@ fail() { stop_brokers() { if [[ $PRIMARY1 ]] ; then - ../qpidd -q --port $PRIMARY1 + $QPIDD_EXEC --no-module-dir -q --port $PRIMARY1 unset PRIMARY1 fi if [[ $PRIMARY2 ]] ; then - ../qpidd -q --port $PRIMARY2 + $QPIDD_EXEC --no-module-dir -q --port $PRIMARY2 unset PRIMARY2 fi if [[ $DR1 ]] ; then - ../qpidd -q --port $DR1 + $QPIDD_EXEC --no-module-dir -q --port $DR1 unset DR1 fi if [[ $DR2 ]] ; then - ../qpidd -q --port $DR2 + $QPIDD_EXEC --no-module-dir -q --port $DR2 unset DR2 fi } @@ -57,14 +57,14 @@ if test -d $PYTHON_DIR; then DR_CLUSTER=DR_$(hostname)_$$ GENERAL_OPTS="--auth no --no-module-dir --no-data-dir --daemon --port 0 --log-to-stderr false" - PRIMARY_OPTS="--load-module $QPID_MODULE_DIR/replicating_listener.so --create-replication-queue true --replication-queue REPLICATION_QUEUE --load-module $QPID_MODULE_DIR/cluster.so --cluster-name $PRIMARY_CLUSTER" - DR_OPTS="--load-module $QPID_MODULE_DIR/replication_exchange.so --load-module $QPID_MODULE_DIR/cluster.so --cluster-name $DR_CLUSTER" + PRIMARY_OPTS="--load-module $REPLICATING_LISTENER_LIB --create-replication-queue true --replication-queue REPLICATION_QUEUE --load-module $CLUSTER_LIB --cluster-name $PRIMARY_CLUSTER" + DR_OPTS="--load-module $REPLICATION_EXCHANGE_LIB --load-module $CLUSTER_LIB --cluster-name $DR_CLUSTER" rm -f repl*.tmp #cleanup any files left from previous run #start first node of primary cluster and set up test queue echo Starting primary cluster - PRIMARY1=$(with_ais_group ../qpidd $GENERAL_OPTS $PRIMARY_OPTS --log-to-file repl.primary.1.tmp) || fail "Could not start node" + PRIMARY1=$(with_ais_group $QPIDD_EXEC $GENERAL_OPTS $PRIMARY_OPTS --log-to-file repl.primary.1.tmp) || fail "Could not start PRIMARY1" $PYTHON_COMMANDS/qpid-config -a "localhost:$PRIMARY1" add queue test-queue --generate-queue-events 2 $PYTHON_COMMANDS/qpid-config -a "localhost:$PRIMARY1" add queue control-queue --generate-queue-events 1 @@ -74,12 +74,12 @@ if test -d $PYTHON_DIR; then #add new node to primary cluster, testing correct transfer of state: echo Adding node to primary cluster - PRIMARY2=$(with_ais_group ../qpidd $GENERAL_OPTS $PRIMARY_OPTS --log-to-file repl.primary.2.tmp) + PRIMARY2=$(with_ais_group $QPIDD_EXEC $GENERAL_OPTS $PRIMARY_OPTS --log-to-file repl.primary.2.tmp) || fail "Could not start PRIMARY2 " #start DR cluster, set up test queue there and establish replication bridge echo Starting DR cluster - DR1=$(with_ais_group ../qpidd $GENERAL_OPTS $DR_OPTS --log-to-file repl.dr.1.tmp) - DR2=$(with_ais_group ../qpidd $GENERAL_OPTS $DR_OPTS --log-to-file repl.dr.2.tmp) + DR1=$(with_ais_group $QPIDD_EXEC $GENERAL_OPTS $DR_OPTS --log-to-file repl.dr.1.tmp) || fail "Could not start DR1" + DR2=$(with_ais_group $QPIDD_EXEC $GENERAL_OPTS $DR_OPTS --log-to-file repl.dr.2.tmp) || fail "Could not start DR2" $PYTHON_COMMANDS/qpid-config -a "localhost:$DR1" add queue test-queue $PYTHON_COMMANDS/qpid-config -a "localhost:$DR1" add queue control-queue |
