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 gst libs plugins tools \
44 # These are all the possible subdirs
46 gst libs plugins tools \
54 win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
59 gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
60 configure.ac autogen.sh depcomp \
64 CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
66 include $(top_srcdir)/common/release.mak
67 include $(top_srcdir)/common/po.mak
72 find -name "*.da" -o -name "*.gcov" | xargs rm || true
75 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
79 ## .PHONY so it always rebuilds it
80 .PHONY: coverage-report.txt test-coverage-report.html
83 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
85 for F in $$BBG_FILES ; do \
86 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
87 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
88 B=`basename $$F .bbg` ; \
90 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
91 DA_libs=`echo $$D/.libs/$$B/.da` ; \
92 if test -e $$DA || test -e $$DA_libs; then \
93 C_FILES="$$C_FILES $$C" ; \
97 $(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
99 test-coverage-report.html:
101 lcov --directory . --zerocounters
103 lcov --directory . --capture --output-file ./coverage/$(PACKAGE).info
104 genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
106 check-coverage: clean-gcov all check coverage-report.txt
107 cat coverage-report.txt
111 echo "Need to reconfigure with --enable-gcov"
113 test-coverage-report.html:
114 echo "Need to reconfigure with --enable-gcov"
117 echo "Need to reconfigure with --enable-gcov"
122 cd check && make check-valgrind
125 cd check && make torture
128 echo "You need to install the 'check' library"
132 echo "You need to install the 'check' library"
137 for f in gstversion.h gstenumtypes.c gstenumtypes.h; do \
138 cp $(top_builddir)/gst/$$f win32/common; done