@@ -152,28 +152,29 @@ namespace runtime_config {
152152namespace {
153153
154154// framework parameters and corresponding command-line arguments
155- std::string AUTO_START_DBG = " auto_start_dbg" ;
156- std::string BREAK_EXEC_PATH = " break_exec_path" ;
157- std::string BUILD_INFO = " build_info" ;
158- std::string CATCH_SYS_ERRORS = " catch_system_errors" ;
159- std::string COLOR_OUTPUT = " color_output" ;
160- std::string DETECT_FP_EXCEPT = " detect_fp_exceptions" ;
161- std::string DETECT_MEM_LEAKS = " detect_memory_leaks" ;
162- std::string LIST_CONTENT = " list_content" ;
163- std::string LOG_FORMAT = " log_format" ;
164- std::string LOG_LEVEL = " log_level" ;
165- std::string LOG_SINK = " log_sink" ;
166- std::string OUTPUT_FORMAT = " output_format" ;
167- std::string RANDOM_SEED = " random" ;
168- std::string REPORT_FORMAT = " report_format" ;
169- std::string REPORT_LEVEL = " report_level" ;
170- std::string REPORT_SINK = " report_sink" ;
171- std::string RESULT_CODE = " result_code" ;
172- std::string TESTS_TO_RUN = " run_test" ;
173- std::string SAVE_TEST_PATTERN = " save_pattern" ;
174- std::string SHOW_PROGRESS = " show_progress" ;
175- std::string USE_ALT_STACK = " use_alt_stack" ;
176- std::string WAIT_FOR_DEBUGGER = " wait_for_debugger" ;
155+ std::string AUTO_START_DBG = " auto_start_dbg" ;
156+ std::string BREAK_EXEC_PATH = " break_exec_path" ;
157+ std::string BUILD_INFO = " build_info" ;
158+ std::string CATCH_SYS_ERRORS = " catch_system_errors" ;
159+ std::string COLOR_OUTPUT = " color_output" ;
160+ std::string DETECT_FP_EXCEPT = " detect_fp_exceptions" ;
161+ std::string DETECT_MEM_LEAKS = " detect_memory_leaks" ;
162+ std::string DEPRECATED_TIMER_FORMAT = " deprecated_timer_format" ;
163+ std::string LIST_CONTENT = " list_content" ;
164+ std::string LOG_FORMAT = " log_format" ;
165+ std::string LOG_LEVEL = " log_level" ;
166+ std::string LOG_SINK = " log_sink" ;
167+ std::string OUTPUT_FORMAT = " output_format" ;
168+ std::string RANDOM_SEED = " random" ;
169+ std::string REPORT_FORMAT = " report_format" ;
170+ std::string REPORT_LEVEL = " report_level" ;
171+ std::string REPORT_SINK = " report_sink" ;
172+ std::string RESULT_CODE = " result_code" ;
173+ std::string TESTS_TO_RUN = " run_test" ;
174+ std::string SAVE_TEST_PATTERN = " save_pattern" ;
175+ std::string SHOW_PROGRESS = " show_progress" ;
176+ std::string USE_ALT_STACK = " use_alt_stack" ;
177+ std::string WAIT_FOR_DEBUGGER = " wait_for_debugger" ;
177178
178179static const_string
179180parameter_2_env_var ( const_string param_name )
@@ -182,28 +183,29 @@ parameter_2_env_var( const_string param_name )
182183 static mtype s_mapping;
183184
184185 if ( s_mapping.empty () ) {
185- s_mapping[AUTO_START_DBG] = " BOOST_TEST_AUTO_START_DBG" ;
186- s_mapping[BREAK_EXEC_PATH] = " BOOST_TEST_BREAK_EXEC_PATH" ;
187- s_mapping[BUILD_INFO] = " BOOST_TEST_BUILD_INFO" ;
188- s_mapping[CATCH_SYS_ERRORS] = " BOOST_TEST_CATCH_SYSTEM_ERRORS" ;
189- s_mapping[COLOR_OUTPUT] = " BOOST_TEST_COLOR_OUTPUT" ;
190- s_mapping[DETECT_FP_EXCEPT] = " BOOST_TEST_DETECT_FP_EXCEPTIONS" ;
191- s_mapping[DETECT_MEM_LEAKS] = " BOOST_TEST_DETECT_MEMORY_LEAK" ;
192- s_mapping[LIST_CONTENT] = " BOOST_TEST_LIST_CONTENT" ;
193- s_mapping[LOG_FORMAT] = " BOOST_TEST_LOG_FORMAT" ;
194- s_mapping[LOG_LEVEL] = " BOOST_TEST_LOG_LEVEL" ;
195- s_mapping[LOG_SINK] = " BOOST_TEST_LOG_SINK" ;
196- s_mapping[OUTPUT_FORMAT] = " BOOST_TEST_OUTPUT_FORMAT" ;
197- s_mapping[RANDOM_SEED] = " BOOST_TEST_RANDOM" ;
198- s_mapping[REPORT_FORMAT] = " BOOST_TEST_REPORT_FORMAT" ;
199- s_mapping[REPORT_LEVEL] = " BOOST_TEST_REPORT_LEVEL" ;
200- s_mapping[REPORT_SINK] = " BOOST_TEST_REPORT_SINK" ;
201- s_mapping[RESULT_CODE] = " BOOST_TEST_RESULT_CODE" ;
202- s_mapping[TESTS_TO_RUN] = " BOOST_TESTS_TO_RUN" ;
203- s_mapping[SAVE_TEST_PATTERN] = " BOOST_TEST_SAVE_PATTERN" ;
204- s_mapping[SHOW_PROGRESS] = " BOOST_TEST_SHOW_PROGRESS" ;
205- s_mapping[USE_ALT_STACK] = " BOOST_TEST_USE_ALT_STACK" ;
206- s_mapping[WAIT_FOR_DEBUGGER] = " BOOST_TEST_WAIT_FOR_DEBUGGER" ;
186+ s_mapping[AUTO_START_DBG] = " BOOST_TEST_AUTO_START_DBG" ;
187+ s_mapping[BREAK_EXEC_PATH] = " BOOST_TEST_BREAK_EXEC_PATH" ;
188+ s_mapping[BUILD_INFO] = " BOOST_TEST_BUILD_INFO" ;
189+ s_mapping[CATCH_SYS_ERRORS] = " BOOST_TEST_CATCH_SYSTEM_ERRORS" ;
190+ s_mapping[COLOR_OUTPUT] = " BOOST_TEST_COLOR_OUTPUT" ;
191+ s_mapping[DETECT_FP_EXCEPT] = " BOOST_TEST_DETECT_FP_EXCEPTIONS" ;
192+ s_mapping[DETECT_MEM_LEAKS] = " BOOST_TEST_DETECT_MEMORY_LEAK" ;
193+ s_mapping[DEPRECATED_TIMER_FORMAT] = " BOOST_TEST_DEPRECATED_TIMER_FORMAT" ;
194+ s_mapping[LIST_CONTENT] = " BOOST_TEST_LIST_CONTENT" ;
195+ s_mapping[LOG_FORMAT] = " BOOST_TEST_LOG_FORMAT" ;
196+ s_mapping[LOG_LEVEL] = " BOOST_TEST_LOG_LEVEL" ;
197+ s_mapping[LOG_SINK] = " BOOST_TEST_LOG_SINK" ;
198+ s_mapping[OUTPUT_FORMAT] = " BOOST_TEST_OUTPUT_FORMAT" ;
199+ s_mapping[RANDOM_SEED] = " BOOST_TEST_RANDOM" ;
200+ s_mapping[REPORT_FORMAT] = " BOOST_TEST_REPORT_FORMAT" ;
201+ s_mapping[REPORT_LEVEL] = " BOOST_TEST_REPORT_LEVEL" ;
202+ s_mapping[REPORT_SINK] = " BOOST_TEST_REPORT_SINK" ;
203+ s_mapping[RESULT_CODE] = " BOOST_TEST_RESULT_CODE" ;
204+ s_mapping[TESTS_TO_RUN] = " BOOST_TESTS_TO_RUN" ;
205+ s_mapping[SAVE_TEST_PATTERN] = " BOOST_TEST_SAVE_PATTERN" ;
206+ s_mapping[SHOW_PROGRESS] = " BOOST_TEST_SHOW_PROGRESS" ;
207+ s_mapping[USE_ALT_STACK] = " BOOST_TEST_USE_ALT_STACK" ;
208+ s_mapping[WAIT_FOR_DEBUGGER] = " BOOST_TEST_WAIT_FOR_DEBUGGER" ;
207209 }
208210
209211 mtype::const_iterator it = s_mapping.find ( param_name );
@@ -288,6 +290,9 @@ init( int& argc, char** argv )
288290 << cla::named_parameter<std::string>( DETECT_MEM_LEAKS )
289291 - (cla::prefix = " --" ,cla::separator = " =" ,cla::guess_name,cla::optional,cla::optional_value,
290292 cla::description = " Allows to switch between catching and ignoring memory leaks" )
293+ << cla::named_parameter<std::string>( DEPRECATED_TIMER_FORMAT )
294+ - (cla::prefix = " --" ,cla::separator = " =" ,cla::guess_name,cla::optional,cla::optional_value,
295+ cla::description = " Forces HRF output for timing information to mimic the deprecated boost timer output" )
291296 << cla::dual_name_parameter<unit_test::output_format>( LOG_FORMAT + " |f" )
292297 - (cla::prefix = " --|-" ,cla::separator = " =| " ,cla::guess_name,cla::optional,
293298 cla::description = " Specifies log format" )
@@ -499,6 +504,14 @@ detect_fp_exceptions()
499504
500505// ____________________________________________________________________________//
501506
507+ bool
508+ deprecated_timer_format ()
509+ {
510+ return retrieve_parameter ( DEPRECATED_TIMER_FORMAT, s_cla_parser, false );
511+ }
512+
513+ // ____________________________________________________________________________//
514+
502515output_format
503516report_format ()
504517{
0 commit comments