[go: up one dir, main page]

1#ifdef BOOST_TEST_DYN_LINK
2/* This file needs to be linked with the test suite in case the
3 shared-library version of the Boost unit-test framework is used. */
4#include <boost/test/unit_test.hpp>
5#include <boost/test/framework.hpp>
6
7using namespace boost::unit_test;
8
9test_suite* init_unit_test_suite(int, char* []);
10
11bool init_function() {
12 framework::master_test_suite().add(tu: init_unit_test_suite(0, nullptr));
13 return true;
14}
15
16int main( int argc, char* argv[] ) {
17 return ::boost::unit_test::unit_test_main( init_func: &init_function, argc, argv );
18}
19
20#endif
21

source code of quantlib/test-suite/main.cpp