diff options
author | Michael Goulish <mgoulish@apache.org> | 2009-09-16 18:45:54 +0000 |
---|---|---|
committer | Michael Goulish <mgoulish@apache.org> | 2009-09-16 18:45:54 +0000 |
commit | 2440d16101a4a4f00912834a4c7cd4cc4cb7a37e (patch) | |
tree | 7b0f5413d31e7b56c13197243145db0834da3f27 /cpp | |
parent | 6e242d7d07a602ba7cef41f3041434d187b8753f (diff) | |
download | qpid-python-2440d16101a4a4f00912834a4c7cd4cc4cb7a37e.tar.gz |
backing out change r815804 -- didn't test with clustering turned on.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815923 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/tests/Makefile.am | 7 | ||||
-rwxr-xr-x | cpp/src/tests/clustered_replication_test | 14 | ||||
-rwxr-xr-x | cpp/src/tests/federated_cluster_test | 2 | ||||
-rwxr-xr-x | cpp/src/tests/federated_topic_test | 2 | ||||
-rwxr-xr-x | cpp/src/tests/python_tests | 2 | ||||
-rwxr-xr-x | cpp/src/tests/reliable_replication_test | 2 | ||||
-rwxr-xr-x | cpp/src/tests/run_acl_tests | 2 | ||||
-rwxr-xr-x | cpp/src/tests/run_cli_tests | 4 | ||||
-rwxr-xr-x | cpp/src/tests/run_cluster_tests | 4 | ||||
-rwxr-xr-x | cpp/src/tests/run_federation_tests | 2 | ||||
-rwxr-xr-x | cpp/src/tests/run_header_test | 2 | ||||
-rwxr-xr-x | cpp/src/tests/run_ring_queue_test | 2 |
12 files changed, 19 insertions, 26 deletions
diff --git a/cpp/src/tests/Makefile.am b/cpp/src/tests/Makefile.am index a95051fe95..a15ba3578c 100644 --- a/cpp/src/tests/Makefile.am +++ b/cpp/src/tests/Makefile.am @@ -349,10 +349,3 @@ EXTRA_DIST+=fanout_perftest shared_perftest multiq_perftest topic_perftest run_f check-long: $(MAKE) check TESTS="$(LONG_TESTS)" VALGRIND= - -all: python_prep - -python_prep : - ( cd ../../../python ; make install EXEC_PREFIX=temp PYTHON_LIB=temp AMQP_SPEC_DIR=$${PWD}/../specs ) - - diff --git a/cpp/src/tests/clustered_replication_test b/cpp/src/tests/clustered_replication_test index e3bc9cb65e..cc331957ad 100755 --- a/cpp/src/tests/clustered_replication_test +++ b/cpp/src/tests/clustered_replication_test @@ -22,7 +22,7 @@ # Test reliability of the replication feature in the face of link # failures: srcdir=`dirname $0` -PYTHON_DIR=$srcdir/../../../python/temp +PYTHON_DIR=$srcdir/../../../python export PYTHONPATH=$PYTHON_DIR trap stop_brokers INT EXIT @@ -89,8 +89,8 @@ EOF #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" - $PYTHON_DIR/qpid-config -a "localhost:$PRIMARY1" add queue test-queue --generate-queue-events 2 - $PYTHON_DIR/qpid-config -a "localhost:$PRIMARY1" add queue control-queue --generate-queue-events 1 + $PYTHON_DIR/commands/qpid-config -a "localhost:$PRIMARY1" add queue test-queue --generate-queue-events 2 + $PYTHON_DIR/commands/qpid-config -a "localhost:$PRIMARY1" add queue control-queue --generate-queue-events 1 #send 10 messages, consume 5 of them for i in `seq 1 10`; do echo Message$i; done | ./sender --port $PRIMARY1 @@ -105,10 +105,10 @@ EOF 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) - $PYTHON_DIR/qpid-config -a "localhost:$DR1" add queue test-queue - $PYTHON_DIR/qpid-config -a "localhost:$DR1" add queue control-queue - $PYTHON_DIR/qpid-config -a "localhost:$DR1" add exchange replication REPLICATION_EXCHANGE - $PYTHON_DIR/qpid-route queue add localhost:$DR2 localhost:$PRIMARY2 REPLICATION_EXCHANGE REPLICATION_QUEUE + $PYTHON_DIR/commands/qpid-config -a "localhost:$DR1" add queue test-queue + $PYTHON_DIR/commands/qpid-config -a "localhost:$DR1" add queue control-queue + $PYTHON_DIR/commands/qpid-config -a "localhost:$DR1" add exchange replication REPLICATION_EXCHANGE + $PYTHON_DIR/commands/qpid-route queue add localhost:$DR2 localhost:$PRIMARY2 REPLICATION_EXCHANGE REPLICATION_QUEUE #send more messages to primary for i in `seq 11 20`; do echo Message$i; done | ./sender --port $PRIMARY1 --send-eos 1 diff --git a/cpp/src/tests/federated_cluster_test b/cpp/src/tests/federated_cluster_test index 871f3f7320..a781e269d6 100755 --- a/cpp/src/tests/federated_cluster_test +++ b/cpp/src/tests/federated_cluster_test @@ -22,7 +22,7 @@ # Test reliability of the replication feature in the face of link # failures: srcdir=`dirname $0` -PYTHON_DIR=$srcdir/../../../python/temp +PYTHON_DIR=$srcdir/../../../python trap stop_brokers EXIT diff --git a/cpp/src/tests/federated_topic_test b/cpp/src/tests/federated_topic_test index 3fcd89602c..21d8411eaf 100755 --- a/cpp/src/tests/federated_topic_test +++ b/cpp/src/tests/federated_topic_test @@ -43,7 +43,7 @@ while getopts "s:m:b:" opt ; do done MY_DIR=$(dirname $(which $0)) -PYTHON_DIR=${MY_DIR}/../../../python/temp +PYTHON_DIR=${MY_DIR}/../../../python trap stop_brokers EXIT diff --git a/cpp/src/tests/python_tests b/cpp/src/tests/python_tests index aa13f329ed..e3906c1685 100755 --- a/cpp/src/tests/python_tests +++ b/cpp/src/tests/python_tests @@ -22,7 +22,7 @@ # Run the python tests. QPID_PORT=${QPID_PORT:-5672} PYTHON_TESTS=${PYTHON_TESTS:-$*} -QPID_PYTHON_DIR=${QPID_PYTHON_DIR:-`dirname $0`/../../../python/temp} +QPID_PYTHON_DIR=${QPID_PYTHON_DIR:-`dirname $0`/../../../python} FAILING=${FAILING:-/dev/null} if test -d $QPID_PYTHON_DIR; then diff --git a/cpp/src/tests/reliable_replication_test b/cpp/src/tests/reliable_replication_test index 11cdc5be66..a788d5a76b 100755 --- a/cpp/src/tests/reliable_replication_test +++ b/cpp/src/tests/reliable_replication_test @@ -22,7 +22,7 @@ # Test reliability of the replication feature in the face of link # failures: MY_DIR=`dirname \`which $0\`` -PYTHON_DIR=${MY_DIR}/../../../python/temp +PYTHON_DIR=${MY_DIR}/../../../python trap stop_brokers EXIT diff --git a/cpp/src/tests/run_acl_tests b/cpp/src/tests/run_acl_tests index aef2879cbe..d9b654c7cd 100755 --- a/cpp/src/tests/run_acl_tests +++ b/cpp/src/tests/run_acl_tests @@ -20,7 +20,7 @@ # # Run the acl tests. $srcdir is set by the Makefile. -PYTHON_DIR=$srcdir/../../../python/temp +PYTHON_DIR=$srcdir/../../../python DATA_DIR=`pwd`/data_dir trap stop_brokers INT TERM QUIT diff --git a/cpp/src/tests/run_cli_tests b/cpp/src/tests/run_cli_tests index e526c561f2..ea0d591176 100755 --- a/cpp/src/tests/run_cli_tests +++ b/cpp/src/tests/run_cli_tests @@ -21,8 +21,8 @@ # Run the cli-utility tests. MY_DIR=`dirname \`which $0\`` -PYTHON_DIR=${MY_DIR}/../../../python/temp -CLI_DIR=${PYTHON_DIR} +PYTHON_DIR=${MY_DIR}/../../../python +CLI_DIR=${PYTHON_DIR}/commands trap stop_brokers INT TERM QUIT diff --git a/cpp/src/tests/run_cluster_tests b/cpp/src/tests/run_cluster_tests index c8fbe14c21..8b039346db 100755 --- a/cpp/src/tests/run_cluster_tests +++ b/cpp/src/tests/run_cluster_tests @@ -26,7 +26,7 @@ if [ -z ${top_builddir} -o -z ${srcdir} ]; then top_builddir=${srcdir}/../../ fi TEST_DIR=${top_builddir}/src/tests -PYTHON_DIR=${srcdir}/../../../python/temp +PYTHON_DIR=${srcdir}/../../../python if test -z $1; then CLUSTER_TEST="${PYTHON_DIR}/qpid-python-test -m cluster_tests cluster_tests.ShortTests.\*" @@ -114,4 +114,4 @@ fi # Delete cluster store dir if test was successful. rm -rf ${TMP_DATA_DIR} -exit 0 +exit 0
\ No newline at end of file diff --git a/cpp/src/tests/run_federation_tests b/cpp/src/tests/run_federation_tests index a003967322..8640fb728f 100755 --- a/cpp/src/tests/run_federation_tests +++ b/cpp/src/tests/run_federation_tests @@ -21,7 +21,7 @@ # Run the federation tests. MY_DIR=`dirname \`which $0\`` -PYTHON_DIR=${MY_DIR}/../../../python/temp +PYTHON_DIR=${MY_DIR}/../../../python trap stop_brokers INT TERM QUIT diff --git a/cpp/src/tests/run_header_test b/cpp/src/tests/run_header_test index 729f300c53..414fecd28f 100755 --- a/cpp/src/tests/run_header_test +++ b/cpp/src/tests/run_header_test @@ -24,7 +24,7 @@ # in both directions srcdir=`dirname $0` -PYTHON_DIR=$srcdir/../../../python/temp +PYTHON_DIR=$srcdir/../../../python test -f qpidd.port && QPID_PORT=`cat qpidd.port` if test -d ${PYTHON_DIR} ; then diff --git a/cpp/src/tests/run_ring_queue_test b/cpp/src/tests/run_ring_queue_test index ad19a39d0f..fb90075458 100755 --- a/cpp/src/tests/run_ring_queue_test +++ b/cpp/src/tests/run_ring_queue_test @@ -22,7 +22,7 @@ #setup path to find qpid-config and sender/receiver test progs srcdir=`dirname $0` -PYTHON_DIR=$srcdir/../../../python/temp +PYTHON_DIR=$srcdir/../../../python export PYTHONPATH=$PYTHON_DIR export PATH=./:$PYTHON_DIR/commands:$PATH |