tests: use _1_0 variants for the various registry variables
[platform/upstream/gst-plugins-good.git] / tests / check / Makefile.am
1 include $(top_srcdir)/common/check.mak
2
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4 TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
5
6 REGISTRY_ENVIRONMENT = \
7         GST_REGISTRY_1_0=$(CHECK_REGISTRY)
8
9 TESTS_ENVIRONMENT = \
10         $(REGISTRY_ENVIRONMENT)                                 \
11         GST_PLUGIN_SYSTEM_PATH_1_0=                             \
12         GST_PLUGIN_PATH_1_0=$(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"
19
20 # fake device drivers: we could run hardware element tests against dummy drivers
21 # v4l2: vivo (part of normal kernel)
22 #   modprobe vivo;
23 #   gst-launch v4l2src device="/dev/video1" ! xvimagesink;
24 #   rmmod vivo
25 #
26 # alsa: snd-dummy (part of normal alsa, not removable)
27 #   modprobe snd-dummy;
28 #   gst-launch alsasrc device="hw:2" ! fakesink
29 #   gst-launch fakesrc ! alsasink device="hw:2"
30 #
31 # need a way to figure out value for the device property
32
33 # the core dumps of some machines have PIDs appended
34 CLEANFILES = core.* test-registry.*
35
36 clean-local: clean-local-check clean-local-orc
37
38 if USE_FLAC
39 check_flac = pipelines/flacdec
40 else
41 check_flac =
42 endif
43
44 if USE_GDK_PIXBUF
45 check_gdkpixbuf = elements/gdkpixbufsink
46 else
47 check_gdkpixbuf =
48 endif
49
50 if USE_JPEG
51 check_jpeg = \
52         elements/jpegdec \
53         elements/jpegenc
54 else
55 check_jpeg =
56 endif
57
58 if USE_SOUP
59 check_soup = elements/souphttpsrc
60 else
61 check_soup =
62 endif
63
64 if USE_SUNAUDIO
65 check_sunaudio = elements/sunaudio
66 else
67 check_sunaudio =
68 endif
69
70 if USE_TAGLIB
71 check_taglib = \
72         elements/id3v2mux \
73         elements/apev2mux
74 else
75 check_taglib =
76 endif
77
78 if USE_VPX
79 check_vpx=elements/vp8enc elements/vp8dec
80 else
81 check_vpx=
82 endif
83
84 if USE_WAVPACK
85 check_wavpack = \
86        elements/wavpackdec \
87        elements/wavpackenc \
88        pipelines/wavpack
89 else
90 check_wavpack =
91 endif
92
93 if HAVE_ORC
94 check_orc = orc/deinterlace orc/videomixer orc/videobox
95 else
96 check_orc =
97 endif
98
99
100 check_PROGRAMS = \
101         generic/states \
102         elements/aacparse \
103         elements/ac3parse \
104         elements/amrparse \
105         elements/alphacolor \
106         elements/aspectratiocrop \
107         elements/audioamplify \
108         elements/audiochebband \
109         elements/audiocheblimit \
110         elements/audiodynamic \
111         elements/audioecho \
112         elements/audiofirfilter \
113         elements/audioiirfilter \
114         elements/audioinvert \
115         elements/audiopanorama \
116         elements/audiowsincband \
117         elements/audiowsinclimit \
118         elements/autodetect \
119         elements/avimux \
120         elements/avisubtitle \
121         elements/capssetter \
122         elements/deinterlace \
123         elements/deinterleave \
124         elements/equalizer \
125         elements/flacparse \
126         elements/flvdemux \
127         elements/flvmux \
128         elements/icydemux \
129         elements/id3demux \
130         elements/imagefreeze \
131         elements/interleave \
132         elements/level \
133         elements/matroskamux \
134         elements/matroskaparse \
135         elements/mpegaudioparse \
136         elements/multifile \
137         elements/qtmux \
138         elements/rganalysis \
139         elements/rglimiter \
140         elements/rgvolume \
141         elements/rtp-payloading \
142         elements/rtpbin \
143         elements/rtpbin_buffer_list \
144         elements/rtpjitterbuffer \
145         elements/rtpmux \
146         elements/shapewipe \
147         elements/spectrum \
148         elements/udpsink \
149         elements/udpsrc \
150         elements/videocrop \
151         elements/videofilter \
152         elements/wavpackparse \
153         elements/y4menc \
154         pipelines/simple-launch-lines \
155         pipelines/effectv \
156         pipelines/tagschecking \
157         pipelines/wavenc \
158         $(check_flac) \
159         $(check_gdkpixbuf) \
160         $(check_jpeg) \
161         $(check_soup) \
162         $(check_sunaudio) \
163         $(check_taglib) \
164         $(check_vpx) \
165         $(check_wavpack) \
166         $(check_orc)
167
168 VALGRIND_TO_FIX = \
169         elements/rtp-payloading
170
171 TESTS = $(check_PROGRAMS)
172
173 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
174         $(GST_OPTION_CFLAGS) $(GST_CFLAGS) -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
175         -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
176 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
177
178 # valgrind testing
179 # videocrop disabled since it takes way too long in valgrind
180 VALGRIND_TESTS_DISABLE = \
181         elements/videocrop \
182         $(VALGRIND_TO_FIX)
183
184 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-good.supp
185
186 # parser unit test convenience lib
187 noinst_LTLIBRARIES = libparser.la
188 libparser_la_SOURCES = elements/parser.c elements/parser.h
189 libparser_la_CFLAGS = \
190         -I$(top_srcdir)/tests/check \
191         $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) -DGST_USE_UNSTABLE_API
192
193 elements_aacparse_LDADD = libparser.la $(LDADD)
194
195 elements_ac3parse_LDADD = libparser.la $(LDADD)
196
197 elements_amrparse_LDADD = libparser.la $(LDADD)
198
199 elements_flacparse_LDADD = libparser.la $(LDADD)
200
201 elements_mpegaudioparse_LDADD = libparser.la $(LDADD)
202
203 elements_aspectratiocrop_LDADD = $(LDADD)
204 elements_aspectratiocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
205
206 elements_audioamplify_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
207 elements_audioamplify_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
208
209 elements_audiochebband_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
210 elements_audiochebband_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
211
212 elements_audiocheblimit_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
213 elements_audiocheblimit_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
214
215 elements_audiodynamic_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
216 elements_audiodynamic_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
217
218 elements_audioecho_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
219 elements_audioecho_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
220
221 elements_audioinvert_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
222 elements_audioinvert_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
223
224 elements_audiopanorama_LDADD = \
225         $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(GST_BASE_LIBS) \
226         $(GST_CONTROLLER_LIBS) $(LDADD)
227
228 elements_audiopanorama_CFLAGS = \
229         $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
230         $(CFLAGS) $(AM_CFLAGS)
231
232 elements_audiowsincband_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
233 elements_audiowsincband_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
234
235 elements_audiowsinclimit_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
236 elements_audiowsinclimit_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
237
238 elements_equalizer_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
239 elements_equalizer_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
240
241 elements_rganalysis_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
242 elements_rganalysis_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
243 elements_rglimiter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
244 elements_rglimiter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
245 elements_rgvolume_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
246 elements_rgvolume_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
247
248 elements_spectrum_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
249 elements_spectrum_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
250
251 elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
252
253 elements_deinterlace_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
254 elements_deinterlace_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
255
256 elements_deinterleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
257 elements_deinterleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
258 elements_interleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
259 elements_interleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
260
261 elements_level_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
262 elements_level_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
263
264 elements_imagefreeze_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
265 elements_imagefreeze_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
266
267 elements_jpegdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GIO_CFLAGS) $(AM_CFLAGS)
268 elements_jpegdec_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) -lgstpbutils-$(GST_API_VERSION) $(GST_BASE_LIBS) $(GIO_LIBS) $(LDADD)
269
270 elements_jpegenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
271 elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
272
273 elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)
274
275 elements_multifile_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
276 elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) $(LDADD) $(LIBM)
277
278 elements_qtmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
279 elements_qtmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-@GST_API_VERSION@ \
280              $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
281
282 elements_rtpbin_buffer_list_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
283         $(WARNING_CFLAGS) $(ERROR_CFLAGS) $(GST_CHECK_CFLAGS) $(AM_CFLAGS)
284 elements_rtpbin_buffer_list_LDADD = $(GST_PLUGINS_BASE_LIBS) \
285              -lgstrtp-@GST_API_VERSION@ \
286              $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
287 elements_rtpbin_buffer_list_SOURCES = elements/rtpbin_buffer_list.c
288
289 elements_rtpmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
290 elements_rtpmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
291
292 elements_souphttpsrc_CFLAGS = $(SOUP_CFLAGS) $(AM_CFLAGS)
293 elements_souphttpsrc_LDADD = $(SOUP_LIBS) $(LDADD)
294
295 elements_sunaudio_CFLAGS = \
296         $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) \
297         $(AM_CFLAGS)
298 elements_sunaudio_LDADD = \
299         $(GST_PLUGINS_BASE_LIBS) \
300         $(LDADD)
301
302 elements_udpsrc_CFLAGS = $(AM_CFLAGS) $(GIO_CFLAGS)
303 elements_udpsrc_LDADD = $(LDADD) $(GIO_LIBS)
304
305 elements_videocrop_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
306 elements_videocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
307
308 elements_videofilter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
309 elements_videofilter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
310
311 # FIXME: configure should check for gdk-pixbuf not gtk
312 # only need video.h header, not the lib
313 elements_gdkpixbufsink_CFLAGS = \
314         $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS) $(GDK_PIXBUF_CFLAGS)
315 elements_gdkpixbufsink_LDADD = \
316         $(LDADD) $(GDK_PIXBUF_LIBS)
317
318
319 pipelines_flacdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
320 pipelines_flacdec_LDADD  = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
321
322 pipelines_wavenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
323 pipelines_wavenc_LDADD  = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
324
325 pipelines_wavpack_LDADD = $(LDADD) $(GST_BASE_LIBS)
326 pipelines_wavpack_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
327
328 orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
329 orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
330 nodist_orc_deinterlace_SOURCES = orc/deinterlace.c
331 orc_videomixer_CFLAGS = $(ORC_CFLAGS)
332 orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
333 nodist_orc_videomixer_SOURCES = orc/videomixer.c
334 orc_videobox_CFLAGS = $(ORC_CFLAGS)
335 orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4
336 nodist_orc_videobox_SOURCES = orc/videobox.c
337
338 orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
339         $(MKDIR_P) orc/
340         $(ORCC) --test -o $@ $<
341
342 orc/videomixer.c: $(top_srcdir)/gst/videomixer/blendorc.orc
343         $(MKDIR_P) orc/
344         $(ORCC) --test -o $@ $<
345
346 orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
347         $(MKDIR_P) orc/
348         $(ORCC) --test -o $@ $<
349
350 clean-local-orc:
351         rm -rf orc
352
353 EXTRA_DIST = gst-plugins-good.supp