DEBIAN: Debianization
[glsdk/gst-plugins-ugly0-10.git] / tests / check / Makefile.am
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)
8 TESTS_ENVIRONMENT = \
9         $(REGISTRY_ENVIRONMENT)                                 \
10         GST_PLUGIN_SYSTEM_PATH=                                 \
11         GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR)  \
12         GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-ugly@$(top_builddir)" \
13         GST_STATE_IGNORE_ELEMENTS="siddec dvdreadsrc cdiocddasrc"
15 # ths core dumps of some machines have PIDs appended
16 CLEANFILES = core.* test-registry.*
18 clean-local: clean-local-check
20 TESTS = $(check_PROGRAMS)
22 if USE_AMRNB
23 AMRNB = elements/amrnbenc
24 else
25 AMRNB =
26 endif
28 if USE_LAME
29 LAME = pipelines/lame
30 else
31 LAME =
32 endif
34 if USE_MPEG2DEC
35 MPEG2DEC = elements/mpeg2dec
36 else
37 MPEG2DEC =
38 endif
40 if USE_X264
41 check_x264enc=elements/x264enc
42 else
43 check_x264enc=
44 endif
46 check_PROGRAMS = \
47         generic/index \
48         generic/states \
49         $(AMRNB) \
50         $(LAME) \
51         $(MPEG2DEC) \
52         $(check_x264enc) \
53         elements/xingmux
55 # these tests don't even pass
56 noinst_PROGRAMS =
58 noinst_HEADERS = elements/xingmux_testdata.h
60 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
61                 -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
62 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
64 # valgrind testing
65 VALGRIND_TESTS_DISABLE = \
66         generic/index \
67         elements/x264enc
69 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-ugly.supp
71 elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
72 elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
74 EXTRA_DIST = gst-plugins-ugly.supp