1 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-docbook
4 ## SUBDIRS_TESTS = tests testsuite
5 ## FIXME: write tests from scratch
18 ## FIXME: write examples from scratch
19 # SUBDIRS_EXAMPLES = examples
25 all-local: gst-element-check-@GST_MAJORMINOR@.m4
27 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
28 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
30 ACLOCAL_AMFLAGS = -I common/m4
32 aclocaldir = $(datadir)/aclocal
33 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
36 include gst libs tools \
44 # These are all the possible subdirs
56 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
61 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
62 configure.ac autogen.sh depcomp \
63 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
67 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
69 include $(top_srcdir)/idiottest.mak
70 include $(top_srcdir)/common/release.mak
71 include $(top_srcdir)/common/po.mak
76 find -name "*.da" -o -name "*.gcov" | xargs rm || true
79 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
83 ## .PHONY so it always rebuilds it
84 .PHONY: coverage-report.txt test-coverage-report.html
87 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
89 for F in $$BBG_FILES ; do \
90 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
91 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
92 B=`basename $$F .bbg` ; \
94 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
95 DA_libs=`echo $$D/.libs/$$B/.da` ; \
96 if test -e $$DA || test -e $$DA_libs; then \
97 C_FILES="$$C_FILES $$C" ; \
101 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
103 test-coverage-report.html:
105 lcov --directory . --zerocounters
107 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
108 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
110 check-coverage: clean-gcov all check coverage-report.txt
111 cat coverage-report.txt
115 echo "Need to reconfigure with --enable-gcov"
117 test-coverage-report.html:
118 echo "Need to reconfigure with --enable-gcov"
121 echo "Need to reconfigure with --enable-gcov"
125 cd check && make check-valgrind