diff options
author | Kim van der Riet <kpvdr@apache.org> | 2009-05-01 19:17:59 +0000 |
---|---|---|
committer | Kim van der Riet <kpvdr@apache.org> | 2009-05-01 19:17:59 +0000 |
commit | f3cec6986a366d133a08647279a38393a9769718 (patch) | |
tree | a3388944e36fb8cde72f3f3b38254e88709493bd /cpp/src/tests/ClusterFixture.h | |
parent | 38dc8e231d6136dd6ae0cfa28f4f9dcb90677c77 (diff) | |
download | qpid-python-f3cec6986a366d133a08647279a38393a9769718.tar.gz |
Cluster test code now has a persistence switch controlled by the environment. When this switch set, all brokers start with the store module loaded, all queues are declared persistent and all messages are also made persistent. The absolute paths to module libs hardcoded into the test fixtures have been replaced by paths relative to environment variable QPID_LIB_DIR (which is set in Makefile.am). The cluster test, when run from qpid, will continue to run without persistence by default; the intention is to have the store test code run this test directly with the switch turned on.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@770796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ClusterFixture.h')
-rw-r--r-- | cpp/src/tests/ClusterFixture.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/tests/ClusterFixture.h b/cpp/src/tests/ClusterFixture.h index 353ec0c88d..08b314499e 100644 --- a/cpp/src/tests/ClusterFixture.h +++ b/cpp/src/tests/ClusterFixture.h @@ -60,8 +60,6 @@ using qpid::broker::Broker; using boost::shared_ptr; using qpid::cluster::Cluster; -#define DEFAULT_CLUSTER_LIB "../.libs/cluster.so" - /** Cluster fixture is a vector of ports for the replicas. * * At most one replica (by default replica 0) is in the current @@ -70,15 +68,14 @@ using qpid::cluster::Cluster; class ClusterFixture : public vector<uint16_t> { public: typedef std::vector<std::string> Args; - static const Args DEFAULT_ARGS; /** @param localIndex can be -1 meaning don't automatically start a local broker. * A local broker can be started with addLocal(). */ - ClusterFixture(size_t n, int localIndex=0, const Args& args=DEFAULT_ARGS, const string& clusterLib = DEFAULT_CLUSTER_LIB); + ClusterFixture(size_t n, const Args& args, int localIndex=0); /**@param updateArgs function is passed the index of the cluster member and can update the arguments. */ - ClusterFixture(size_t n, int localIndex, boost::function<void (Args&, size_t)> updateArgs, const string& clusterLib = DEFAULT_CLUSTER_LIB); + ClusterFixture(size_t n, boost::function<void (Args&, size_t)> updateArgs, int localIndex); void add(size_t n) { for (size_t i=0; i < n; ++i) add(); } void add(); // Add a broker. @@ -102,7 +99,6 @@ class ClusterFixture : public vector<uint16_t> { std::vector<shared_ptr<ForkedBroker> > forkedBrokers; Args userArgs; boost::function<void (Args&, size_t)> updateArgs; - string clusterLib; }; /** |