1 CHECK_REGISTRY=$(top_builddir)/check/test-registry.xml
4 GST_PLUGIN_PATH_ONLY=yes \
5 GST_PLUGIN_PATH=$(top_builddir)/gst \
6 GST_REGISTRY=$(CHECK_REGISTRY)
8 plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
10 # rebuild gst-register-@GST_MAJORMINOR@ if needed
11 $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@$(EXEEXT):
12 cd $(top_builddir)/tools && make
14 # override to _not_ install the test plugins
15 install-pluginLTLIBRARIES:
17 # ths core dumps of some machines have PIDs appended
18 CLEANFILES = core.* test-registry.xml
23 for i in `find . -name ".libs" -type d`; do \
28 $(TESTS_ENVIRONMENT) \
29 $(top_builddir)/tools/gst-register
31 # FIXME: it'd be nicer to run the versioned register, but in that case
32 # "make dist" complains about not finding gst-register-0.9.c
33 TESTS = $(top_builddir)/tools/gst-register \
51 pipelines/simple_launch_lines \
57 check_PROGRAMS = $(TESTS)
59 noinst_LTLIBRARIES = libgstcheck.la
61 libgstcheck_la_SOURCES = gstcheck.c
62 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
63 noinst_HEADERS = gstcheck.h gst/capslist.h
65 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
66 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
68 gst_libs_gdp_SOURCES = \
70 $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
71 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
72 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
74 gst_libs_controller_LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la \
75 $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la
79 # these just need fixing, period
87 pipelines/simple_launch_lines
89 # these need fixing because the threads cause segfaults under valgrind
94 VALGRIND_TESTS_DISABLE = \
95 $(top_builddir)/tools/gst-register \
100 # hangs spectacularly on some machines, so let's not do this by default yet
101 check-local-disabled:
104 check-local-disabled:
108 # run any given test by running make test.check
109 %.check: % $(CHECK_REGISTRY)
110 @$(TESTS_ENVIRONMENT) \
114 # valgrind any given test by running make test.valgrind
115 %.valgrind: % $(CHECK_REGISTRY)
116 @$(TESTS_ENVIRONMENT) \
117 libtool --mode=execute \
118 $(VALGRIND_PATH) -q --suppressions=$(srcdir)/gst.supp \
119 --tool=memcheck --leak-check=yes --trace-children=yes \
124 @echo "Valgrinding tests ..."
125 $(TESTS_ENVIRONMENT) $(top_builddir)/tools/gst-register
127 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
129 if test "$$?" -ne 0; then \
130 echo "Valgrind error for test $$t"; \
131 failed=`expr $$failed + 1`; \
134 if test "$$failed" -ne 0; then \
135 echo "$$failed tests had leaks under valgrind"; \