configure.ac: reorganize clean up document more remove cruft
[platform/upstream/gstreamer.git] / tests / 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/gstplugin                           \
46         gst/gstsystemclock                      \
47         gst/gststructure                        \
48         gst/gsttag                              \
49         gst/gstutils                            \
50         gst/gstvalue                            \
51         elements/fakesrc                        \
52         elements/identity                       \
53         generic/states                          \
54         pipelines/simple_launch_lines           \
55         pipelines/cleanup                       \
56         states/sinks                            \
57         gst-libs/controller                     \
58         gst-libs/gdp
59
60 TESTS = $(check_PROGRAMS)
61
62 noinst_HEADERS = gst/capslist.h
63
64 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
65 LDADD = $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
66         $(GST_OBJ_LIBS) \
67         $(CHECK_LIBS)
68
69 gst_libs_gdp_SOURCES = \
70         gst-libs/gdp.c \
71         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
72 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
73 # FIXME: time to do this
74 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
75
76 gst_libs_controller_LDADD = \
77         $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
78         $(LDADD)
79
80 # valgrind testing
81 # these just need valgrind fixing, period
82 VALGRIND_TO_FIX =                               \
83         elements/fakesrc                        \
84         gst/gstevent                            \
85         generic/states                          \
86         gst-libs/controller                     \
87         pipelines/simple_launch_lines
88
89 # these need fixing because the threads cause segfaults under valgrind
90 TESTS_THREADED =                                \
91         gst/gstminiobject                       \
92         gst/gstobject
93
94 VALGRIND_TESTS_DISABLE =                                        \
95         $(TESTS_THREADED)                                       \
96         $(VALGRIND_TO_FIX)