check/: Add test
[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_PATH_ONLY=yes                                \
13         GST_PLUGIN_PATH=$(top_builddir)/gst/elements/.libs:$(top_builddir)/gst/indexers/.libs
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 check_PROGRAMS =                                \
28         gst/gst                                 \
29         gst/gstbin                              \
30         gst/gstbuffer                           \
31         gst/gstbus                              \
32         gst/gstcaps                             \
33         gst/gstelement                          \
34         gst/gstevent                            \
35         gst/gstghostpad                         \
36         gst/gstiterator                         \
37         gst/gstmessage                          \
38         gst/gstminiobject                       \
39         gst/gstobject                           \
40         gst/gstpad                              \
41         gst/gstpipeline                         \
42         gst/gstplugin                           \
43         gst/gstsystemclock                      \
44         gst/gststructure                        \
45         gst/gsttag                              \
46         gst/gstvalue                            \
47         elements/fakesrc                        \
48         elements/identity                       \
49         generic/states                          \
50         pipelines/simple_launch_lines           \
51         pipelines/cleanup                       \
52         states/sinks                            \
53         gst-libs/controller                     \
54         gst-libs/gdp
55
56 TESTS = $(check_PROGRAMS)
57
58 noinst_HEADERS = gst/capslist.h
59
60 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
61 LDADD = $(GST_OBJ_LIBS) \
62         $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
63         $(CHECK_LIBS)
64
65 gst_libs_gdp_SOURCES = \
66         gst-libs/gdp.c \
67         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
68 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
69 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
70
71 gst_libs_controller_LDADD = $(GST_OBJ_LIBS) \
72         $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
73         $(CHECK_LIBS) \
74         $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la 
75
76 # valgrind testing
77 # these just need valgrind fixing, period
78 TESTS_TO_FIX =                                  \
79         gst-libs/controller                     \
80         pipelines/cleanup                       \
81         pipelines/simple_launch_lines
82
83 # these need fixing because the threads cause segfaults under valgrind
84 TESTS_THREADED =                                \
85         gst/gstminiobject                       \
86         gst/gstobject
87
88 VALGRIND_TESTS_DISABLE =                                        \
89         $(TESTS_THREADED)                                       \
90         $(TESTS_TO_FIX)