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 -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
26 lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove
27 lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
29 mv lcov/lcov.cleaned.info lcov/lcov.info
30 genhtml -t "$(PACKAGE_STRING)" -o lcov --num-spaces 2 lcov/lcov.info
33 rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)
37 echo "Need to reconfigure with --enable-gcov"
40 echo "Need to reconfigure with --enable-gcov"