summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2018-11-20 19:09:36 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2018-11-20 19:09:36 +0900
commite659b76a45dacdf68cc764c5eb10f0e0bf1403db (patch)
tree5d501111edda0e51546abd0bab11bb3981097ff5
parent586971e678584cb8721be1532e4455ed75dee78a (diff)
downloadnnfw-e659b76a45dacdf68cc764c5eb10f0e0bf1403db.tar.gz
nnfw-e659b76a45dacdf68cc764c5eb10f0e0bf1403db.tar.bz2
nnfw-e659b76a45dacdf68cc764c5eb10f0e0bf1403db.zip
Generate text file to save build path depth in coverage build (#3651)
Generate text file tools/test_driver/build_path_depth.txt to save build path depth. gcov for cross build need directory strip to match build host directory and target directory. Build path depth will be used to set GCOV_PREFIX_STRIP environment variable on target. Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 59fa35764..d063f2b35 100644
--- a/Makefile
+++ b/Makefile
@@ -218,8 +218,9 @@ build_coverage_suite: install_internal
@echo "packaging test-coverage suite"
@rm -rf $(INSTALL_ROOT)/coverage-suite.tar.gz
@find Product -name "*.gcno" > include_lists.txt
+ @pwd | grep -o '/' | wc -l > tools/test_driver/build_path_depth.txt
@tar -zcf coverage-suite.tar.gz tests/ tools/test_driver $(INSTALL_ALIAS) --dereference -T include_lists.txt
- @rm -rf include_lists.txt
+ @rm -rf include_lists.txt tools/test_driver/build_path_depth.txt
@mv coverage-suite.tar.gz $(INSTALL_ROOT)/.
runtime_build_internal: $(BUILD_ROOT)