2
# ccache breaks -fprofile-arcs
3
export CCACHE_DISABLE=1
9
find -name "*.gcno" -o -name "*.gcda" -exec rm '{}' ';'
13
$(MAKE) CFLAGS="-O0 -fprofile-arcs -ftest-coverage" LDFLAGS="-lgcov" check
16
# hack: move gcov file from libraries back to source directory
17
for dir in `find -name .libs`; do \
18
(cd `dirname $$dir`; mv .libs/*.gc?? . || true) 2>/dev/null; \
22
lcov -d . -c >$(OUT)/lcov.info 2>/dev/null
23
lcov -l $(OUT)/lcov.info 2>/dev/null |\
24
egrep '(^/usr|/test.*\.c)' |\
25
cut -d: -f1 >$(OUT)/lcov.remove
26
lcov -r $(OUT)/lcov.info `cat $(OUT)/lcov.remove` 2>/dev/null >$(OUT)/lcov.info.clean
27
genhtml -o lcov $(OUT)/lcov.info.clean