Lines Matching +full:gcov +full:- +full:4
7 # strip -DNDEBUG from the default CMake flags in DEBUG mode.
10 add_definitions( -UNDEBUG )
11 add_definitions(-DTEST_BENCHMARK_LIBRARY_HAS_NO_ASSERTIONS)
20 string (REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
25 check_cxx_compiler_flag(-O3 BENCHMARK_HAS_O3_FLAG)
28 set(BENCHMARK_O3_FLAG "-O3")
57 add_test(NAME benchmark COMMAND benchmark_test --benchmark_min_time=0.01)
61 …add_test(NAME ${name} COMMAND filter_test --benchmark_min_time=0.01 --benchmark_filter=${filter} $…
62 …add_test(NAME ${name}_list_only COMMAND filter_test --benchmark_list_tests --benchmark_filter=${fi…
66 add_filter_test(filter_simple_negative "-Foo" 2)
67 add_filter_test(filter_suffix "BM_.*" 4)
68 add_filter_test(filter_suffix_negative "-BM_.*" 1)
70 add_filter_test(filter_regex_all_negative "-.*" 0)
72 add_filter_test(filter_regex_blank_negative "-" 0)
74 add_filter_test(filter_regex_none_negative "-monkey" 5)
76 add_filter_test(filter_regex_wildcard_negative "-.*Foo.*" 2)
77 add_filter_test(filter_regex_begin "^BM_.*" 4)
78 add_filter_test(filter_regex_begin_negative "-^BM_.*" 1)
80 add_filter_test(filter_regex_begin2_negative "-^N" 4)
82 add_filter_test(filter_regex_end_negative "-.*Ba$" 4)
85 add_test(NAME options_benchmarks COMMAND options_test --benchmark_min_time=0.01)
88 add_test(NAME basic_benchmark COMMAND basic_test --benchmark_min_time=0.01)
91 add_test(NAME diagnostics_test COMMAND diagnostics_test --benchmark_min_time=0.01)
94 add_test(NAME skip_with_error_test COMMAND skip_with_error_test --benchmark_min_time=0.01)
98 check_cxx_compiler_flag(-O3 BENCHMARK_HAS_O3_FLAG)
100 set_target_properties(donotoptimize_test PROPERTIES COMPILE_FLAGS "-O3")
102 add_test(NAME donotoptimize_test COMMAND donotoptimize_test --benchmark_min_time=0.01)
105 add_test(NAME fixture_test COMMAND fixture_test --benchmark_min_time=0.01)
108 add_test(NAME register_benchmark_test COMMAND register_benchmark_test --benchmark_min_time=0.01)
111 add_test(NAME map_test COMMAND map_test --benchmark_min_time=0.01)
114 add_test(NAME multiple_ranges_test COMMAND multiple_ranges_test --benchmark_min_time=0.01)
117 add_test(NAME args_product_test COMMAND args_product_test --benchmark_min_time=0.01)
120 add_test(NAME link_main_test COMMAND link_main_test --benchmark_min_time=0.01)
123 add_test(NAME reporter_output_test COMMAND reporter_output_test --benchmark_min_time=0.01)
126 add_test(NAME templated_fixture_test COMMAND templated_fixture_test --benchmark_min_time=0.01)
129 add_test(NAME user_counters_test COMMAND user_counters_test --benchmark_min_time=0.01)
132 add_test(NAME internal_threading_test COMMAND internal_threading_test --benchmark_min_time=0.01)
135 add_test(NAME report_aggregates_only_test COMMAND report_aggregates_only_test --benchmark_min_time=…
138 add_test(NAME display_aggregates_only_test COMMAND display_aggregates_only_test --benchmark_min_tim…
141 …_counters_tabular_test COMMAND user_counters_tabular_test --benchmark_counters_tabular=true --benc…
144 add_test(NAME user_counters_thousands_test COMMAND user_counters_thousands_test --benchmark_min_tim…
147 add_test(NAME memory_manager_test COMMAND memory_manager_test --benchmark_min_time=0.01)
149 check_cxx_compiler_flag(-std=c++03 BENCHMARK_HAS_CXX03_FLAG)
157 # LTO is enabled and -Werror is specified GCC diagnoses this ODR violation
160 check_cxx_compiler_flag(-Wno-odr BENCHMARK_HAS_WNO_ODR)
164 LINK_FLAGS "-Wno-odr")
166 add_test(NAME cxx03 COMMAND cxx03_test --benchmark_min_time=0.01)
176 add_test(NAME complexity_benchmark COMMAND complexity_test --benchmark_min_time=${COMPLEXITY_MIN_TI…
226 find_program(GCOV gcov)
230 if (GCOV AND LCOV AND GENHTML AND CTEST AND HAVE_CXX_FLAG_COVERAGE)
233 COMMAND ${LCOV} -q -z -d .
234 COMMAND ${LCOV} -q --no-external -c -b "${CMAKE_SOURCE_DIR}" -d . -o before.lcov -i
235 COMMAND ${CTEST} --force-new-ctest-process
236 COMMAND ${LCOV} -q --no-external -c -b "${CMAKE_SOURCE_DIR}" -d . -o after.lcov
237 COMMAND ${LCOV} -q -a before.lcov -a after.lcov --output-file final.lcov
238 COMMAND ${LCOV} -q -r final.lcov "'${CMAKE_SOURCE_DIR}/test/*'" -o final.lcov
239 … COMMAND ${GENHTML} final.lcov -o lcov --demangle-cpp --sort -p "${CMAKE_BINARY_DIR}" -t benchmark
257 " gcov: ${GCOV}\n"
261 " --coverage flag: ${CXX_FLAG_COVERAGE_MESSAGE}")