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 \
56 check_PROGRAMS = $(TESTS)
58 noinst_LTLIBRARIES = libgstcheck.la
60 libgstcheck_la_SOURCES = gstcheck.c
61 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
62 noinst_HEADERS = gstcheck.h gst/capslist.h
64 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
65 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
67 gst_libs_gdp_SOURCES = \
69 $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
70 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
71 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
75 # these just need fixing, period
83 pipelines/simple_launch_lines
85 # these need fixing because the threads cause segfaults under valgrind
90 VALGRIND_TESTS_DISABLE = \
91 $(top_builddir)/tools/gst-register \
96 # hangs spectacularly on some machines, so let's not do this by default yet
100 check-local-disabled:
104 # valgrind any given test by running make test.valgrind
105 %.valgrind: % $(CHECK_REGISTRY)
106 @$(TESTS_ENVIRONMENT) \
107 libtool --mode=execute \
108 $(VALGRIND_PATH) -q --suppressions=$(srcdir)/gst.supp \
109 --tool=memcheck --leak-check=yes --trace-children=yes \
114 @echo "Valgrinding tests ..."
115 $(TESTS_ENVIRONMENT) $(top_builddir)/tools/gst-register
117 for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
119 if test "$$?" -ne 0; then \
120 echo "Valgrind error for test $$t"; \
121 failed=`expr $$failed + 1`; \
124 if test "$$failed" -ne 0; then \
125 echo "$$failed tests had leaks under valgrind"; \