File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ execute_process(COMMAND ${GCC_TOOL} --version OUTPUT_VARIABLE GCC_TOOL_VERSION E
25
25
string (REGEX MATCH "[0-9]+(\\ .[0-9]+)+" GCC_TOOL_VERSION "${GCC_TOOL_VERSION} " )
26
26
message (STATUS "🔖 GCC ${GCC_TOOL_VERSION} (${GCC_TOOL} )" )
27
27
28
- find_program (GCOV_TOOL NAMES gcov-HEAD gcov-15 gcov-14 gcov-13 gcov-12 gcov-11 gcov-10 gcov )
28
+ find_program (GCOV_TOOL NAMES gcov-HEAD gcov gcov -15 gcov-14 gcov-13 gcov-12 gcov-11 gcov-10 )
29
29
execute_process (COMMAND ${GCOV_TOOL} --version OUTPUT_VARIABLE GCOV_TOOL_VERSION ERROR_VARIABLE GCOV_TOOL_VERSION )
30
30
string (REGEX MATCH "[0-9]+(\\ .[0-9]+)+" GCOV_TOOL_VERSION "${GCOV_TOOL_VERSION} " )
31
31
message (STATUS "🔖 GCOV ${GCOV_TOOL_VERSION} (${GCOV_TOOL} )" )
@@ -613,8 +613,8 @@ add_custom_target(ci_test_coverage
613
613
COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR} /build_coverage32
614
614
COMMAND cd ${PROJECT_BINARY_DIR} /build_coverage32 && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
615
615
616
- COMMAND ${LCOV_TOOL} --directory . --capture --output-file json.info --rc lcov_branch_coverage=1
617
- COMMAND ${LCOV_TOOL} -e json.info ${SRC_FILES} --output-file json.info.filtered --rc lcov_branch_coverage=1
616
+ COMMAND ${LCOV_TOOL} --directory . --capture --output-file json.info --rc branch_coverage=1 --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch --ignore-errors unused
617
+ COMMAND ${LCOV_TOOL} -e json.info ${SRC_FILES} --output-file json.info.filtered --rc branch_coverage=1 --ignore-errors unused
618
618
COMMAND ${CMAKE_SOURCE_DIR} /tests/thirdparty/imapdl/filterbr.py json.info.filtered > json.info.filtered.noexcept
619
619
COMMAND genhtml --title "JSON for Modern C++" --legend --demangle-cpp --output-directory html --show-details --branch-coverage json.info.filtered.noexcept
620
620
You can’t perform that action at this time.
0 commit comments