12 #if defined(UTILS_TEST_MACRO_TEST_ENABLE_BOOST_TEST)
14 # ifdef BOOST_TEST_ALTERNATIVE_INIT_API
15 bool init_unit_test() {
17 boost::unit_test::test_suite *init_unit_test_suite(
int argc,
char *argv[]) {
22 # ifdef BOOST_TEST_ALTERNATIVE_INIT_API
31 #if !defined(UTILS_TEST_MACRO_TEST_ENABLE_BOOST_TEST) || defined(BOOST_TEST_DYN_LINK) || defined(BOOST_TEST_NO_MAIN)
33 int main(
int argc,
char *argv[]) {
34 # ifdef UTILS_TEST_MACRO_TEST_ENABLE_GTEST
35 ::testing::InitGoogleTest(&argc, argv);
37 int ret = RUN_ALL_TESTS();
40 # elif defined(UTILS_TEST_MACRO_TEST_ENABLE_BOOST_TEST)
42 # ifdef BOOST_TEST_ALTERNATIVE_INIT_API
43 boost::unit_test::init_unit_test_func init_func = &init_unit_test;
45 boost::unit_test::init_unit_test_func init_func = &init_unit_test_suite;
49 int ret = ::boost::unit_test::unit_test_main(init_func, argc, argv);
int run_tests(int argc, char *argv[])