Commit 10e4f37d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

Add test infrastructure to gst-ffmpeg (#324279).

Original commit message from CVS:
* 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).
parent ad8f6ddf
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> 2006-05-08 Edward Hervey <edward@fluendo.com>
* autogen.sh: (CONFIGURE_DEF_OPT): * autogen.sh: (CONFIGURE_DEF_OPT):
......
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
SUBDIRS = gst-libs ext docs common SUBDIRS = gst-libs ext docs common tests
EXTRA_DIST = \ EXTRA_DIST = \
gst-ffmpeg.spec depcomp \ gst-ffmpeg.spec depcomp \
AUTHORS COPYING NEWS README ChangeLog AUTHORS COPYING NEWS README ChangeLog
......
common @ e41606ab
Subproject commit 6b67aa6dd111fb139e1be0f6a386e3ff84cce091 Subproject commit e41606ab2c6a31be473de511b5fd776bd2593b56
...@@ -51,6 +51,7 @@ dnl *** check for arguments to configure *** ...@@ -51,6 +51,7 @@ dnl *** check for arguments to configure ***
GST_ARG_WITH_PACKAGE_NAME GST_ARG_WITH_PACKAGE_NAME
GST_ARG_WITH_PACKAGE_ORIGIN GST_ARG_WITH_PACKAGE_ORIGIN
GST_ARG_VALGRIND
dnl *** checks for platform *** dnl *** checks for platform ***
...@@ -69,6 +70,9 @@ AC_PROG_CC ...@@ -69,6 +70,9 @@ AC_PROG_CC
AM_PROG_CC_STDC AM_PROG_CC_STDC
AS="${CC}" AS="${CC}"
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
dnl check for documentation tools dnl check for documentation tools
GTK_DOC_CHECK([1.3]) GTK_DOC_CHECK([1.3])
AS_PATH_PYTHON([2.1]) AS_PATH_PYTHON([2.1])
...@@ -95,6 +99,7 @@ dnl uninstalled is selected preferentially -- see pkg-config(1) ...@@ -95,6 +99,7 @@ dnl uninstalled is selected preferentially -- see pkg-config(1)
GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ]) GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ]) GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
GST_CHECK_GST_PLUGINS_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 *** dnl *** set variables based on configure arguments ***
...@@ -144,6 +149,11 @@ dnl whatevertarget_LIBS and -L flags here affect the rest of the linking ...@@ -144,6 +149,11 @@ dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS" GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
AC_SUBST(GST_PLUGIN_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 *** dnl *** configure external libs ***
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1, AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
...@@ -164,5 +174,7 @@ docs/version.entities ...@@ -164,5 +174,7 @@ docs/version.entities
docs/plugins/Makefile docs/plugins/Makefile
common/Makefile common/Makefile
common/m4/Makefile common/m4/Makefile
tests/Makefile
tests/check/Makefile
) )
AC_OUTPUT AC_OUTPUT
if HAVE_CHECK
SUBDIRS_CHECK = check
else
SUBDIRS_CHECK =
endif
SUBDIRS = $(SUBDIRS_CHECK)
DIST_SUBDIRS = check
test-registry.xml
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
.dirstamp
libavcodec-locking
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