From 5ae194fc6f9084d2b7e834125f9943cb49916972 Mon Sep 17 00:00:00 2001 From: spo Date: Thu, 19 Nov 2015 11:16:38 +0300 Subject: [PATCH] Improve lcov scripts --- lcov-reset.sh | 3 ++- lcov-run.sh | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lcov-reset.sh b/lcov-reset.sh index 63b3964f7..542419c7e 100755 --- a/lcov-reset.sh +++ b/lcov-reset.sh @@ -1,6 +1,7 @@ #!/bin/bash -source env_lcov.sh +source env.sh +source ${TOOLS_DIR}/env_linux.sh echo "Reset coverage data..." lcov --zerocounters --directory $(cd ../; pwd) diff --git a/lcov-run.sh b/lcov-run.sh index 01a734b44..ef450e0a5 100755 --- a/lcov-run.sh +++ b/lcov-run.sh @@ -1,10 +1,11 @@ #!/bin/bash -source env_lcov.sh +source env.sh +source ${TOOLS_DIR}/env_linux.sh echo "Collect coverage data..." -lcov --capture --directory $(cd ../; pwd) --output-file coverage.info --no-external +lcov --capture --directory ${BUILD_DIR} --output-file coverage.info echo "Generate HTML for coverage data..." -genhtml coverage.info --output-directory lcov_html +genhtml coverage.info --output-directory ${1:-lcov_html} -- 2.30.2