#!/bin/bash
-source env_lcov.sh
+source env.sh
+source ${TOOLS_DIR}/env_linux.sh
echo "Reset coverage data..."
lcov --zerocounters --directory $(cd ../; pwd)
#!/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}