summaryrefslogtreecommitdiff
path: root/contrib/coverage.sh
blob: 72314ae6758d3903b981b0a01cf25b049275a403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# make sure configure was run with coverage enabled...
lcov --directory . --zerocounters
make check
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