From: spo Date: Thu, 19 Nov 2015 08:16:38 +0000 (+0300) Subject: Improve lcov scripts X-Git-Tag: V_2.1.0~252^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FDev_1.5.0;p=modules%2Fshaper.git Improve lcov scripts --- 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}