1 ## .PHONY so it always rebuilds it
2 .PHONY: lcov-reset lcov lcov-run lcov-report lcov-upload
4 # run lcov from scratch, always
9 # run lcov from scratch if the dir is not there
14 # reset run coverage tests
17 lcov --directory . --zerocounters
18 -if test -d tests/check; then $(MAKE) -C tests/check inspect; fi
21 # generate report based on current coverage data
24 lcov --compat-libtool --directory . --capture --output-file lcov/lcov.info
25 lcov --list-full-path -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d\| -f1 > lcov/remove
26 lcov --list-full-path -l lcov/lcov.info | grep "tests/check/" | cut -d\| -f1 >> lcov/remove
27 lcov --list-full-path -l lcov/lcov.info | grep "docs/plugins/" | cut -d\| -f1 >> lcov/remove
28 lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
30 mv lcov/lcov.cleaned.info lcov/lcov.info
31 genhtml -t "$(PACKAGE_STRING)" -o lcov --num-spaces 2 lcov/lcov.info
34 rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)
38 echo "Need to reconfigure with --enable-gcov"
41 echo "Need to reconfigure with --enable-gcov"