aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/coverage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/coverage.sh')
-rwxr-xr-xcontrib/scripts/coverage.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/scripts/coverage.sh b/contrib/scripts/coverage.sh
new file mode 100755
index 0000000000..dd6a6ab53c
--- /dev/null
+++ b/contrib/scripts/coverage.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# make sure configure was run with coverage enabled...
+lcov --directory . --zerocounters
+make check
+rm `find * -name "test_*.gc??"` `find * -name "perf_*.gc??"`
+for n in `find * -name "*.gc??" | grep libs`
+do
+ cd `dirname $n`
+ mv `basename $n` ..
+ cd -
+done
+lcov --directory . --capture --output-file app.info
+mkdir -p doc/coverage
+genhtml -o doc/coverage app.info