1 | /* |
2 | * unit_test_init_cleanup.hpp |
3 | * |
4 | * Created on: Apr 17, 2015 |
5 | * Author: Pietro Incardona |
6 | */ |
7 | |
8 | #ifndef UNIT_TEST_INIT_CLEANUP_HPP_ |
9 | #define UNIT_TEST_INIT_CLEANUP_HPP_ |
10 | |
11 | #include "VCluster/VCluster.hpp" |
12 | #include "initialize/initialize_wrapper.hpp" |
13 | |
14 | struct ut_start { |
15 | ut_start() { |
16 | BOOST_TEST_MESSAGE("Initialize global VCluster" ); |
17 | openfpm_init_wrapper(&boost::unit_test::framework::master_test_suite().argc,&boost::unit_test::framework::master_test_suite().argv); |
18 | } |
19 | |
20 | ~ut_start() { |
21 | BOOST_TEST_MESSAGE("Delete global VClster" ); |
22 | openfpm_finalize(); |
23 | } |
24 | }; |
25 | |
26 | //____________________________________________________________________________// |
27 | |
28 | BOOST_GLOBAL_FIXTURE( ut_start ); |
29 | |
30 | |
31 | |
32 | #endif /* UNIT_TEST_INIT_CLEANUP_HPP_ */ |
33 | |