check/: Use a cmdline define to specify the location of a file to use for testing...
[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/gstsegment                          \
47         gst/gstsystemclock                      \
48         gst/gststructure                        \
49         gst/gsttag                              \
50         gst/gstutils                            \
51         gst/gstvalue                            \
52         elements/fakesrc                        \
53         elements/identity                       \
54         elements/fdsrc                          \
55         generic/states                          \
56         pipelines/simple_launch_lines           \
57         pipelines/stress                        \
58         pipelines/cleanup                       \
59         states/sinks                            \
60         gst-libs/controller                     \
61         gst-libs/gdp                            \
62         net/gstnetclientclock                   \
63         net/gstnettimeprovider
64
65 TESTS = $(check_PROGRAMS)
66
67 noinst_HEADERS = gst/capslist.h
68
69 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
70 LDADD = $(top_builddir)/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
71         $(GST_OBJ_LIBS) \
72         $(CHECK_LIBS)
73
74 gst_libs_gdp_SOURCES = \
75         gst-libs/gdp.c \
76         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
77 gst_libs_gdp_CFLAGS = $(AM_CFLAGS)
78
79 elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) -DTESTFILE=\"$(top_builddir)/configure.ac\"
80
81 gst_libs_controller_LDADD = \
82         $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
83         $(LDADD)
84
85 net_gstnetclientclock_LDADD = \
86         $(top_builddir)/gst/net/libgstnet-tempname-@GST_MAJORMINOR@.la \
87         $(LDADD)
88 net_gstnettimeprovider_LDADD = \
89         $(top_builddir)/gst/net/libgstnet-tempname-@GST_MAJORMINOR@.la \
90         $(LDADD)
91
92 # valgrind testing
93 # these just need valgrind fixing, period
94 VALGRIND_TO_FIX =
95
96 VALGRIND_IGNORE = \
97         pipelines/stress
98
99 # these need fixing because the threads cause segfaults under valgrind
100 TESTS_THREADED =                                \
101         gst/gstminiobject                       \
102         gst/gstobject
103
104 VALGRIND_TESTS_DISABLE =                                        \
105         $(TESTS_THREADED)                                       \
106         $(VALGRIND_IGNORE)                                      \
107         $(VALGRIND_TO_FIX)