11 ## SUBDIRS_TESTS = tests testsuite
12 ## FIXME: write tests from scratch
25 ## FIXME: write examples from scratch
26 # SUBDIRS_EXAMPLES = examples
32 all-local: gst-element-check-@GST_MAJORMINOR@.m4
34 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
35 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
37 ACLOCAL_AMFLAGS = -I common/m4
39 aclocaldir = $(datadir)/aclocal
40 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
43 include gst libs tools \
51 # These are all the possible subdirs
63 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
68 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
69 configure.ac autogen.sh depcomp \
70 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
74 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
76 include $(top_srcdir)/idiottest.mak
77 include $(top_srcdir)/common/release.mak
78 include $(top_srcdir)/common/po.mak
83 find -name "*.da" -o -name "*.gcov" | xargs rm || true
86 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
90 ## .PHONY so it always rebuilds it
91 .PHONY: coverage-report.txt test-coverage-report.html
94 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
96 for F in $$BBG_FILES ; do \
97 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
98 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
99 B=`basename $$F .bbg` ; \
101 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
102 DA_libs=`echo $$D/.libs/$$B/.da` ; \
103 if test -e $$DA || test -e $$DA_libs; then \
104 C_FILES="$$C_FILES $$C" ; \
108 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
110 test-coverage-report.html:
112 lcov --directory . --zerocounters
114 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
115 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
117 check-coverage: clean-gcov all check coverage-report.txt
118 cat coverage-report.txt
122 echo "Need to reconfigure with --enable-gcov"
124 test-coverage-report.html:
125 echo "Need to reconfigure with --enable-gcov"
128 echo "Need to reconfigure with --enable-gcov"