24#include <boost/make_shared.hpp>
25#include <boost/timer/timer.hpp>
26using boost::timer::cpu_timer;
29#define BOOST_TEST_MODULE OREDataTestSuite
30#include <boost/test/unit_test.hpp>
31using boost::unit_test::test_suite;
32using boost::unit_test::framework::master_test_suite;
34#include <oret/basedatapath.hpp>
35#include <oret/datapaths.hpp>
36#include <oret/oret.hpp>
37using ore::test::getBaseDataPath;
38using ore::test::setupTestLogging;
42#include <ql/auto_link.hpp>
44#define BOOST_LIB_NAME boost_date_time
45#include <boost/config/auto_link.hpp>
46#define BOOST_LIB_NAME boost_serialization
47#include <boost/config/auto_link.hpp>
48#define BOOST_LIB_NAME boost_regex
49#include <boost/config/auto_link.hpp>
50#define BOOST_LIB_NAME boost_timer
51#include <boost/config/auto_link.hpp>
52#define BOOST_LIB_NAME boost_chrono
53#include <boost/config/auto_link.hpp>
59class OredGlobalFixture {
62 int argc = master_test_suite().argc;
63 char** argv = master_test_suite().argv;
66 setupTestLogging(argc, argv);
69 basePath = getBaseDataPath(argc, argv);
72 ~OredGlobalFixture() { stopTimer(); }
77 double seconds = t.elapsed().wall * 1e-9;
78 int hours = int(seconds / 3600);
79 seconds -= hours * 3600;
80 int minutes = int(seconds / 60);
81 seconds -= minutes * 60;
82 cout << endl <<
"OREData tests completed in ";
84 cout << hours <<
" h ";
85 if (hours > 0 || minutes > 0)
86 cout << minutes <<
" m ";
87 cout << fixed << setprecision(0) << seconds <<
" s" << endl;
98#if BOOST_VERSION < 106500
99BOOST_GLOBAL_FIXTURE(OredGlobalFixture);
101BOOST_TEST_GLOBAL_FIXTURE(OredGlobalFixture);