summaryrefslogtreecommitdiff
path: root/contrib/coverage.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-17 09:49:09 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-17 09:49:09 +0200
commit9eac126e528b27551dcc689e0d38fe3965ea8314 (patch)
tree67143f0955c81740f918805106d13f88c02d1046 /contrib/coverage.sh
parentaa89db4d0a92f341eb6239a06c7b69410934132b (diff)
downloadexchange-9eac126e528b27551dcc689e0d38fe3965ea8314.tar.gz
exchange-9eac126e528b27551dcc689e0d38fe3965ea8314.tar.bz2
exchange-9eac126e528b27551dcc689e0d38fe3965ea8314.zip
adding script to generate code coverage report
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 00000000..f9106a2e
--- /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