diff options
Diffstat (limited to 'contrib/coverage.sh')
-rwxr-xr-x | contrib/coverage.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/coverage.sh b/contrib/coverage.sh new file mode 100755 index 0000000..b53a382 --- /dev/null +++ b/contrib/coverage.sh @@ -0,0 +1,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 |