unit_test_init_cleanup.hpp 767 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * unit_test_init_cleanup.hpp
 *
 *  Created on: Apr 17, 2015
 *      Author: Pietro Incardona
 */

#ifndef UNIT_TEST_INIT_CLEANUP_HPP_
#define UNIT_TEST_INIT_CLEANUP_HPP_

#include "VCluster.hpp"

struct ut_start {
Pietro Incardona's avatar
Pietro Incardona committed
14
15
16
17
    ut_start()   { BOOST_TEST_MESSAGE("Initialize global VCluster"); init_global_v_cluster(&boost::unit_test::framework::master_test_suite().argc,&boost::unit_test::framework::master_test_suite().argv);std::cout << "Init\n";}
    ~ut_start()  { BOOST_TEST_MESSAGE("Delete global VClster");
                   std::cout << "Finalize\n";
                   delete_global_v_cluster(); }
incardon's avatar
incardon committed
18
19
20
21
22
23
24
25
26
};

//____________________________________________________________________________//

BOOST_GLOBAL_FIXTURE( ut_start );



#endif /* UNIT_TEST_INIT_CLEANUP_HPP_ */