[email protected] wrote:
Author: kpvdr
Date: Tue May 26 15:30:47 2009
New Revision: 778751
URL: http://svn.apache.org/viewvc?rev=778751&view=rev
Log:
Added installable python cluster tests that can be run from an external store
build/test environment and can test persistent clusters.
Kim,
I had to make the attached changes to get these new tests to run from
svn (basically need to setup locations of qpid-config and qpid-route
tools for an svn checkout and QPID_CONFIG is used to set the config file
for qpidd so I changed the name of that variable).
Are you happy with these changes or am I ignoring something important in
how this has been designed to work?
--Gordon.
Index: src/tests/testlib.py
===================================================================
--- src/tests/testlib.py (revision 779032)
+++ src/tests/testlib.py (working copy)
@@ -140,8 +140,8 @@
"""
_runClusterTests = os.getenv("RUN_CLUSTER_TESTS") != None # Must be True for these cluster tests to run
_clusterLib = os.getenv("LIBCLUSTER")
- _qpidConfigExec = os.getenv("QPID_CONFIG", "/usr/bin/qpid-config")
- _qpidRouteExec = os.getenv("QPID_ROUTE", "/usr/bin/qpid-route")
+ _qpidConfigExec = os.getenv("QPID_CONFIG_EXEC", "/usr/bin/qpid-config")
+ _qpidRouteExec = os.getenv("QPID_ROUTE_EXEC", "/usr/bin/qpid-route")
_receiverExec = os.getenv("RECEIVER", "/usr/libexec/qpid/test/receiver")
_senderExec = os.getenv("SENDER", "/usr/libexec/qpid/test/sender")
Index: src/tests/run_cluster_tests
===================================================================
--- src/tests/run_cluster_tests (revision 779032)
+++ src/tests/run_cluster_tests (working copy)
@@ -43,10 +43,12 @@
exit 0
fi
-export PYTHONPATH=$srcdir
+export PYTHONPATH=$srcdir:$srcdir/../../../python
export RUN_CLUSTER_TESTS=1
export QPIDD=$srcdir/../qpidd
export LIBCLUSTER=$srcdir/../.libs/cluster.so
+export QPID_CONFIG_EXEC=$srcdir/../../../python/commands/qpid-config
+export QPID_ROUTE_EXEC=$srcdir/../../../python/commands/qpid-route
export RECEIVER=$srcdir/receiver
export SENDER=$srcdir/sender
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]