????????????????????????????????????????????д??????????

????2.  ??? console_test_runner.exe

????console_test_runner.exe??boost??????????????????????????

????1). ????б????? bjam

????2). ?????????±??? console_test_runner?????????bjam libs est oolsconsole_test_runner

????3). ??????? console_test_runner.exe??boost_unit_test_framework-vc80-mt-gd-1_51.dll ????????????????

????4). ??????????ó????? dll ?е?????????????dll????????? BOOST_TEST_DYN_LINK?????? dll ?????? ???? boost_unit_test_framework-vc80-mt-gd-1_51.lib

????5). ???????: console_test_runner.exe --test xxx.dll ??????????

?????????????? dll ??д?????????????????

// dll??
BOOST_AUTO_TEST_CASE( test1 )
{
int i = 0;
BOOST_CHECK_EQUAL( i?? 2 );
}
BOOST_AUTO_TEST_CASE( test2 )
{
BOOST_CHECKPOINT("About to force division by zero!");
int i = 1?? j = 0;
i = i / j;
}
extern "C" {
#ifdef BOOST_WINDOWS
declspec(dllexport)
#endif bool init_unit_test()
{
framework::master_test_suite().p_name.value = "Test runner test";
return true;
}
}