tests/check/Makefile.am: tests/check/pipelines/streamheader.c (n_tags, tag_event_prob...
[platform/upstream/gstreamer.git] / tests / check / Makefile.am
1 include $(top_srcdir)/common/check.mak
2
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.xml
4
5 REGISTRY_ENVIRONMENT = \
6         GST_REGISTRY=$(CHECK_REGISTRY)
7
8 TESTS_ENVIRONMENT = \
9         CK_DEFAULT_TIMEOUT=120                                  \
10         STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)"        \
11         $(REGISTRY_ENVIRONMENT)                                 \
12         GST_PLUGIN_SYSTEM_PATH=                                 \
13         GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(GST_PLUGINS_DIR)
14
15 # ths core dumps of some machines have PIDs appended
16 CLEANFILES = core.* test-registry.xml
17
18 clean-local: clean-local-check
19
20 $(CHECK_REGISTRY):
21         $(TESTS_ENVIRONMENT)
22
23 # elements to ignore for the state tests
24 STATE_IGNORE_ELEMENTS = cdio cdparanoiasrc libvisual_
25
26 TESTS = $(check_PROGRAMS)
27
28 if USE_ALSA
29 check_alsa = elements/alsa
30 else
31 check_alsa =
32 endif
33
34 if USE_OGG
35 check_ogg = pipelines/oggmux
36 else
37 check_ogg = 
38 endif
39
40 if USE_PANGO
41 check_pango = elements/textoverlay
42 else
43 check_pango = 
44 endif
45
46 if USE_VORBIS
47 check_vorbis = elements/vorbisdec pipelines/vorbisenc pipelines/vorbisdec \
48         elements/vorbistag
49 else
50 check_vorbis =
51 endif
52
53 if USE_THEORA
54 check_theora = pipelines/theoraenc
55 else
56 check_theora =
57 endif
58
59 check_PROGRAMS = \
60         $(check_alsa) \
61         $(check_ogg) \
62         $(check_pango) \
63         $(check_vorbis) \
64         $(check_theora) \
65         elements/adder  \
66         elements/audioconvert \
67         elements/audiorate \
68         elements/audioresample \
69         elements/audiotestsrc \
70         elements/decodebin \
71         elements/ffmpegcolorspace \
72         elements/gdpdepay \
73         elements/gdppay \
74         elements/multifdsink \
75         elements/playbin \
76         elements/subparse \
77         elements/videorate \
78         elements/videotestsrc \
79         elements/volume \
80         generic/clock-selection \
81         generic/states \
82         gst/typefindfunctions \
83         libs/audio \
84         libs/cddabasesrc \
85         libs/netbuffer \
86         libs/pbutils \
87         libs/tag \
88         libs/video \
89         pipelines/simple-launch-lines \
90         pipelines/streamheader
91
92 # TORTURE_TO_FIX = \
93 #       elements/adder
94
95 # ffmpegcolorspace takes too long, so disabled for now
96 VALGRIND_TO_FIX = \
97         elements/audioresample \
98         elements/ffmpegcolorspace \
99         libs/video
100
101 # these tests don't even pass
102 noinst_PROGRAMS =
103
104 AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS)
105 LDADD = $(GST_LIBS) $(GST_CHECK_LIBS)
106
107 # valgrind testing
108 VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
109
110 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-base.supp
111
112 libs_audio_CFLAGS = \
113         $(GST_PLUGINS_BASE_CFLAGS) \
114         $(GST_BASE_CFLAGS) \
115         $(AM_CFLAGS)
116
117 libs_audio_LDADD = \
118         $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
119         $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
120         $(GST_BASE_LIBS) \
121         $(LDADD)
122
123 libs_cddabasesrc_CFLAGS = \
124         $(GST_PLUGINS_BASE_CFLAGS) \
125         $(GST_BASE_CFLAGS) \
126         $(AM_CFLAGS)
127
128 libs_cddabasesrc_LDADD = \
129         $(top_builddir)/gst-libs/gst/cdda/libgstcdda-@GST_MAJORMINOR@.la \
130         $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la \
131         $(GST_BASE_LIBS) \
132         $(LDADD)
133
134 libs_netbuffer_CFLAGS = \
135         $(GST_PLUGINS_BASE_CFLAGS) \
136         $(AM_CFLAGS)
137 libs_netbuffer_LDADD = \
138         $(top_builddir)/gst-libs/gst/netbuffer/libgstnetbuffer-@GST_MAJORMINOR@.la \
139         $(LDADD)
140
141 libs_tag_CFLAGS = \
142         $(GST_PLUGINS_BASE_CFLAGS) \
143         $(AM_CFLAGS)
144 libs_tag_LDADD = \
145         $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la $(LDADD)
146
147 libs_pbutils_CFLAGS = \
148         $(GST_PLUGINS_BASE_CFLAGS) \
149         $(AM_CFLAGS)
150 libs_pbutils_LDADD = \
151         $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la $(LDADD)
152
153 elements_alsa_CFLAGS = \
154         $(GST_PLUGINS_BASE_CFLAGS) \
155         $(AM_CFLAGS)
156
157 elements_alsa_LDADD = \
158         $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
159         $(LDADD)
160
161 elements_audioconvert_CFLAGS = \
162         $(GST_PLUGINS_BASE_CFLAGS) \
163         $(GST_BASE_CFLAGS) \
164         $(AM_CFLAGS)
165
166 elements_audioconvert_LDADD = \
167         $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
168         $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
169         $(GST_BASE_LIBS) \
170         $(LDADD)
171
172 elements_audiorate_LDADD =  $(LDADD)
173 elements_audiorate_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
174
175 elements_gdpdepay_LDADD = $(GST_GDP_LIBS) $(LDADD)
176 elements_gdppay_LDADD = $(GST_GDP_LIBS) $(LDADD)
177
178 elements_playbin_LDADD = $(GST_BASE_LIBS) $(LDADD)
179 elements_playbin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
180
181 elements_decodebin_LDADD = $(GST_BASE_LIBS) $(LDADD)
182 elements_decodebin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
183
184 elements_subparse_LDADD =  $(LDADD)
185 elements_subparse_CFLAGS = $(CFLAGS) $(AM_CFLAGS)
186
187 elements_textoverlay_LDADD = $(GST_BASE_LIBS) $(LDADD)
188 elements_textoverlay_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
189
190 elements_volume_LDADD = \
191         $(GST_BASE_LIBS) \
192         $(LDADD)
193
194 elements_volume_CFLAGS = \
195         $(GST_PLUGINS_BASE_CFLAGS) \
196         $(GST_BASE_CFLAGS) \
197         $(AM_CFLAGS)
198
199 elements_vorbistag_LDADD = \
200         $(LDADD) \
201         $(VORBIS_LIBS)
202
203 elements_vorbistag_CFLAGS = \
204         $(GST_PLUGINS_BASE_CFLAGS) \
205         $(AM_CFLAGS) \
206         $(VORBIS_CFLAGS) \
207         $(CFLAGS)
208
209 gst_typefindfunctions_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
210 gst_typefindfunctions_LDADD = $(GST_BASE_LIBS) $(LDADD)
211
212 libs_video_CFLAGS = \
213         $(GST_PLUGINS_BASE_CFLAGS) \
214         $(GST_BASE_CFLAGS) \
215         $(AM_CFLAGS)
216
217 libs_video_LDADD = \
218         $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
219         $(GST_BASE_LIBS) \
220         $(LDADD)
221
222 # this seemingly useless CFLAGS line is here only to avoid
223 # vorbisdec.$(OBJEXT) by triggering creation of pipelines_vorbisdec.$(OBJEXT)
224 # instead
225 pipelines_vorbisdec_CFLAGS = $(AM_CFLAGS)
226
227 pipelines_oggmux_LDADD = $(LDADD) $(OGG_LIBS)
228 pipelines_oggmux_CFLAGS = $(AM_CFLAGS) $(OGG_CFLAGS)
229
230 pipelines_simple_launch_lines_CFLAGS = \
231         $(GST_BASE_CFLAGS) \
232         $(AM_CFLAGS)
233
234 pipelines_simple_launch_lines_LDADD = \
235         $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
236         $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
237         $(GST_BASE_LIBS) \
238         $(LDADD)
239
240 EXTRA_DIST = gst-plugins-base.supp