Fixed comments after coverage PR (#13100)

This commit is contained in:
Ilya Churaev authored and GitHub committed 2022-09-19 17:20:05 +03:00
1 parent c349e9c3e7
commit b7d183e6e6
3 files changed
+11 -11

No files matched your search

@@ -55,10 +55,10 @@ endfunction()
# ov_coverage_capture(INFO_FILE <info_file>
# BASE_DIRECTORY <base dir>
# DIRECTORY <gcda dir>
# PATTERNS exclude_patterns,...)
# EXCLUDE_PATTERNS exclude_patterns,...)
#
function(ov_coverage_capture)
cmake_parse_arguments(OV_COVERAGE "" "INFO_FILE;BASE_DIRECTORY;DIRECTORY" "PATTERNS" ${ARGN})
cmake_parse_arguments(OV_COVERAGE "" "INFO_FILE;BASE_DIRECTORY;DIRECTORY" "EXCLUDE_PATTERNS" ${ARGN})
set(output_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}.info")
set(output_base_file "${OV_COVERAGE_REPORTS}/${OV_COVERAGE_INFO_FILE}_base.info")
@@ -82,7 +82,7 @@ function(ov_coverage_capture)
COMMENT "Capture test coverage data ${OV_COVERAGE_INFO_FILE}"
VERBATIM)
if (OV_COVERAGE_PATTERNS)
if (OV_COVERAGE_EXCLUDE_PATTERNS)
set(out_suf ".tmp")
endif()
@@ -95,9 +95,9 @@ function(ov_coverage_capture)
DEPENDS ${output_base_file} ${output_tests_file}
VERBATIM)
if (OV_COVERAGE_PATTERNS)
if (OV_COVERAGE_EXCLUDE_PATTERNS)
set(commands lcov --quiet)
foreach(pattern IN LISTS OV_COVERAGE_PATTERNS)
foreach(pattern IN LISTS OV_COVERAGE_EXCLUDE_PATTERNS)
list(APPEND commands --remove ${output_file}${out_suf} ${pattern})
endforeach()
list(APPEND commands --output-file ${output_file})
+1 -1
View File
@@ -33,7 +33,7 @@ ie_option (ENABLE_UB_SANITIZER "enable UndefinedBahavior sanitizer" OFF)
ie_option (ENABLE_THREAD_SANITIZER "enable checking data races via ThreadSanitizer" OFF)
ie_dependent_option (ENABLE_COVERAGE "enable code coverage" OFF "CMAKE_CXX_COMPILER_ID STREQUAL GNU OR APPLE" OFF)
ie_dependent_option (ENABLE_COVERAGE "enable code coverage" OFF "CMAKE_CXX_COMPILER_ID STREQUAL GNU OR OV_COMPILER_IS_CLANG" OFF)
# Defines CPU capabilities