Blame common/coverage/lcov.mak
|
Packit Service |
963350 |
## .PHONY so it always rebuilds it
|
|
Packit Service |
963350 |
.PHONY: lcov-reset lcov lcov-run lcov-report lcov-upload lcov-clean
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
# run lcov from scratch, always
|
|
Packit Service |
963350 |
lcov-reset:
|
|
Packit Service |
963350 |
$(MAKE) lcov-run
|
|
Packit Service |
963350 |
$(MAKE) lcov-report
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
# run lcov from scratch if the dir is not there
|
|
Packit Service |
963350 |
lcov:
|
|
Packit Service |
963350 |
$(MAKE) lcov-reset
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
if GST_GCOV_ENABLED
|
|
Packit Service |
963350 |
# reset lcov stats
|
|
Packit Service |
963350 |
lcov-clean:
|
|
Packit Service |
963350 |
@-rm -rf lcov
|
|
Packit Service |
963350 |
lcov --directory . --zerocounters
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
# reset run coverage tests
|
|
Packit Service |
963350 |
lcov-run:
|
|
Packit Service |
963350 |
-$(MAKE) lcov-clean
|
|
Packit Service |
963350 |
-if test -d tests/check; then $(MAKE) -C tests/check inspect; fi
|
|
Packit Service |
963350 |
-$(MAKE) check
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
# generate report based on current coverage data
|
|
Packit Service |
963350 |
lcov-report:
|
|
Packit Service |
963350 |
mkdir lcov
|
|
Packit Service |
963350 |
lcov --compat-libtool --directory . --capture --output-file lcov/lcov.info
|
|
Packit Service |
963350 |
lcov --list-full-path -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d\| -f1 > lcov/remove
|
|
Packit Service |
963350 |
lcov --list-full-path -l lcov/lcov.info | grep "tests/check/" | cut -d\| -f1 >> lcov/remove
|
|
Packit Service |
963350 |
lcov --list-full-path -l lcov/lcov.info | grep "docs/plugins/" | cut -d\| -f1 >> lcov/remove
|
|
Packit Service |
963350 |
lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
|
|
Packit Service |
963350 |
rm lcov/remove
|
|
Packit Service |
963350 |
mv lcov/lcov.cleaned.info lcov/lcov.info
|
|
Packit Service |
963350 |
genhtml -t "$(PACKAGE_STRING)" -o lcov --num-spaces 2 lcov/lcov.info
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
lcov-upload: lcov
|
|
Packit Service |
963350 |
rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
else
|
|
Packit Service |
963350 |
lcov-run:
|
|
Packit Service |
963350 |
echo "Need to reconfigure with --enable-gcov"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
lcov-report:
|
|
Packit Service |
963350 |
echo "Need to reconfigure with --enable-gcov"
|
|
Packit Service |
963350 |
endif
|
|
Packit Service |
963350 |
|