added support for html unit test coverage reports

Original commit message from CVS:
added support for html unit test coverage reports
This commit is contained in:
Stefan Kost 2005-06-03 18:26:59 +00:00
parent c9f30f98b7
commit 8c7cf901bd
3 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-06-03 Stefan Kost <ensonic@users.sf.net>
* Makefile.am: added support for html unit test coverage reports
2005-06-03 Jan Schmidt <thaytan@mad.scientist.com>
* gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):

View file

@ -88,7 +88,7 @@ clean-bbg:
GCOV_DIRS=gst libs
## .PHONY so it always rebuilds it
.PHONY: coverage-report.txt
.PHONY: coverage-report.txt test-coverage-report.html
coverage-report.txt:
BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
@ -107,12 +107,26 @@ coverage-report.txt:
echo $$C_FILES ; \
$(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
test-coverage-report.html:
mkdir -p ./coverage
lcov --directory . --zerocounters
$(MAKE) check
## workaround for lcov not liking libtool
for file in `find . -name "*.da" | grep "\.libs" ` ;do \
mv $$file `echo $$file | sed -e 's/\/\.libs//'`; \
done
lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
check-coverage: clean-gcov all check coverage-report.txt
cat coverage-report.txt
else
coverage-report.txt:
echo "Need to reconfigure with --enable-gcov"
test-coverage-report.html:
echo "Need to reconfigure with --enable-gcov"
check-coverage:
echo "Need to reconfigure with --enable-gcov"

2
common

@ -1 +1 @@
Subproject commit 67b7e6c0db99415e0440d0c576495641b53e976a
Subproject commit 495d6e30b3e513aebbc98467707c609c49ea654d