21 #define ORO_MEMORY_POOL 32 #define BOOST_TEST_MAIN 33 #define BOOST_TEST_DYN_LINK 34 #include <boost/test/unit_test.hpp> 35 #include <boost/version.hpp> 37 using boost::unit_test::test_suite;
47 if ( argc > 1 && strncmp(argv[1],
"--help",6) == 0 ) {
48 cout <<
"This unit test executable takes the following options:" <<
endl<<
endl;
49 cout <<
"The starred option is the default, available options depend on Boost UTF library version." <<endl<<
endl;
50 cout <<
" --build_info[=<yes|no*>] "<<
endl;
51 cout <<
" --catch_system_errors[=<yes*|no> "<<
endl;
52 cout <<
" --detect_memory_leaks[=<yes*|no> "<<
endl;
53 cout <<
" --log_format[=<HRF*|XML> "<<
endl;
54 cout <<
" --log_level[=<all|success|test_suite|message|warning|error*|cpp_exception|system_error|fatal_error|nothing>"<<
endl;
55 cout <<
" --result_code[=<yes*|no> "<<
endl;
56 cout <<
" --output_format[=<HRF*|XML> "<<
endl;
57 cout <<
" --random[=<0*|1|>1> "<<
endl;
58 cout <<
" --report_format[=<HRF*|XML> "<<
endl;
59 cout <<
" --report level[=<no|confirm*|short|detailed>"<<
endl;
60 cout <<
" --show_progress[=<yes|no*> "<<endl<<
endl;
61 cout <<
" --use_alt_stack[=<yes*|no> "<<endl<<
endl;
63 cout <<
"Select tests by using the form:"<<
endl;
64 cout <<
" " << argv[0] <<
" --run_test=suite/testX"<<
endl;
65 cout <<
"Wildcards are accepted:"<<
endl;
66 cout <<
" " << argv[0] <<
" --run_test=*/testX"<<
endl;
74 setenv(
"RTT_COMPONENT_PATH",
"../rtt:../../rtt", 0);
80 rtMem = malloc(BUILD_TEST_RT_MEM_POOL_SIZE);
83 assert((
size_t)-1 != freeMem);
93 log(
Info) <<
"LogLevel unaltered by test-runner." <<
endlog();
110 #ifndef OROCOS_TARGET_XENOMAI 120 #if BOOST_VERSION >= 106000 int __os_init(int argc, char **argv)
size_t init_memory_pool(size_t mem_pool_size, void *mem_pool)
static StartStopManager * Instance()
#define BOOST_GLOBAL_FIXTURE(F)
basic_ostreams & endl(basic_ostreams &s)
boost::unit_test::test_suite * init_unit_test_suite(int argc, char **const argv)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
int setenv(const char *name, const char *value, int overwrite)
void stop()
Call all registered stop functions.
static Logger::LogFunction endlog()
void setLogLevel(LogLevel ll)