]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve lcov scripts for Linux
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 28 Dec 2015 09:28:04 +0000 (12:28 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 28 Dec 2015 09:28:24 +0000 (12:28 +0300)
lcov-reset.sh
lcov-run.sh

index 542419c7e6e9ab9869bf25e7a3948a2ae31bce09..bb4847ada2477c76ad57caaaa93c61b01650c264 100755 (executable)
@@ -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}
+
index ef450e0a5cb9f8b9e2c9bd08af003a5982b96eae..b1a0c5f82d9e7f66c7a21aaadf273e5ccda858ba 100755 (executable)
@@ -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}