From 08e28401081a8448c033772d5521bf085a877284 Mon Sep 17 00:00:00 2001 From: spo Date: Mon, 31 Aug 2015 16:09:14 +0300 Subject: [PATCH] Improve LCOV scripts --- lcov-reset.sh | 6 ++++++ lcov-run.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 lcov-reset.sh diff --git a/lcov-reset.sh b/lcov-reset.sh new file mode 100755 index 000000000..63b3964f7 --- /dev/null +++ b/lcov-reset.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +source env_lcov.sh + +echo "Reset coverage data..." +lcov --zerocounters --directory $(cd ../; pwd) diff --git a/lcov-run.sh b/lcov-run.sh index 17f390068..01a734b44 100755 --- a/lcov-run.sh +++ b/lcov-run.sh @@ -3,7 +3,7 @@ source env_lcov.sh echo "Collect coverage data..." -lcov --capture --directory ../ --output-file coverage.info +lcov --capture --directory $(cd ../; pwd) --output-file coverage.info --no-external echo "Generate HTML for coverage data..." genhtml coverage.info --output-directory lcov_html -- 2.39.2