diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/lcov.mak | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coverage/lcov.mak b/coverage/lcov.mak new file mode 100644 index 0000000..0d23b19 --- /dev/null +++ b/coverage/lcov.mak @@ -0,0 +1,16 @@ +lcov: + find . -name "*.gcda" -exec rm {} \; + make -C tests/check inspect + make -C tests/check check + make lcov-report + +lcov-report: + @-rm -rf lcov + mkdir lcov + lcov --directory . --capture --output-file lcov/lcov.info + lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove + lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove + lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info + rm lcov/remove + mv lcov/lcov.cleaned.info lcov/lcov.info + genhtml -o lcov lcov/lcov.info |