aboutsummaryrefslogtreecommitdiffstats
path: root/test_coverage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test_coverage.sh')
-rwxr-xr-xtest_coverage.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test_coverage.sh b/test_coverage.sh
new file mode 100755
index 0000000..411ccfd
--- /dev/null
+++ b/test_coverage.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+lcov -d ./src -z
+./test.sh
+lcov -d ./build -d ./src -b . -c > coverage.lcov
+mkdir -p ./coverage
+genhtml -o coverage coverage.lcov
+echo "Report written to:"
+echo "coverage/index.html"
+