summaryrefslogtreecommitdiff
path: root/coverage/lcov.mak
blob: f37559481c49efe6a537afc46c872e76e28b0953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info