X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=lcov-run.sh;h=b1a0c5f82d9e7f66c7a21aaadf273e5ccda858ba;hb=a80bad89713c72cc7d663eea4b8dee0c419bbb37;hp=01a734b44d8ddeccb9b4c2bf4c2111f4f106788e;hpb=08e28401081a8448c033772d5521bf085a877284;p=modules%2Fshaper.git diff --git a/lcov-run.sh b/lcov-run.sh index 01a734b44..b1a0c5f82 100755 --- a/lcov-run.sh +++ b/lcov-run.sh @@ -1,10 +1,13 @@ #!/bin/bash -source env_lcov.sh +source env.sh +source ${TOOLS_DIR}/env_linux.sh + +export GCOV_DIR=${GCOV_DIR:-${BUILD_DIR}} echo "Collect coverage data..." -lcov --capture --directory $(cd ../; pwd) --output-file coverage.info --no-external +lcov --capture --directory ${GCOV_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}