aboutsummaryrefslogtreecommitdiff
path: root/contrib/coverage.sh
blob: 15318967c2ec80ee66c7ee133bc391abc5f02e7a (plain)
1
2
3
4
5
6
7
8
9
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 --no-external -o doc/coverage/coverage.info
lcov -r doc/coverage/coverage.info **/test_* **/perf_*  -o doc/coverage/rcoverage.info
genhtml -o doc/coverage doc/coverage/rcoverage.info