summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-06 13:23:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-06 13:23:38 +0200
commit84bfa8beb708d7594d298b438d3fa9c21630da97 (patch)
tree173f86e3bdc612efbbd168245159e14c6d66ed65 /tests/Makefile
parent11d7bbb47a1e8109aef90f62eb63ce0039f23340 (diff)
parenta862c7d3368241e72a465ab944afa38ea62a6640 (diff)
downloadffmpeg-streaming-84bfa8beb708d7594d298b438d3fa9c21630da97.zip
ffmpeg-streaming-84bfa8beb708d7594d298b438d3fa9c21630da97.tar.gz
Merge commit 'a862c7d3368241e72a465ab944afa38ea62a6640'
* commit 'a862c7d3368241e72a465ab944afa38ea62a6640': Integrate lcov/gcov into Libav Conflicts: Makefile common.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 802f350..9dfd343 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -160,6 +160,19 @@ $(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
fate-list:
@printf '%s\n' $(sort $(FATE))
+coverage.info: TAG = LCOV
+coverage.info:
+ $(M)lcov -d $(CURDIR) -b $(SRC_PATH) --capture | sed -e 's#/./#/#g' > $@
+
+lcov: TAG = GENHTML
+lcov: coverage.info
+ $(M)genhtml -o $(CURDIR)/lcov $<
+
+lcov-reset: TAG = LCOV
+lcov-reset:
+ $(M)lcov -d $(CURDIR) --zerocounters
+ $(Q)$(RM) -f coverage.info
+
clean:: testclean
testclean:
@@ -169,4 +182,5 @@ testclean:
-include $(wildcard tests/*.d)
-.PHONY: fate*
+.PHONY: fate* lcov lcov-reset
+.INTERMEDIATE: coverage.info
OpenPOWER on IntegriCloud