From: spo Date: Mon, 28 Dec 2015 09:28:04 +0000 (+0300) Subject: Improve lcov scripts for Linux X-Git-Tag: V_2.1.0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=544816659bc2cc69c06a755aa3f8f9e94f94454e;p=modules%2Fshaper.git Improve lcov scripts for Linux --- diff --git a/lcov-reset.sh b/lcov-reset.sh index 542419c7e..bb4847ada 100755 --- a/lcov-reset.sh +++ b/lcov-reset.sh @@ -3,5 +3,8 @@ source env.sh source ${TOOLS_DIR}/env_linux.sh +export GCOV_DIR=${GCOV_DIR:-${BUILD_DIR}} + echo "Reset coverage data..." -lcov --zerocounters --directory $(cd ../; pwd) +lcov --zerocounters --directory ${GCOV_DIR} + diff --git a/lcov-run.sh b/lcov-run.sh index ef450e0a5..b1a0c5f82 100755 --- a/lcov-run.sh +++ b/lcov-run.sh @@ -3,8 +3,10 @@ source env.sh source ${TOOLS_DIR}/env_linux.sh +export GCOV_DIR=${GCOV_DIR:-${BUILD_DIR}} + echo "Collect coverage data..." -lcov --capture --directory ${BUILD_DIR} --output-file coverage.info +lcov --capture --directory ${GCOV_DIR} --output-file coverage.info echo "Generate HTML for coverage data..." genhtml coverage.info --output-directory ${1:-lcov_html}