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