aboutsummaryrefslogtreecommitdiff
path: root/contrib/coverage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/coverage.sh')
-rwxr-xr-xcontrib/coverage.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/coverage.sh b/contrib/coverage.sh
new file mode 100755
index 000000000..f9106a2e1
--- /dev/null
+++ b/contrib/coverage.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Run from 'taler-mint/' top-level directory to generate
+# code coverage data.
+TOP=`pwd`
+mkdir -p doc/coverage/
+lcov -d $TOP -z
+make check
+lcov -d $TOP -c -o doc/coverage/coverage.info
+cd doc/coverage/
+genhtml coverage.info