5 ## SUBDIRS_TESTS = tests testsuite
6 ## FIXME: write tests from scratch
19 ## FIXME: write examples from scratch
20 # SUBDIRS_EXAMPLES = examples
26 all-local: gst-element-check-@GST_MAJORMINOR@.m4
28 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
29 cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
31 ACLOCAL_AMFLAGS = -I common/m4
33 aclocaldir = $(datadir)/aclocal
34 aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
37 include gst libs tools \
45 # These are all the possible subdirs
57 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
62 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
63 configure.ac autogen.sh depcomp \
64 REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
68 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
70 include $(top_srcdir)/idiottest.mak
71 include $(top_srcdir)/common/release.mak
72 include $(top_srcdir)/common/po.mak
77 find -name "*.da" -o -name "*.gcov" | xargs rm || true
80 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
84 ## .PHONY so it always rebuilds it
85 .PHONY: coverage-report.txt test-coverage-report.html
88 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
90 for F in $$BBG_FILES ; do \
91 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
92 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
93 B=`basename $$F .bbg` ; \
95 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
96 DA_libs=`echo $$D/.libs/$$B/.da` ; \
97 if test -e $$DA || test -e $$DA_libs; then \
98 C_FILES="$$C_FILES $$C" ; \
102 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
104 test-coverage-report.html:
106 lcov --directory . --zerocounters
108 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
109 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
111 check-coverage: clean-gcov all check coverage-report.txt
112 cat coverage-report.txt
116 echo "Need to reconfigure with --enable-gcov"
118 test-coverage-report.html:
119 echo "Need to reconfigure with --enable-gcov"
122 echo "Need to reconfigure with --enable-gcov"