OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
unit_test_init_cleanup_io.hpp
1 /*
2  * unit_test_init_cleanup.hpp
3  *
4  * Created on: May 1, 2017
5  * Author: i-bird
6  */
7 
8 #ifndef OPENFPM_IO_SRC_UNIT_TEST_INIT_CLEANUP_IO_HPP_
9 #define OPENFPM_IO_SRC_UNIT_TEST_INIT_CLEANUP_IO_HPP_
10 
11 
12 struct ut_start
13 {
15  ut_start()
16  {
17  BOOST_TEST_MESSAGE("Initialize global VCluster");
18 
19  openfpm_init(&boost::unit_test::framework::master_test_suite().argc,&boost::unit_test::framework::master_test_suite().argv);
20  }
21 
22  ~ut_start()
23  {
24  BOOST_TEST_MESSAGE("Delete global VClster");
25  openfpm_finalize();
26  }
27 };
28 
29 //____________________________________________________________________________//
30 
31 BOOST_GLOBAL_FIXTURE( ut_start );
32 
33 
34 #endif /* OPENFPM_IO_SRC_UNIT_TEST_INIT_CLEANUP_IO_HPP_ */
boost unit test fixation (start procedure to call before testing)