mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
2aa56dffed
Make sure the test environment is set up. https://bugzilla.gnome.org//show_bug.cgi?id=747624
83 lines
1.9 KiB
Makefile
83 lines
1.9 KiB
Makefile
include $(top_srcdir)/common/check.mak
|
|
|
|
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
|
|
|
|
REGISTRY_ENVIRONMENT = \
|
|
GST_REGISTRY_1_0=$(CHECK_REGISTRY)
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
|
$(REGISTRY_ENVIRONMENT) \
|
|
GST_PLUGIN_SYSTEM_PATH_1_0= \
|
|
GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR) \
|
|
GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-ugly@$(top_builddir)" \
|
|
GST_STATE_IGNORE_ELEMENTS="siddec dvdreadsrc cdiocddasrc"
|
|
|
|
# ths core dumps of some machines have PIDs appended
|
|
CLEANFILES = core.* test-registry.*
|
|
|
|
clean-local: clean-local-check
|
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
if USE_AMRNB
|
|
AMRNB = elements/amrnbenc
|
|
else
|
|
AMRNB =
|
|
endif
|
|
|
|
if USE_LAME
|
|
LAME = pipelines/lame
|
|
else
|
|
LAME =
|
|
endif
|
|
|
|
if USE_MPEG2DEC
|
|
MPEG2DEC = elements/mpeg2dec
|
|
else
|
|
MPEG2DEC =
|
|
endif
|
|
|
|
if USE_X264
|
|
check_x264enc=elements/x264enc
|
|
else
|
|
check_x264enc=
|
|
endif
|
|
|
|
if USE_PLUGIN_XINGMUX
|
|
check_xingmux = elements/xingmux
|
|
else
|
|
check_xingmux =
|
|
endif
|
|
|
|
# generic/index
|
|
check_PROGRAMS = \
|
|
generic/states \
|
|
$(AMRNB) \
|
|
$(LAME) \
|
|
$(MPEG2DEC) \
|
|
$(check_x264enc) \
|
|
$(check_xingmux)
|
|
|
|
# these tests don't even pass
|
|
noinst_PROGRAMS =
|
|
|
|
noinst_HEADERS = elements/xingmux_testdata.h
|
|
|
|
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
|
|
-DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_PLUGIN_LOADING_WHITELIST\"" \
|
|
-UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
|
|
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
|
|
|
|
# valgrind testing
|
|
VALGRIND_TESTS_DISABLE = \
|
|
elements/x264enc
|
|
|
|
SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-ugly.supp
|
|
|
|
elements_amrnbenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
|
|
elements_amrnbenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
|
|
|
|
elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
|
|
elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
EXTRA_DIST = gst-plugins-ugly.supp
|