aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-03-11 18:29:38 +0100
committerToni Uhlig <matzeton@googlemail.com>2022-03-11 18:29:38 +0100
commitf884a538ce79f70d44bdaaa9cb5ad2801dc36196 (patch)
tree95711638fbd34265e65ddf1d17e7c40398a13996 /scripts
parent41757ecf1cbcbcd890c1ab7e08995aaffe031752 (diff)
Code coverage generation using LCOV.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/code-coverage.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/code-coverage.sh b/scripts/code-coverage.sh
new file mode 100755
index 000000000..37038bd2a
--- /dev/null
+++ b/scripts/code-coverage.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd "$(dirname "${0}")/.."
+mkdir -p coverage_report
+lcov --directory . --capture --output-file lcov.info
+genhtml -o coverage_report lcov.info