summaryrefslogtreecommitdiff
path: root/cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2012-07-16 13:54:11 +0000
committerKim van der Riet <kpvdr@apache.org>2012-07-16 13:54:11 +0000
commita804510d81ade0594a75b5c9b8765cafcc233245 (patch)
tree8c6be643564b6d8c88619d17de7150c98a314781 /cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp
parent1ab07197127e990da2c765ea0ffa5fd8ca47b7b6 (diff)
downloadqpid-python-a804510d81ade0594a75b5c9b8765cafcc233245.tar.gz
QPID-3858: Refactor to tidy up several class design issues
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1362039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp')
-rw-r--r--cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp b/cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp
index 4d145d321d..1497b678a0 100644
--- a/cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp
+++ b/cpp/src/tests/storePerftools/asyncPerf/PerfTest.cpp
@@ -31,7 +31,10 @@
#include "tests/storePerftools/common/ScopedTimer.h"
#include "tests/storePerftools/common/Thread.h"
+#include "qpid/Modules.h" // Use with loading store as module
#include "qpid/asyncStore/AsyncStoreImpl.h"
+#include "qpid/asyncStore/AsyncStoreOptions.h"
+#include "qpid/broker/AsyncStore.h"
#include "qpid/sys/Poller.h"
#include <iomanip>
@@ -161,16 +164,15 @@ PerfTest::destroyQueues()
}
}
-}}} // namespace tests::storePerftools::asyncPerf
-
-// -----------------------------------------------------------------
-
int
-main(int argc, char** argv)
+runPerfTest(int argc, char** argv)
{
+ // Load async store module
+ qpid::tryShlib ("asyncStore.so", false);
+
qpid::CommonOptions co;
qpid::asyncStore::AsyncStoreOptions aso;
- tests::storePerftools::asyncPerf::TestOptions to;
+ TestOptions to;
qpid::Options opts;
opts.add(co).add(aso).add(to);
try {
@@ -203,5 +205,16 @@ main(int argc, char** argv)
// Print test result
std::cout << apt << std::endl;
//::sleep(1);
+
return 0;
}
+
+}}} // namespace tests::storePerftools::asyncPerf
+
+// -----------------------------------------------------------------
+
+int
+main(int argc, char** argv)
+{
+ return tests::storePerftools::asyncPerf::runPerfTest(argc, argv);
+}