1 include $(top_srcdir)/common/check.mak
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
5 REGISTRY_ENVIRONMENT = \
6 GST_REGISTRY=$(CHECK_REGISTRY)
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)
15 # ths core dumps of some machines have PIDs appended
16 CLEANFILES = core.* test-registry.*
18 clean-local: clean-local-check
23 # elements to ignore for the state tests
24 STATE_IGNORE_ELEMENTS = cdio cdparanoiasrc libvisual_ alsasrc alsasink
26 TESTS = $(check_PROGRAMS)
29 check_alsa = elements/alsa
35 check_gnomevfs = elements/gnomevfssink
41 check_gio = pipelines/gio
47 check_libvisual = elements/libvisual
53 check_ogg = pipelines/oggmux
59 check_pango = elements/textoverlay
65 check_vorbis = elements/vorbisdec pipelines/vorbisenc pipelines/vorbisdec \
72 check_theora = pipelines/theoraenc
77 if USE_PLUGIN_SUBPARSE
78 check_subparse = elements/subparse
92 elements/audioconvert \
94 elements/audioresample \
95 elements/audiotestsrc \
97 elements/ffmpegcolorspace \
100 elements/multifdsink \
104 elements/videotestsrc \
106 generic/clock-selection \
108 gst/typefindfunctions \
118 pipelines/simple-launch-lines \
119 pipelines/streamheader
124 # ffmpegcolorspace takes too long, so disabled for now
126 elements/ffmpegcolorspace \
129 # these tests don't even pass
130 noinst_PROGRAMS = $(check_libvisual)
132 AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS)
133 LDADD = $(GST_LIBS) $(GST_CHECK_LIBS)
136 VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
138 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-base.supp
140 libs_audio_CFLAGS = \
141 $(GST_PLUGINS_BASE_CFLAGS) \
146 $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
147 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
151 libs_cddabasesrc_CFLAGS = \
152 $(GST_PLUGINS_BASE_CFLAGS) \
156 libs_cddabasesrc_LDADD = \
157 $(top_builddir)/gst-libs/gst/cdda/libgstcdda-@GST_MAJORMINOR@.la \
158 $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la \
163 $(GST_PLUGINS_BASE_CFLAGS) \
168 $(top_builddir)/gst-libs/gst/fft/libgstfft-@GST_MAJORMINOR@.la \
172 libs_mixer_CFLAGS = \
173 $(GST_PLUGINS_BASE_CFLAGS) \
178 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
182 libs_netbuffer_CFLAGS = \
183 $(GST_PLUGINS_BASE_CFLAGS) \
185 libs_netbuffer_LDADD = \
186 $(top_builddir)/gst-libs/gst/netbuffer/libgstnetbuffer-@GST_MAJORMINOR@.la \
190 $(GST_PLUGINS_BASE_CFLAGS) \
193 $(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_MAJORMINOR@.la $(LDADD)
196 $(GST_PLUGINS_BASE_CFLAGS) \
199 $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la $(LDADD)
201 libs_pbutils_CFLAGS = \
202 $(GST_PLUGINS_BASE_CFLAGS) \
204 libs_pbutils_LDADD = \
205 $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la $(LDADD)
207 elements_alsa_CFLAGS = \
208 $(GST_PLUGINS_BASE_CFLAGS) \
211 elements_alsa_LDADD = \
212 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
215 elements_audioconvert_CFLAGS = \
216 $(GST_PLUGINS_BASE_CFLAGS) \
220 elements_audioconvert_LDADD = \
221 $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
222 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
226 elements_audiorate_LDADD = $(LDADD)
227 elements_audiorate_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
229 elements_libvisual_LDADD = $(LDADD)
230 elements_libvisual_CFLAGS = $(CFLAGS) $(AM_CFLAGS)
232 elements_gdpdepay_LDADD = $(GST_GDP_LIBS) $(LDADD)
233 elements_gdppay_LDADD = $(GST_GDP_LIBS) $(LDADD)
235 elements_playbin_LDADD = $(GST_BASE_LIBS) $(LDADD)
236 elements_playbin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
238 elements_decodebin_LDADD = $(GST_BASE_LIBS) $(LDADD)
239 elements_decodebin_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
241 elements_subparse_LDADD = $(LDADD)
242 elements_subparse_CFLAGS = $(CFLAGS) $(AM_CFLAGS)
244 elements_audioresample_CFLAGS = \
245 $(GST_PLUGINS_BASE_CFLAGS) \
249 elements_audioresample_LDADD = \
250 $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
251 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
255 elements_textoverlay_LDADD = $(GST_BASE_LIBS) $(LDADD)
256 elements_textoverlay_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
258 elements_volume_LDADD = \
259 $(GST_CONTROLLER_LIBS) \
263 elements_volume_CFLAGS = \
264 $(GST_PLUGINS_BASE_CFLAGS) \
265 $(GST_CONTROLLER_CFLAGS) \
269 elements_vorbisdec_LDADD = \
273 elements_vorbisdec_CFLAGS = \
274 $(GST_PLUGINS_BASE_CFLAGS) \
279 elements_vorbistag_LDADD = \
283 elements_vorbistag_CFLAGS = \
284 $(GST_PLUGINS_BASE_CFLAGS) \
289 gst_typefindfunctions_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
290 gst_typefindfunctions_LDADD = $(GST_BASE_LIBS) $(LDADD)
292 libs_video_CFLAGS = \
293 $(GST_PLUGINS_BASE_CFLAGS) \
298 $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
302 pipelines_gio_CFLAGS = $(GIO_CFLAGS) $(AM_CFLAGS)
303 pipelines_gio_LDADD = $(GIO_LIBS) $(LDADD)
305 pipelines_vorbisenc_CFLAGS = \
306 $(GST_PLUGINS_BASE_CFLAGS) \
309 # this seemingly useless CFLAGS line is here only to avoid
310 # vorbisdec.$(OBJEXT) by triggering creation of pipelines_vorbisdec.$(OBJEXT)
312 pipelines_vorbisdec_CFLAGS = $(AM_CFLAGS)
314 pipelines_oggmux_LDADD = $(LDADD) $(OGG_LIBS)
315 pipelines_oggmux_CFLAGS = $(AM_CFLAGS) $(OGG_CFLAGS)
317 pipelines_theoraenc_CFLAGS = $(AM_CFLAGS) $(THEORA_CFLAGS)
318 pipelines_theoraenc_LDADD = $(LDADD) $(THEORA_LIBS)
320 pipelines_simple_launch_lines_CFLAGS = \
324 pipelines_simple_launch_lines_LDADD = \
325 $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
326 $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
330 EXTRA_DIST = gst-plugins-base.supp