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 | 9bd37c771305c1744470bb24f5bf515ce8af5520 (patch) | |
tree | ebccd7439ee2459aa7fe4f51fd2957dd4ce331fa /cpp/src/tests/replication_test | |
parent | 260ac89e2ac7596cd4ede19cbfb9c01dc7769827 (diff) | |
download | qpid-python-9bd37c771305c1744470bb24f5bf515ce8af5520.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/qpid@886259 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/replication_test')
-rwxr-xr-x | cpp/src/tests/replication_test | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpp/src/tests/replication_test b/cpp/src/tests/replication_test index e47aeb2b03..691fd20b0c 100755 --- a/cpp/src/tests/replication_test +++ b/cpp/src/tests/replication_test @@ -27,22 +27,22 @@ trap stop_brokers INT TERM QUIT stop_brokers() { if [ x$BROKER_A != x ]; then - ../qpidd -q --port $BROKER_A + $QPIDD_EXEC --no-module-dir -q --port $BROKER_A unset BROKER_A fi if [ x$BROKER_B != x ]; then - ../qpidd -q --port $BROKER_B + $QPIDD_EXEC --no-module-dir -q --port $BROKER_B unset BROKER_B fi } -if test -d ${PYTHON_DIR} && test -f $QPID_MODULE_DIR/replicating_listener.so && test -f $QPID_MODULE_DIR/replication_exchange.so; then +if test -d ${PYTHON_DIR} && test -f "$REPLICATING_LISTENER_LIB" && test -f "$REPLICATION_EXCHANGE_LIB"; then rm -f queue-*.repl replication-*.log #cleanup from any earlier runs - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $QPID_MODULE_DIR/replicating_listener.so --replication-queue replication --create-replication-queue true --log-enable info+ --log-to-file replication-source.log --log-to-stderr 0 > qpidd.port + $QPIDD_EXEC --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $REPLICATING_LISTENER_LIB --replication-queue replication --create-replication-queue true --log-enable info+ --log-to-file replication-source.log --log-to-stderr 0 > qpidd.port BROKER_A=`cat qpidd.port` - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $QPID_MODULE_DIR/replication_exchange.so --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port + $QPIDD_EXEC --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $REPLICATION_EXCHANGE_LIB --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port BROKER_B=`cat qpidd.port` echo "Running replication test between localhost:$BROKER_A and localhost:$BROKER_B" @@ -97,7 +97,7 @@ if test -d ${PYTHON_DIR} && test -f $QPID_MODULE_DIR/replicating_listener.so && ./receiver --port $BROKER_B --queue queue-e --messages 1 > /dev/null #shutdown broker A then check that broker Bs versions of the queues are as expected - ../qpidd -q --port $BROKER_A + $QPIDD_EXEC --no-module-dir -q --port $BROKER_A unset BROKER_A #validate replicated queues: @@ -118,10 +118,10 @@ if test -d ${PYTHON_DIR} && test -f $QPID_MODULE_DIR/replicating_listener.so && # now check offsets working (enqueue based on position being set, not queue abs position) - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $QPID_MODULE_DIR/replicating_listener.so --replication-queue replication --create-replication-queue true --log-enable info+ --log-to-file replication-source.log --log-to-stderr 0 > qpidd.port + $QPIDD_EXEC --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $REPLICATING_LISTENER_LIB --replication-queue replication --create-replication-queue true --log-enable info+ --log-to-file replication-source.log --log-to-stderr 0 > qpidd.port BROKER_A=`cat qpidd.port` - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $QPID_MODULE_DIR/replication_exchange.so --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port + $QPIDD_EXEC --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $REPLICATION_EXCHANGE_LIB --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port BROKER_B=`cat qpidd.port` $PYTHON_COMMANDS/qpid-config -a "localhost:$BROKER_B" add exchange replication replication @@ -147,9 +147,9 @@ if test -d ${PYTHON_DIR} && test -f $QPID_MODULE_DIR/replicating_listener.so && ./receiver --port $BROKER_B --queue queue-d --messages 1 > /dev/null # now check offsets working - ../qpidd -q --port $BROKER_B + $QPIDD_EXEC --no-module-dir -q --port $BROKER_B unset BROKER_B - ../qpidd --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $QPID_MODULE_DIR/replication_exchange.so --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port + $QPIDD_EXEC --daemon --port 0 --no-data-dir --no-module-dir --auth no --load-module $REPLICATION_EXCHANGE_LIB --log-enable info+ --log-to-file replication-dest.log --log-to-stderr 0 > qpidd.port BROKER_B=`cat qpidd.port` $PYTHON_COMMANDS/qpid-config -a "localhost:$BROKER_B" add queue queue-e |