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 \
52 pipelines/simple_launch_lines \
58 check_PROGRAMS = $(TESTS)
60 noinst_LTLIBRARIES = libgstcheck.la
62 libgstcheck_la_SOURCES = gstcheck.c
63 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
64 noinst_HEADERS = gstcheck.h gst/capslist.h
66 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
67 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
69 gst_libs_gdp_SOURCES = \
71 $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
72 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
73 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
75 gst_libs_controller_LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la \
76 $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la
80 # these just need fixing, period
88 pipelines/simple_launch_lines
90 # these need fixing because the threads cause segfaults under valgrind
95 VALGRIND_TESTS_DISABLE = \
96 $(top_builddir)/tools/gst-register \
101 # hangs spectacularly on some machines, so let's not do this by default yet
102 check-local-disabled:
105 check-local-disabled:
109 # run any given test by running make test.check
110 %.check: % $(CHECK_REGISTRY)
111 @$(TESTS_ENVIRONMENT) \
115 # valgrind any given test by running make test.valgrind
116 %.valgrind: % $(CHECK_REGISTRY)
117 @$(TESTS_ENVIRONMENT) \
118 libtool --mode=execute \
119 $(VALGRIND_PATH) -q --suppressions=$(srcdir)/gst.supp \
120 --tool=memcheck --leak-check=yes --trace-children=yes \
125 @echo "Valgrinding tests ..."
126 $(TESTS_ENVIRONMENT) $(top_builddir)/tools/gst-register
128 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
130 if test "$$?" -ne 0; then \
131 echo "Valgrind error for test $$t"; \
132 failed=`expr $$failed + 1`; \
135 if test "$$failed" -ne 0; then \
136 echo "$$failed tests had leaks under valgrind"; \