21#include <oret/config.hpp>
24#include <boost/make_shared.hpp>
25#include <boost/timer/timer.hpp>
26using boost::timer::cpu_timer;
29#define BOOST_TEST_MODULE "OREAnalyticsTestSuite"
30#ifdef ORE_ENABLE_PARALLEL_UNIT_TEST_RUNNER
31#include <test-suite/paralleltestrunner.hpp>
33#include <boost/test/included/unit_test.hpp>
35#include <boost/test/parameterized_test.hpp>
36#include <boost/test/test_tools.hpp>
37using boost::unit_test::test_suite;
38using boost::unit_test::framework::master_test_suite;
40#include <oret/basedatapath.hpp>
41#include <oret/datapaths.hpp>
42#include <oret/oret.hpp>
43using ore::test::getBaseDataPath;
44using ore::test::setupTestLogging;
49#include <ql/auto_link.hpp>
51#define BOOST_LIB_NAME boost_serialization
52#include <boost/config/auto_link.hpp>
53#define BOOST_LIB_NAME boost_regex
54#include <boost/config/auto_link.hpp>
55#define BOOST_LIB_NAME boost_timer
56#include <boost/config/auto_link.hpp>
57#define BOOST_LIB_NAME boost_chrono
58#include <boost/config/auto_link.hpp>
64class OreaGlobalFixture {
67 int argc = master_test_suite().argc;
68 char** argv = master_test_suite().argv;
71 setupTestLogging(argc, argv);
74 basePath = getBaseDataPath(argc, argv);
77 ~OreaGlobalFixture() { stopTimer(); }
82 double seconds = t.elapsed().wall * 1e-9;
83 int hours = int(seconds / 3600);
84 seconds -= hours * 3600;
85 int minutes = int(seconds / 60);
86 seconds -= minutes * 60;
87 std::cout << std::endl <<
"OREData tests completed in ";
89 std::cout << hours <<
" h ";
90 if (hours > 0 || minutes > 0)
91 std::cout << minutes <<
" m ";
92 std::cout << std::fixed << std::setprecision(0) << seconds <<
" s" << std::endl;
103#if BOOST_VERSION < 106500
104BOOST_GLOBAL_FIXTURE(OreaGlobalFixture);
106BOOST_TEST_GLOBAL_FIXTURE(OreaGlobalFixture);