Commit 20ea22e0 authored by Jose Antonio Santos Cadenas's avatar Jose Antonio Santos Cadenas Committed by Olivier Crête

nicesink: Add test for buffer list support

https://bugs.freedesktop.org/show_bug.cgi?id=89609
parent 781f3ab1
......@@ -203,7 +203,7 @@ AC_ARG_WITH(gstreamer-0.10,
[with_gstreamer010=auto])
AS_IF([test "$with_gstreamer" != no], [
PKG_CHECK_MODULES(GST, [
gstreamer-1.0 >= 0.11.91
gstreamer-base-1.0 >= 0.11.91
......@@ -220,6 +220,19 @@ AS_IF([test "$with_gstreamer" != no], [
with_gstreamer=no
])
PKG_CHECK_MODULES(GST_CHECK, [
gstreamer-check-1.0 >= 0.11.91
],
[
have_gst_check=yes
],
[
have_gst_check=no
])
AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
])
AS_IF([test "$with_gstreamer010" != no], [
......
......@@ -8,6 +8,9 @@
include $(top_srcdir)/common.mk
TESTS_ENVIRONMENT=\
GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:$(top_builddir)/gst
AM_CFLAGS = \
$(LIBNICE_CFLAGS) \
$(GLIB_CFLAGS) \
......@@ -51,6 +54,10 @@ dist_check_SCRIPTS = \
check-test-fullmode-with-stun.sh \
test-pseudotcp-random.sh
if HAVE_GST_CHECK
check_PROGRAMS += test-gstreamer
endif
TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
noinst_HEADERS = test-io-stream-common.h
......@@ -109,6 +116,9 @@ test_tcp_LDADD = $(COMMON_LDADD)
test_icetcp_LDADD = $(COMMON_LDADD)
test_gstreamer_CFLAGS = $(AM_CFLAGS) $(GST_CHECK_CFLAGS)
test_gstreamer_LDADD = -lnice -L$(top_builddir)/nice/.libs $(GLIB_LIBS) $(GUPNP_LIBS) $(GST_CHECK_LIBS) $(GST_LIBS)
all-local:
chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh
chmod a+x $(srcdir)/test-pseudotcp-random.sh
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment