From c1bb084c1323da4bb382a84d899c0bf7114e4cc5 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 2 Jul 2006 00:33:51 +0000 Subject: [PATCH] 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% --- ChangeLog | 9 +++++++++ tests/check/Makefile.am | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index c8ed0e16bd..f1a45c1155 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-07-02 Thomas Vander Stichele + + * 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 * configure.ac: diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 3b979ecf9b..2b9974b630 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -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