check/Makefile.am: re-enable tests now that leaks are plugged
[platform/upstream/gstreamer.git] / check / Makefile.am
1 include $(top_srcdir)/common/check.mak
2
3 CHECK_REGISTRY = $(top_builddir)/check/test-registry.xml
4
5 GST_TOOLS_DIR = $(top_builddir)/tools
6
7 REGISTRY_ENVIRONMENT = \
8         GST_REGISTRY=$(CHECK_REGISTRY)
9
10 TESTS_ENVIRONMENT = \
11         $(REGISTRY_ENVIRONMENT)                                 \
12         GST_PLUGIN_SYSTEM_PATH=                                 \
13         GST_PLUGIN_PATH=$(top_builddir)/gst/elements:$(top_builddir)/gst/indexers
14
15 plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
16
17 # override to _not_ install the test plugins
18 install-pluginLTLIBRARIES:
19
20 # ths core dumps of some machines have PIDs appended
21 CLEANFILES = core.* test-registry.xml
22
23 SUPPRESSIONS = $(top_srcdir)/common/gst.supp
24
25 clean-local: clean-local-check
26
27 # checks to fix
28 #       gst/gstplugin
29
30 check_PROGRAMS =                                \
31         gst/gst                                 \
32         gst/gstbin                              \
33         gst/gstbuffer                           \
34         gst/gstbus                              \
35         gst/gstcaps                             \
36         gst/gstelement                          \
37         gst/gstevent                            \
38         gst/gstghostpad                         \
39         gst/gstiterator                         \
40         gst/gstmessage                          \
41         gst/gstminiobject                       \
42         gst/gstobject                           \
43         gst/gstpad                              \
44         gst/gstpipeline                         \
45         gst/gstsystemclock                      \
46         gst/gststructure                        \
47         gst/gsttag                              \
48         gst/gstvalue                            \
49         elements/fakesrc                        \
50         elements/identity                       \
51         generic/states                          \
52         pipelines/simple_launch_lines           \
53         pipelines/cleanup                       \
54         states/sinks                            \
55         gst-libs/controller                     \
56         gst-libs/gdp
57
58 TESTS = $(check_PROGRAMS)
59
60 noinst_HEADERS = gst/capslist.h
61
62 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
63 LDADD = $(GST_OBJ_LIBS) \
64         $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
65         $(CHECK_LIBS)
66
67 gst_libs_gdp_SOURCES = \
68         gst-libs/gdp.c \
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
72
73 gst_libs_controller_LDADD = $(GST_OBJ_LIBS) \
74         $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
75         $(CHECK_LIBS) \
76         $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la 
77
78 # valgrind testing
79 # these just need valgrind fixing, period
80 VALGRIND_TO_FIX =                               \
81         elements/fakesrc                        \
82         gst/gstevent                            \
83         generic/states                          \
84         gst-libs/controller                     \
85         pipelines/cleanup                       \
86         pipelines/simple_launch_lines
87
88 # these need fixing because the threads cause segfaults under valgrind
89 TESTS_THREADED =                                \
90         gst/gstminiobject                       \
91         gst/gstobject
92
93 VALGRIND_TESTS_DISABLE =                                        \
94         $(TESTS_THREADED)                                       \
95         $(VALGRIND_TO_FIX)