summaryrefslogtreecommitdiff
path: root/infra/command/gen-coverage-report
diff options
context:
space:
mode:
Diffstat (limited to 'infra/command/gen-coverage-report')
-rw-r--r--infra/command/gen-coverage-report4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/command/gen-coverage-report b/infra/command/gen-coverage-report
index 3058aee9a..df6377d2a 100644
--- a/infra/command/gen-coverage-report
+++ b/infra/command/gen-coverage-report
@@ -69,10 +69,10 @@ done
opencl_files=($(find ./runtime/onert/backend/gpu_cl/open_cl/ \( -name "*.cc" -o -name "*.h" \) -exec realpath {} \; ))
-# Exclude *.test.cpp files from coverage report
+# Exclude test files from coverage report
# Exclude flatbuffer generated files from coverage report
"${LCOV_PATH}" -r "${EXTRACTED_COVERAGE_INFO_PATH}" -o "${EXCLUDED_COVERAGE_INFO_PATH}" \
- '*.test.cpp' '*_schema_generated.h' "${opencl_files[@]}"
+ '*.test.cpp' '*.test.cc' '*/test/*' '*/tests/*' '*_schema_generated.h' "${opencl_files[@]}"
# Final coverage data
cp -v ${EXCLUDED_COVERAGE_INFO_PATH} ${COVERAGE_INFO_PATH}