Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Configuration Macros

Macro

Meaning

BOOST_TEST_ALTERNATIVE_INIT_API

When defined, the alternative init_unit_test_func test module initialization API is used.

BOOST_TEST_DYN_LINK

When defined, the implementation is compiled as a shared library. Defining BOOST_TEST_DYN_LINK also defines BOOST_TEST_ALTERNATIVE_INIT_API.

BOOST_TEST_MAIN

When defined, an implementation of main is included in the source file.

BOOST_TEST_MODULE

When defined, it provides the name of the master test suite, otherwise a default name is used.

BOOST_TEST_NO_LIB

When defined, no automatic linking is performed.

BOOST_TEST_NO_MAIN

When defined, no implementation of main is provided in any configuration. Static and shared libraries must have been built with this symbol defined for it to take effect when using the library. The test executable must provide its own implementation of main; unit_test_main may be used for this purpose.

When using any of these macros, they must be defined before including any header from Boost.Test.


PrevUpHomeNext