aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gen-test-report.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gen-test-report.sh')
-rwxr-xr-xtools/gen-test-report.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gen-test-report.sh b/tools/gen-test-report.sh
new file mode 100755
index 0000000..74bbaf5
--- /dev/null
+++ b/tools/gen-test-report.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+rm -Rf ./coverage
+mkdir -p ./coverage
+mkdir -p ./coverage/report
+
+lcov -c --rc lcov_branch_coverage=1 -d . -o ./coverage/testcoverage.info
+genhtml --rc lcov_branch_coverage=1 -o ./coverage/report -f ./coverage/testcoverage.info --num-spaces 4