tests/check/Makefile.am: gst-inspect every element; this makes sure that we also get coverage on element's get/set fu...

Original commit message from CVS:
* tests/check/Makefile.am:
gst-inspect every element; this makes sure that we also get
coverage on element's get/set functions
* tests/check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
Push coverage from 59.04% to 70.00%
This commit is contained in:
Thomas Vander Stichele 2006-07-02 00:33:51 +00:00
parent 3c3bbc87d4
commit c1bb084c13
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/Makefile.am:
gst-inspect every element; this makes sure that we also get
coverage on element's get/set functions
* tests/check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
Push coverage from 59.04% to 70.00%
2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org> 2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac: * configure.ac:

View file

@ -171,8 +171,14 @@ debug:
.PHONY: coverage .PHONY: coverage
if GST_GCOV_ENABLED if GST_GCOV_ENABLED
# we rebuild a registry and do gst-inspect so that all the get/set codepaths
# are also covered
GST_INSPECT = $(top_builddir)/tools/gst-inspect-$(GST_MAJORMINOR)
coverage: coverage:
for file in `find $(top_builddir) -name '*.gcda'`; do rm $$file; done for file in `find $(top_builddir) -name '*.gcda'`; do rm $$file; done
-rm $(CHECK_REGISTRY)
echo "Inspecting all elements"
for e in `$(GST_INSPECT) | head -n -2 | cut -d: -f2`; do $(GST_INSPECT) $$e > /dev/null 2>&1; done
make check make check
make coverage-report make coverage-report
else else