+2006-05-09 Tim-Philipp Müller <tim at centricular dot net>
+
+ * Makefile.am:
+ * configure.ac:
+ * tests/Makefile.am:
+ * tests/check/.cvsignore:
+ * tests/check/Makefile.am:
+ * tests/check/generic/.cvsignore:
+ Add test infrastructure to gst-ffmpeg (#324279).
+
2006-05-08 Edward Hervey <edward@fluendo.com>
* autogen.sh: (CONFIGURE_DEF_OPT):
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
-SUBDIRS = gst-libs ext docs common
+SUBDIRS = gst-libs ext docs common tests
+
EXTRA_DIST = \
gst-ffmpeg.spec depcomp \
AUTHORS COPYING NEWS README ChangeLog
-Subproject commit 6b67aa6dd111fb139e1be0f6a386e3ff84cce091
+Subproject commit e41606ab2c6a31be473de511b5fd776bd2593b56
GST_ARG_WITH_PACKAGE_NAME
GST_ARG_WITH_PACKAGE_ORIGIN
+GST_ARG_VALGRIND
dnl *** checks for platform ***
AM_PROG_CC_STDC
AS="${CC}"
+AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
+AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
+
dnl check for documentation tools
GTK_DOC_CHECK([1.3])
AS_PATH_PYTHON([2.1])
GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GST_REQ])
+GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
dnl *** set variables based on configure arguments ***
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
AC_SUBST(GST_PLUGIN_LDFLAGS)
+dnl FIXME: get rid of this by making sure gstreamer-check brings it in
+dnl check for "check", unit testing library/header
+AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no)
+AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
+
dnl *** configure external libs ***
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
docs/plugins/Makefile
common/Makefile
common/m4/Makefile
+tests/Makefile
+tests/check/Makefile
)
AC_OUTPUT
--- /dev/null
+if HAVE_CHECK
+SUBDIRS_CHECK = check
+else
+SUBDIRS_CHECK =
+endif
+
+SUBDIRS = $(SUBDIRS_CHECK)
+
+DIST_SUBDIRS = check
+
--- /dev/null
+test-registry.xml
--- /dev/null
+include $(top_srcdir)/common/check.mak
+
+CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.xml
+
+REGISTRY_ENVIRONMENT = \
+ GST_REGISTRY=$(CHECK_REGISTRY)
+
+TESTS_ENVIRONMENT = \
+ $(REGISTRY_ENVIRONMENT) \
+ GST_PLUGIN_SYSTEM_PATH= \
+ GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR)
+
+# ths core dumps of some machines have PIDs appended
+CLEANFILES = core.* test-registry.xml
+
+clean-local: clean-local-check
+
+check_PROGRAMS =
+####check_PROGRAMS = \
+#### generic/libavcodec-locking
+
+VALGRIND_TO_FIX =
+####VALGRIND_TO_FIX = \
+#### generic/libavcodec-locking
+
+TESTS = $(check_PROGRAMS)
+
+# these tests don't even pass
+noinst_PROGRAMS =
+
+AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
+LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
+
+# valgrind testing
+VALGRIND_TESTS_DISABLE = $(VALGRIND_TO_FIX)
+
+SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-ffmpeg.supp
+
+EXTRA_DIST = gst-ffmpeg.supp
--- /dev/null
+.dirstamp
+libavcodec-locking