add test for amrnbenc, enable test infrastructure, and fix a leak
[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.xml
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:$(GST_PLUGINS_DIR)
13 # ths core dumps of some machines have PIDs appended
14 CLEANFILES = core.* test-registry.xml
16 clean-local: clean-local-check
18 TESTS = $(check_PROGRAMS)
20 if USE_AMRNB
21 AMRNB = elements/amrnbenc
22 else
23 AMRNB =
24 endif
26 check_PROGRAMS = \
27         $(AMRNB)
29 # these tests don't even pass
30 noinst_PROGRAMS =
32 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
33 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
35 # valgrind testing
36 VALGRIND_TESTS_DISABLE =
38 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-ugly.supp
40 elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
41 elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
43 EXTRA_DIST = gst-plugins-ugly.supp