From 5b3b43c74a0b03a1b5b899ac975e098f1972d0ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 21 Aug 2019 10:18:12 +0900 Subject: [PATCH] Include xml converter in coverage suite (#6758) To convert lcov report to xml, include xml converter tool into coverage suite Signed-off-by: Hyeongseok Oh --- Makefile.template | 3 ++- infra/scripts/test_coverage.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.template b/Makefile.template index 51e19b4..a0ae361 100644 --- a/Makefile.template +++ b/Makefile.template @@ -163,7 +163,8 @@ build_coverage_suite: install_internal @rm -rf $(INSTALL_ROOT)/coverage-suite.tar.gz @find Product -name "*.gcno" > include_lists.txt @pwd | grep -o '/' | wc -l > tests/scripts/build_path_depth.txt - @tar -zcf coverage-suite.tar.gz tests/scripts tests/framework nnas nnfw infra runtimes $(INSTALL_ALIAS) --dereference -T include_lists.txt + @tar -zcf coverage-suite.tar.gz tests/scripts tests/framework tools/lcov-to-cobertura-xml \ + nnas nnfw infra runtimes $(INSTALL_ALIAS) --dereference -T include_lists.txt @rm -rf include_lists.txt tests/scripts/build_path_depth.txt @mv coverage-suite.tar.gz $(INSTALL_ROOT)/. diff --git a/infra/scripts/test_coverage.sh b/infra/scripts/test_coverage.sh index 09963c7..2d9a444 100755 --- a/infra/scripts/test_coverage.sh +++ b/infra/scripts/test_coverage.sh @@ -36,7 +36,7 @@ NEURUN_LOG_ENABLE=1 GRAPH_DOT_DUMP=1 ./infra/scripts/test_arm_neurun_acl_cl.sh # Pack coverage test data: coverage-data.tar.gz find Product -type f \( -iname *.gcda -or -iname *.gcno \) > include_lists.txt -tar -zcf coverage-data.tar.gz nnas nnfw infra runtimes -T include_lists.txt +tar -zcf coverage-data.tar.gz nnas nnfw infra runtimes tools -T include_lists.txt rm -rf include_lists.txt popd > /dev/null -- 2.7.4