2006-04-01 16:50:49 +00:00
|
|
|
include $(top_srcdir)/common/check.mak
|
|
|
|
|
2007-09-20 15:06:23 +00:00
|
|
|
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
|
2010-11-03 00:04:27 +00:00
|
|
|
TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
|
2006-04-01 16:50:49 +00:00
|
|
|
|
|
|
|
GST_TOOLS_DIR = $(top_builddir)/tools
|
|
|
|
|
|
|
|
REGISTRY_ENVIRONMENT = \
|
|
|
|
GST_REGISTRY=$(CHECK_REGISTRY)
|
|
|
|
|
2010-08-08 23:15:03 +00:00
|
|
|
# GST_PLUGINS_XYZ_DIR is only set in an uninstalled setup
|
2006-04-01 16:50:49 +00:00
|
|
|
TESTS_ENVIRONMENT = \
|
2010-06-30 17:52:12 +00:00
|
|
|
$(REGISTRY_ENVIRONMENT) \
|
|
|
|
GST_PLUGIN_SYSTEM_PATH= \
|
2010-08-08 23:15:03 +00:00
|
|
|
GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(GST_PLUGINS_FFMPEG_DIR):$(GST_PLUGINS_UGLY_DIR):$(GST_PLUGINS_GOOD_DIR):$(GST_PLUGINS_BASE_DIR):$(GST_PLUGINS_DIR) \
|
2010-06-30 17:59:23 +00:00
|
|
|
GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-good:gst-plugins-ugly:gst-ffmpeg:gst-plugins-bad@$(top_builddir)" \
|
2010-12-02 06:08:52 +00:00
|
|
|
GST_STATE_IGNORE_ELEMENTS="apexsink camerabin camerabin2 cdaudio dc1394src dccpclientsrc dccpclientsink dccpserversrc dccpserversink dvbsrc dvbbasebin dfbvideosink festival gsettingsvideosrc gsettingsvideosink gsettingsaudiosrc gsettingsaudiosink nassink rsndvdbin sdlaudiosink sdlvideosink vcdsrc rfbsrc vdpauyuvvideo vdpauvideoyuv vdpaumpegdec neonhttpsrc"
|
2006-04-01 16:50:49 +00:00
|
|
|
|
|
|
|
plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
|
|
|
|
|
|
|
|
# override to _not_ install the test plugins
|
|
|
|
install-pluginLTLIBRARIES:
|
|
|
|
|
|
|
|
# the core dumps of some machines have PIDs appended
|
2007-09-20 15:06:23 +00:00
|
|
|
CLEANFILES = core.* test-registry.*
|
2006-04-01 16:50:49 +00:00
|
|
|
|
2006-08-23 10:30:31 +00:00
|
|
|
SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-bad.supp
|
2006-04-01 16:50:49 +00:00
|
|
|
|
2010-06-02 06:34:05 +00:00
|
|
|
clean-local: clean-local-check clean-local-orc
|
2006-04-01 16:50:49 +00:00
|
|
|
|
2010-02-16 20:41:38 +00:00
|
|
|
if USE_ASSRENDER
|
|
|
|
check_assrender = elements/assrender
|
|
|
|
else
|
|
|
|
check_assrender =
|
|
|
|
endif
|
|
|
|
|
2009-09-06 09:50:39 +00:00
|
|
|
if USE_FAAC
|
|
|
|
check_faac = elements/faac
|
|
|
|
else
|
|
|
|
check_faac =
|
|
|
|
endif
|
|
|
|
|
2010-02-11 19:37:55 +00:00
|
|
|
if USE_FAAD
|
|
|
|
check_faad = elements/faad
|
|
|
|
else
|
|
|
|
check_faad =
|
|
|
|
endif
|
|
|
|
|
2010-06-11 18:29:43 +00:00
|
|
|
if USE_EXIF
|
|
|
|
check_jifmux = elements/jifmux
|
|
|
|
else
|
|
|
|
check_jifmux =
|
|
|
|
endif
|
|
|
|
|
2006-07-13 12:42:29 +00:00
|
|
|
if USE_MPEG2ENC
|
|
|
|
check_mpeg2enc = elements/mpeg2enc
|
|
|
|
else
|
|
|
|
check_mpeg2enc =
|
|
|
|
endif
|
|
|
|
|
2008-03-05 06:03:03 +00:00
|
|
|
if USE_MPLEX
|
|
|
|
check_mplex = elements/mplex
|
|
|
|
else
|
|
|
|
check_mplex =
|
|
|
|
endif
|
|
|
|
|
2006-12-12 16:10:21 +00:00
|
|
|
if USE_NEON
|
|
|
|
check_neon = elements/neonhttpsrc
|
|
|
|
else
|
|
|
|
check_neon =
|
|
|
|
endif
|
|
|
|
|
2008-04-04 19:18:36 +00:00
|
|
|
if USE_OFA
|
|
|
|
check_ofa = elements/ofa
|
|
|
|
else
|
|
|
|
check_ofa =
|
|
|
|
endif
|
|
|
|
|
2010-10-10 00:39:36 +00:00
|
|
|
if USE_SCHRO
|
|
|
|
check_schro=elements/schroenc
|
|
|
|
else
|
|
|
|
check_schro=
|
|
|
|
endif
|
|
|
|
|
2007-07-19 09:08:30 +00:00
|
|
|
if USE_TIMIDITY
|
|
|
|
check_timidity=elements/timidity
|
|
|
|
else
|
|
|
|
check_timidity=
|
|
|
|
endif
|
|
|
|
|
2009-02-15 18:35:04 +00:00
|
|
|
if USE_KATE
|
|
|
|
check_kate=elements/kate
|
|
|
|
else
|
|
|
|
check_kate=
|
|
|
|
endif
|
|
|
|
|
2009-09-18 22:45:09 +00:00
|
|
|
if USE_MIMIC
|
|
|
|
check_mimic=pipelines/mimic
|
|
|
|
else
|
|
|
|
check_mimic=
|
|
|
|
endif
|
|
|
|
|
2010-07-10 13:29:46 +00:00
|
|
|
if USE_VP8
|
2010-07-10 13:46:51 +00:00
|
|
|
check_vp8=elements/vp8enc elements/vp8dec
|
2010-07-10 13:29:46 +00:00
|
|
|
else
|
|
|
|
check_vp8=
|
|
|
|
endif
|
|
|
|
|
2010-06-02 06:34:05 +00:00
|
|
|
if HAVE_ORC
|
|
|
|
check_orc = orc/cog
|
|
|
|
else
|
|
|
|
check_orc =
|
|
|
|
endif
|
|
|
|
|
2010-11-03 00:04:27 +00:00
|
|
|
if USE_ZBAR
|
|
|
|
check_zbar = elements/zbar
|
|
|
|
else
|
|
|
|
check_zbar =
|
|
|
|
endif
|
2009-02-15 18:35:04 +00:00
|
|
|
|
tests/check/: Add unit tests for wavpack elements (#352476).
Original commit message from CVS:
Patch by: Sebastian Dröge <slomo at circular-chaos.org>
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/wavpackdec.c: (setup_wavpackdec),
(cleanup_wavpackdec), (GST_START_TEST), (wavpackdec_suite), (main):
* tests/check/elements/wavpackenc.c: (setup_wavpackenc),
(cleanup_wavpackenc), (GST_START_TEST), (wavpackenc_suite), (main):
* tests/check/elements/wavpackparse.c: (wavpackparse_found_pad),
(setup_wavpackparse), (cleanup_wavpackparse), (GST_START_TEST),
(wavpackparse_suite), (main):
Add unit tests for wavpack elements (#352476).
2006-08-23 09:22:07 +00:00
|
|
|
VALGRIND_TO_FIX = \
|
2008-03-05 06:03:03 +00:00
|
|
|
elements/mpeg2enc \
|
2010-11-03 00:04:27 +00:00
|
|
|
elements/mplex \
|
|
|
|
elements/zbar
|
tests/check/: Add unit tests for wavpack elements (#352476).
Original commit message from CVS:
Patch by: Sebastian Dröge <slomo at circular-chaos.org>
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/wavpackdec.c: (setup_wavpackdec),
(cleanup_wavpackdec), (GST_START_TEST), (wavpackdec_suite), (main):
* tests/check/elements/wavpackenc.c: (setup_wavpackenc),
(cleanup_wavpackenc), (GST_START_TEST), (wavpackenc_suite), (main):
* tests/check/elements/wavpackparse.c: (wavpackparse_found_pad),
(setup_wavpackparse), (cleanup_wavpackparse), (GST_START_TEST),
(wavpackparse_suite), (main):
Add unit tests for wavpack elements (#352476).
2006-08-23 09:22:07 +00:00
|
|
|
|
|
|
|
# valgrind testing
|
2006-09-02 18:49:01 +00:00
|
|
|
VALGRIND_TESTS_DISABLE = \
|
|
|
|
$(VALGRIND_TO_FIX)
|
tests/check/: Add unit tests for wavpack elements (#352476).
Original commit message from CVS:
Patch by: Sebastian Dröge <slomo at circular-chaos.org>
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/wavpackdec.c: (setup_wavpackdec),
(cleanup_wavpackdec), (GST_START_TEST), (wavpackdec_suite), (main):
* tests/check/elements/wavpackenc.c: (setup_wavpackenc),
(cleanup_wavpackenc), (GST_START_TEST), (wavpackenc_suite), (main):
* tests/check/elements/wavpackparse.c: (wavpackparse_found_pad),
(setup_wavpackparse), (cleanup_wavpackparse), (GST_START_TEST),
(wavpackparse_suite), (main):
Add unit tests for wavpack elements (#352476).
2006-08-23 09:22:07 +00:00
|
|
|
|
2010-12-06 14:05:17 +00:00
|
|
|
if BUILD_EXPERIMENTAL
|
|
|
|
EXPERIMENTAL_CHECKS=elements/camerabin2 \
|
|
|
|
elements/imagecapturebin \
|
|
|
|
elements/videorecordingbin
|
|
|
|
endif
|
|
|
|
|
2009-08-11 08:00:37 +00:00
|
|
|
# these tests don't even pass
|
|
|
|
# neon: too flaky (almost always fails 'the first time')
|
|
|
|
noinst_PROGRAMS = \
|
2010-04-09 12:14:02 +00:00
|
|
|
$(check_neon)
|
2009-08-11 08:00:37 +00:00
|
|
|
|
2006-06-06 14:39:15 +00:00
|
|
|
check_PROGRAMS = \
|
2007-08-16 06:49:39 +00:00
|
|
|
generic/states \
|
2010-02-16 20:41:38 +00:00
|
|
|
$(check_assrender) \
|
2009-09-06 09:50:39 +00:00
|
|
|
$(check_faac) \
|
2010-02-11 19:37:55 +00:00
|
|
|
$(check_faad) \
|
2006-09-02 18:49:01 +00:00
|
|
|
$(check_mpeg2enc) \
|
2008-03-21 14:50:41 +00:00
|
|
|
$(check_mplex) \
|
2008-04-04 19:18:36 +00:00
|
|
|
$(check_ofa) \
|
2007-07-19 09:08:30 +00:00
|
|
|
$(check_timidity) \
|
2009-02-15 18:35:04 +00:00
|
|
|
$(check_kate) \
|
2008-11-13 15:20:15 +00:00
|
|
|
elements/aacparse \
|
2010-09-25 11:59:39 +00:00
|
|
|
elements/ac3parse \
|
2008-11-13 15:20:15 +00:00
|
|
|
elements/amrparse \
|
2009-10-24 11:54:19 +00:00
|
|
|
elements/autoconvert \
|
2010-12-15 20:19:55 +00:00
|
|
|
elements/autocolorspace \
|
2009-07-29 01:51:39 +00:00
|
|
|
elements/asfmux \
|
2010-04-09 12:14:02 +00:00
|
|
|
elements/camerabin \
|
2010-02-13 15:28:39 +00:00
|
|
|
elements/dataurisrc \
|
2010-10-01 10:34:55 +00:00
|
|
|
elements/flacparse \
|
2009-01-23 11:46:28 +00:00
|
|
|
elements/legacyresample \
|
2010-06-11 18:29:43 +00:00
|
|
|
$(check_jifmux) \
|
2009-08-19 10:22:30 +00:00
|
|
|
elements/jpegparse \
|
2008-11-11 19:31:35 +00:00
|
|
|
elements/qtmux \
|
2008-02-25 08:53:51 +00:00
|
|
|
elements/selector \
|
2008-12-16 09:59:38 +00:00
|
|
|
elements/mxfdemux \
|
2009-04-02 10:46:13 +00:00
|
|
|
elements/mxfmux \
|
2010-06-14 10:07:33 +00:00
|
|
|
elements/id3mux \
|
2010-09-25 11:59:39 +00:00
|
|
|
elements/mpegaudioparse \
|
2009-04-07 13:50:37 +00:00
|
|
|
pipelines/mxf \
|
2009-09-28 23:54:53 +00:00
|
|
|
$(check_mimic) \
|
2010-03-05 16:33:37 +00:00
|
|
|
elements/rtpmux \
|
2010-10-10 00:39:36 +00:00
|
|
|
$(check_schro) \
|
2010-09-30 21:24:29 +00:00
|
|
|
elements/valve \
|
2010-07-10 13:29:46 +00:00
|
|
|
$(check_vp8) \
|
2010-11-03 00:04:27 +00:00
|
|
|
$(check_zbar) \
|
2010-06-02 06:34:05 +00:00
|
|
|
$(check_orc) \
|
2010-12-06 14:05:17 +00:00
|
|
|
pipelines/tagschecking \
|
|
|
|
$(EXPERIMENTAL_CHECKS)
|
2008-01-23 10:11:44 +00:00
|
|
|
|
2010-09-25 11:50:51 +00:00
|
|
|
noinst_HEADERS = elements/mxfdemux.h
|
2008-01-02 20:49:12 +00:00
|
|
|
|
2006-04-01 16:50:49 +00:00
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
|
2010-11-03 00:04:27 +00:00
|
|
|
AM_CFLAGS = $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) \
|
|
|
|
-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\""
|
2010-10-10 11:32:33 +00:00
|
|
|
LDADD = $(GST_CHECK_LIBS)
|
2006-09-02 18:49:01 +00:00
|
|
|
|
2009-06-12 07:29:20 +00:00
|
|
|
elements_camerabin_CFLAGS = \
|
|
|
|
-I$(top_builddir)/gst-libs \
|
2009-10-29 23:42:34 +00:00
|
|
|
$(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
|
2010-05-24 22:21:32 +00:00
|
|
|
$(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) \
|
2009-06-12 07:29:20 +00:00
|
|
|
-DGST_USE_UNSTABLE_API
|
2009-06-05 18:17:55 +00:00
|
|
|
elements_camerabin_LDADD = \
|
|
|
|
$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
|
2009-10-29 23:42:34 +00:00
|
|
|
$(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
|
|
|
|
$(GST_CHECK_LIBS) \
|
2009-06-05 18:17:55 +00:00
|
|
|
-lgstinterfaces-@GST_MAJORMINOR@
|
2009-02-05 21:06:23 +00:00
|
|
|
elements_camerabin_SOURCES = elements/camerabin.c
|
|
|
|
|
2010-10-10 11:32:33 +00:00
|
|
|
elements_jifmux_CFLAGS = $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) $(AM_CFLAGS) $(EXIF_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
elements_jifmux_LDADD = $(GST_CHECK_LIBS) $(EXIF_LIBS) $(LDADD) $(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR)
|
2010-05-10 13:47:06 +00:00
|
|
|
elements_jifmux_SOURCES = elements/jifmux.c
|
|
|
|
|
2007-07-19 09:08:30 +00:00
|
|
|
elements_timidity_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
elements_timidity_LDADD = $(GST_BASE_LIBS) $(LDADD)
|
|
|
|
|
2009-02-15 18:35:04 +00:00
|
|
|
elements_kate_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
elements_kate_LDADD = $(GST_BASE_LIBS) $(LDADD)
|
|
|
|
|
2009-09-28 23:54:53 +00:00
|
|
|
elements_rtpmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
elements_rtpmux_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstrtp-0.10
|
|
|
|
|
2010-10-04 02:14:53 +00:00
|
|
|
elements_valve_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
elements_valve_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstrtp-0.10
|
|
|
|
|
2010-02-16 20:41:38 +00:00
|
|
|
elements_assrender_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
|
|
|
|
elements_assrender_LDADD = $(GST_BASE_LIBS) $(LDADD) -lgstvideo-0.10 -lgstapp-0.10
|
|
|
|
|
2010-09-25 11:50:51 +00:00
|
|
|
# parser unit test convenience lib
|
|
|
|
noinst_LTLIBRARIES = libparser.la
|
2010-10-19 23:07:01 +00:00
|
|
|
libparser_la_SOURCES = elements/parser.c elements/parser.h
|
2010-09-25 11:50:51 +00:00
|
|
|
|
|
|
|
elements_aacparse_LDADD = libparser.la $(LDADD)
|
|
|
|
|
2010-09-25 11:59:39 +00:00
|
|
|
elements_ac3parse_LDADD = libparser.la $(LDADD)
|
|
|
|
|
2010-09-25 11:50:51 +00:00
|
|
|
elements_amrparse_LDADD = libparser.la $(LDADD)
|
|
|
|
|
2010-10-01 10:34:55 +00:00
|
|
|
elements_flacparse_LDADD = libparser.la $(LDADD)
|
|
|
|
|
2010-09-25 11:59:39 +00:00
|
|
|
elements_mpegaudioparse_LDADD = libparser.la $(LDADD)
|
|
|
|
|
2009-03-04 15:15:57 +00:00
|
|
|
EXTRA_DIST = gst-plugins-bad.supp
|
2010-06-02 06:34:05 +00:00
|
|
|
|
|
|
|
orc_cog_CFLAGS = $(ORC_CFLAGS)
|
|
|
|
orc_cog_LDADD = $(ORC_LIBS) -lorc-test-0.4
|
|
|
|
|
|
|
|
orc/cog.c: $(top_srcdir)/ext/cog/gstcogorc.orc
|
|
|
|
$(MKDIR_P) orc
|
|
|
|
$(ORCC) --test -o $@ $<
|
|
|
|
|
|
|
|
clean-local-orc:
|
|
|
|
rm -rf orc
|
|
|
|
|