27 #ifndef BOOST_TEST_DYN_LINK 28 #define BOOST_TEST_DYN_LINK 31 #define BOOST_TEST_MAIN 32 #define BOOST_TEST_NO_MAIN 33 #include <boost/test/unit_test.hpp> 34 #include <boost/test/floating_point_comparison.hpp> 36 #include <miaconfig.h> 44 template <
typename Plugin>
50 BOOST_REQUIRE(param_list.
size() > 0);
51 BOOST_CHECK_EQUAL(plugin.get_name(), param_list.
begin()->first);
52 return typename Plugin::UniqueProduct(plugin.create(param_list.
begin()->second, param));
67 int BOOST_TEST_CALL_DECL
70 mia::PrepareTestPluginPath prepare_plugin_path;
72 _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
73 _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_DEBUG );
75 if (mia::CCmdOptionList(
description).parse(argc, argv,
"boost-test-option") != mia::CCmdOptionList::hr_no)
78 return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
const_iterator begin() const
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
std::map< EProgramDescriptionEntry, const char * > SProgramDescription
the map that holds a basic program description
int BOOST_TEST_CALL_DECL do_main(int argc, char *argv[])
Plugin::UniqueProduct BOOST_TEST_create_from_plugin(const char *param)
const mia::SProgramDescription description
CParts::size_type size() const
Parser for complex command line options.
#define NS_MIA_END
conveniance define to end the mia namespace