Commit 0147cc80 authored by Alexander Schrab's avatar Alexander Schrab Committed by Tim-Philipp Müller

check.mak: enable lcov on individual tests

Adds support for make elements/queue.lcov

https://bugzilla.gnome.org/show_bug.cgi?id=694442
parent 2de221ce
......@@ -86,6 +86,31 @@ LOOPS = 10
$(LIBTOOL) --mode=execute \
gdb $*
%.lcov-reset:
$(MAKE) $*.lcov-run
$(MAKE) $*.lcov-report
%.lcov: %
$(MAKE) $*.lcov-reset
if GST_GCOV_ENABLED
%.lcov-clean:
$(MAKE) -C $(top_builddir) lcov-clean
%.lcov-run:
$(MAKE) $*.lcov-clean
$(MAKE) $*.check
%.lcov-report:
$(MAKE) -C $(top_builddir) lcov-report
else
%.lcov-run:
echo "Need to reconfigure with --enable-gcov"
%.lcov-report:
echo "Need to reconfigure with --enable-gcov"
endif
# torture tests
torture: $(TESTS)
-rm test-registry.xml
......
## .PHONY so it always rebuilds it
.PHONY: lcov-reset lcov lcov-run lcov-report lcov-upload
.PHONY: lcov-reset lcov lcov-run lcov-report lcov-upload lcov-clean
# run lcov from scratch, always
lcov-reset:
......@@ -11,10 +11,14 @@ lcov:
$(MAKE) lcov-reset
if GST_GCOV_ENABLED
# reset run coverage tests
lcov-run:
# reset lcov stats
lcov-clean:
@-rm -rf lcov
lcov --directory . --zerocounters
# reset run coverage tests
lcov-run:
-$(MAKE) lcov-clean
-if test -d tests/check; then $(MAKE) -C tests/check inspect; fi
-$(MAKE) check
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment