1 include $(top_srcdir)/common/check.mak
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4 TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
6 REGISTRY_ENVIRONMENT = \
7 GST_REGISTRY=$(CHECK_REGISTRY)
10 $(REGISTRY_ENVIRONMENT) \
11 GST_PLUGIN_SYSTEM_PATH= \
12 GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR) \
13 GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-good@$(top_builddir)" \
14 GST_STATE_IGNORE_ELEMENTS="aasink autoaudiosrc autoaudiosink autovideosrc autovideosink \
15 cacasink cairotextoverlay \
16 halaudiosrc halaudiosink jackaudiosrc jackaudiosink \
17 osssrc osssink osxaudiosink osxaudiosrc osxvideosrc osxvideosink \
18 pulsesink pulsesrc pulsemixer v4l2src"
20 # fake device drivers: we could run hardware element tests against dummy drivers
21 # v4l2: vivo (part of normal kernel)
23 # gst-launch v4l2src device="/dev/video1" ! xvimagesink;
26 # alsa: snd-dummy (part of normal alsa, not removable)
28 # gst-launch alsasrc device="hw:2" ! fakesink
29 # gst-launch fakesrc ! alsasink device="hw:2"
31 # need a way to figure out value for the device property
33 # the core dumps of some machines have PIDs appended
34 CLEANFILES = core.* test-registry.*
36 clean-local: clean-local-check clean-local-orc
47 check_flac = pipelines/flacdec
53 check_gdkpixbuf = elements/gdkpixbufsink
59 check_jpeg = elements/jpegenc
65 check_soup = elements/souphttpsrc
71 check_sunaudio = elements/sunaudio
86 elements/wavpackparse \
95 check_orc = orc/deinterlace orc/videomixer orc/videobox
108 elements/alphacolor \
109 elements/aspectratiocrop \
110 elements/audioamplify \
111 elements/audiochebband \
112 elements/audiocheblimit \
113 elements/audiodynamic \
115 elements/audiofirfilter \
116 elements/audioiirfilter \
117 elements/audioinvert \
118 elements/audiopanorama \
119 elements/audiowsincband \
120 elements/audiowsinclimit \
121 elements/autodetect \
123 elements/avisubtitle \
124 elements/capssetter \
125 elements/deinterlace \
126 elements/deinterleave \
133 elements/imagefreeze \
134 elements/interleave \
136 elements/matroskamux \
137 elements/matroskaparse \
138 elements/mpegaudioparse \
141 elements/rganalysis \
144 elements/rtp-payloading \
146 elements/rtpbin_buffer_list \
147 elements/rtpjitterbuffer \
152 elements/videofilter \
154 pipelines/simple-launch-lines \
156 pipelines/tagschecking \
168 elements/rtp-payloading
170 TESTS = $(check_PROGRAMS)
172 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
173 $(GST_OPTION_CFLAGS) $(GST_CFLAGS) -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
174 -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
175 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
178 # videocrop disabled since it takes way too long in valgrind
179 VALGRIND_TESTS_DISABLE = \
183 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-good.supp
185 # parser unit test convenience lib
186 noinst_LTLIBRARIES = libparser.la
187 libparser_la_SOURCES = elements/parser.c elements/parser.h
188 libparser_la_CFLAGS = \
189 -I$(top_srcdir)/tests/check \
190 $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) -DGST_USE_UNSTABLE_API
192 elements_aacparse_LDADD = libparser.la $(LDADD)
194 elements_ac3parse_LDADD = libparser.la $(LDADD)
196 elements_amrparse_LDADD = libparser.la $(LDADD)
198 elements_flacparse_LDADD = libparser.la $(LDADD)
200 elements_mpegaudioparse_LDADD = libparser.la $(LDADD)
202 elements_aspectratiocrop_LDADD = $(LDADD)
203 elements_aspectratiocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
205 elements_audioamplify_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
206 elements_audioamplify_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
208 elements_audiochebband_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
209 elements_audiochebband_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
211 elements_audiocheblimit_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
212 elements_audiocheblimit_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
214 elements_audiodynamic_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
215 elements_audiodynamic_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
217 elements_audioecho_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
218 elements_audioecho_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
220 elements_audiopanorama_LDADD = \
221 $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \
224 elements_audiopanorama_CFLAGS = \
225 $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
226 $(CFLAGS) $(AM_CFLAGS)
228 elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
229 elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
231 elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
233 elements_deinterlace_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
234 elements_deinterlace_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(LDADD)
236 elements_deinterleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
237 elements_deinterleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
238 elements_interleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
239 elements_interleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
241 elements_imagefreeze_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
242 elements_imagefreeze_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(GST_BASE_LIBS) $(LDADD)
244 elements_jpegenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
245 elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-0.10 $(GST_BASE_LIBS) $(LDADD)
247 elements_level_LDADD = $(LDADD) $(LIBM)
249 elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)
251 elements_multifile_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
252 elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(GST_LIBS) $(LDADD) $(LIBM)
254 elements_qtmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
255 elements_qtmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-@GST_MAJORMINOR@ \
256 $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
258 elements_rtpbin_buffer_list_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
259 $(WARNING_CFLAGS) $(ERROR_CFLAGS) $(GST_CHECK_CFLAGS) $(AM_CFLAGS)
260 elements_rtpbin_buffer_list_LDADD = $(GST_PLUGINS_BASE_LIBS) \
261 -lgstnetbuffer-@GST_MAJORMINOR@ -lgstrtp-@GST_MAJORMINOR@ \
262 $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
263 elements_rtpbin_buffer_list_SOURCES = elements/rtpbin_buffer_list.c
265 elements_souphttpsrc_CFLAGS = $(SOUP_CFLAGS) $(AM_CFLAGS)
266 elements_souphttpsrc_LDADD = $(SOUP_LIBS) $(LDADD)
268 elements_sunaudio_CFLAGS = \
269 $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) \
271 elements_sunaudio_LDADD = \
272 $(GST_PLUGINS_BASE_LIBS) -lgstinterfaces-@GST_MAJORMINOR@ \
275 elements_videocrop_LDADD = $(GST_BASE_LIBS) $(LDADD)
276 elements_videocrop_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
278 elements_videofilter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
279 elements_videofilter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) $(LDADD)
281 # FIXME: configure should check for gdk-pixbuf not gtk
282 # only need video.h header, not the lib
283 elements_gdkpixbufsink_CFLAGS = \
284 $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS) $(GDK_PIXBUF_CFLAGS)
285 elements_gdkpixbufsink_LDADD = \
286 $(LDADD) $(GDK_PIXBUF_LIBS)
289 pipelines_wavenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
290 pipelines_wavenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LDADD)
292 pipelines_wavpack_LDADD = $(LDADD) $(GST_BASE_LIBS)
293 pipelines_wavpack_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
295 orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
296 orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
297 nodist_orc_deinterlace_SOURCES = orc/deinterlace.c
298 orc_videomixer_CFLAGS = $(ORC_CFLAGS)
299 orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
300 nodist_orc_videomixer_SOURCES = orc/videomixer.c
301 orc_videobox_CFLAGS = $(ORC_CFLAGS)
302 orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4
303 nodist_orc_videobox_SOURCES = orc/videobox.c
305 orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
307 $(ORCC) --test -o $@ $<
309 orc/videomixer.c: $(top_srcdir)/gst/videomixer/blendorc.orc
311 $(ORCC) --test -o $@ $<
313 orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
315 $(ORCC) --test -o $@ $<
320 EXTRA_DIST = gst-plugins-good.supp