summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2006-07-02 21:45:26 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2006-07-02 21:45:26 +0000
commitf411695f3e009b4d348a8fa2dd32c0171f1ff683 (patch)
tree7571868c433b4e197ca8985a9657cb1752c56813
parent9eb7943282c38c815cfbac34cff4062a94e72e62 (diff)
add an inspect target that inspects every element feature, so we can have that added for coverage
Original commit message from CVS: * Makefile.am: * check.mak: add an inspect target that inspects every element feature, so we can have that added for coverage * coverage/lcov.mak: add support for lcov
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.am1
-rw-r--r--check.mak11
-rw-r--r--coverage/lcov.mak16
4 files changed, 37 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fb23361..ee70f13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
+ * Makefile.am:
+ * check.mak:
+ add an inspect target that inspects every element feature,
+ so we can have that added for coverage
+ * coverage/lcov.mak:
+ add support for lcov
+
+2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
+
* m4/gst-args.m4:
when building with gcov, reset CFLAGS and friends to O0
diff --git a/Makefile.am b/Makefile.am
index fd25770..ca8c029 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,6 +9,7 @@ EXTRA_DIST = \
gtk-doc-plugins.mak \
plugins.xsl gstdoc-scangobj \
gst.supp check.mak \
+ coverage/lcov.mak \
coverage/coverage-report.pl \
coverage/coverage-report.xsl \
coverage/coverage-report-entry.pl
diff --git a/check.mak b/check.mak
index 9b29e06..254b20b 100644
--- a/check.mak
+++ b/check.mak
@@ -121,6 +121,15 @@ valgrind: $(TESTS)
false; \
fi
+# inspect every plugin feature
+GST_INSPECT = $(GST_TOOLS_DIR)/gst-inspect-$(GST_MAJORMINOR)
+inspect:
+ @echo "Inspecting features ..."
+ for e in `$(TESTS_ENVIRONMENT) $(GST_INSPECT) | head -n -2 \
+ | cut -d: -f2`; \
+ do echo Inspecting $$e; \
+ $(GST_INSPECT) $$e > /dev/null 2>&1; done
+
help:
@echo "make check -- run all checks"
@echo "make torture -- run all checks $(LOOPS) times"
@@ -135,3 +144,5 @@ help:
@echo "make (dir)/(test).valgrind-forever -- valgrind the given test forever"
@echo "make (dir)/(test).valgrind.gen-suppressions -- generate suppressions"
@echo " and save to suppressions.log"
+ @echo "make inspect -- inspect all plugin features"
+
diff --git a/coverage/lcov.mak b/coverage/lcov.mak
new file mode 100644
index 0000000..0d23b19
--- /dev/null
+++ b/coverage/lcov.mak
@@ -0,0 +1,16 @@
+lcov:
+ find . -name "*.gcda" -exec rm {} \;
+ make -C tests/check inspect
+ make -C tests/check check
+ make lcov-report
+
+lcov-report:
+ @-rm -rf lcov
+ mkdir lcov
+ lcov --directory . --capture --output-file lcov/lcov.info
+ lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
+ lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove
+ lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
+ rm lcov/remove
+ mv lcov/lcov.cleaned.info lcov/lcov.info
+ genhtml -o lcov lcov/lcov.info