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>
43 template <
typename Plugin>
49 BOOST_REQUIRE(param_list.
size() > 0);
50 BOOST_CHECK_EQUAL(plugin.get_name(), param_list.
begin()->first);
51 return typename Plugin::UniqueProduct(plugin.create(param_list.
begin()->second, param));
66 int BOOST_TEST_CALL_DECL
69 setenv(
"MIA_PLUGIN_TESTPATH", MIA_BUILD_ROOT
"/plugintest/" PLUGIN_INSTALL_PATH,1);
71 _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
72 _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_DEBUG );
74 if (mia::CCmdOptionList(
description).parse(argc, argv,
"boost-test-option") != mia::CCmdOptionList::hr_no)
77 return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
CParts::size_type size() const
std::map< EProgramDescriptionEntry, const char * > SProgramDescription
the map that holds a basic program description
const_iterator begin() const
Plugin::UniqueProduct BOOST_TEST_create_from_plugin(const char *param)
const mia::SProgramDescription description
vstream & cvdebug()
Short for debug output in non-debug build output send to this will be ignored.
int BOOST_TEST_CALL_DECL do_main(int argc, char *argv[])
Parser for complex command line options.
#define MIA_MAIN(callback)
#define NS_MIA_END
conveniance define to end the mia namespace