tests/check/Makefile.am: gst-inspect every element; this makes sure that we also...
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 2 Jul 2006 00:33:51 +0000 (00:33 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 2 Jul 2006 00:33:51 +0000 (00:33 +0000)
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%

ChangeLog
tests/check/Makefile.am

index c8ed0e1..f1a45c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 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>
+
        * configure.ac:
          set CFLAGS and friends to -O0 if gcov is being used
          add GCOV LIBS
index 3b979ec..2b9974b 100644 (file)
@@ -171,8 +171,14 @@ debug:
 
 .PHONY: coverage
 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:
        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 coverage-report
 else