Move lcov-to-cobertura-xml script (#5580)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 9 Jul 2019 04:27:16 +0000 (13:27 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 9 Jul 2019 04:27:16 +0000 (13:27 +0900)
Move externals/lcov-to-cobertura-xml directory to tools/
Remove external tool dependency in gen-coverage-report command

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
scripts/command/gen-coverage-report
scripts/standalone/docker_coverage_report.sh
tools/lcov-to-cobertura-xml/.FORMATDENY [new file with mode: 0644]
tools/lcov-to-cobertura-xml/README.md [moved from externals/lcov-to-cobertura-xml/README.md with 100% similarity]
tools/lcov-to-cobertura-xml/lcov_cobertura.py [moved from externals/lcov-to-cobertura-xml/lcov_cobertura.py with 100% similarity]

index 25b2eb5..7a652f2 100644 (file)
@@ -56,6 +56,3 @@ COVERTURA_PATH="${OUTPUT_PATH}/nnfw_coverage.xml"
                -a "${RUNTIMES_COVERAGE_INFO_PATH}" -a "${TOOLS_COVERAGE_INFO_PATH}" \
                -o "${FINAL_COVERAGE_INFO_PATH}"
 "${GENHTML_PATH}" "${FINAL_COVERAGE_INFO_PATH}" --output-directory "${HTML_PATH}" ${GENHTML_FLAG:-}
-
-tar -zcf "${OUTPUT_PATH}"/coverage_report.tar.gz "${HTML_PATH}"
-python ${NNFW_PROJECT_PATH}/externals/lcov-to-cobertura-xml/lcov_cobertura.py "${FINAL_COVERAGE_INFO_PATH}" -o "${COVERTURA_PATH}"
index 7f90d0e..2820433 100755 (executable)
@@ -14,7 +14,9 @@ set -e
 
 pushd $ROOT_PATH > /dev/null
 
-CMD="GCOV_PATH=arm-linux-gnueabihf-gcov ./nnfw gen-coverage-report"
+CMD="GCOV_PATH=arm-linux-gnueabihf-gcov ./nnfw gen-coverage-report &&
+     tar -zcf coverage/coverage_report.tar.gz coverage/html &&
+     python tools/lcov-to-cobertura-xml/lcov_cobertura.py coverage/coverage.info -o coverage/nnfw_coverage.xml"
 source nnfw docker-run-user bash -c "$CMD"
 
 popd > /dev/null
diff --git a/tools/lcov-to-cobertura-xml/.FORMATDENY b/tools/lcov-to-cobertura-xml/.FORMATDENY
new file mode 100644 (file)
index 0000000..e69de29