Generage coverage report only for libs and tools (#152)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 26 Apr 2018 04:25:24 +0000 (13:25 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 26 Apr 2018 04:25:24 +0000 (13:25 +0900)
This commit revises 'gen-coverage-report' to consider sources under libs
and tools (which nncc officially provides) when generating coverage
report.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
scripts/command/gen-coverage-report

index e389d1d..8a12bc7 100644 (file)
@@ -37,7 +37,7 @@ HTML_PATH="${OUTPUT_PATH}/html"
 
 "${LCOV_PATH}" -c -d "${BUILD_WORKSPACE_PATH}" -o "${RAW_COVERAGE_INFO_PATH}"
 "${LCOV_PATH}" -e "${RAW_COVERAGE_INFO_PATH}" -o "${EXTRACTED_COVERAGE_INFO_PATH}" \
-  "${NNCC_PROJECT_PATH}"'/*'
+  "${NNCC_PROJECT_PATH}"'/libs/*' "${NNCC_PROJECT_PATH}"'/tools/*'
 "${LCOV_PATH}" -r "${EXTRACTED_COVERAGE_INFO_PATH}" -o "${EXCLUDED_COVERAGE_INFO_PATH}" \
   '*.test.cpp'
 "${GENHTML_PATH}" "${EXCLUDED_COVERAGE_INFO_PATH}" \