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).
This commit is contained in:
Tim-Philipp Müller 2006-05-09 16:15:39 +00:00
parent ad8f6ddf85
commit 10e4f37d31
8 changed files with 77 additions and 2 deletions

View file

@ -1,3 +1,13 @@
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):

View file

@ -1,6 +1,7 @@
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

2
common

@ -1 +1 @@
Subproject commit 6b67aa6dd111fb139e1be0f6a386e3ff84cce091
Subproject commit e41606ab2c6a31be473de511b5fd776bd2593b56

View file

@ -51,6 +51,7 @@ dnl *** check for arguments to configure ***
GST_ARG_WITH_PACKAGE_NAME
GST_ARG_WITH_PACKAGE_ORIGIN
GST_ARG_VALGRIND
dnl *** checks for platform ***
@ -69,6 +70,9 @@ AC_PROG_CC
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])
@ -95,6 +99,7 @@ dnl uninstalled is selected preferentially -- see pkg-config(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 ***
@ -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"
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,
@ -164,5 +174,7 @@ docs/version.entities
docs/plugins/Makefile
common/Makefile
common/m4/Makefile
tests/Makefile
tests/check/Makefile
)
AC_OUTPUT

10
tests/Makefile.am Normal file
View file

@ -0,0 +1,10 @@
if HAVE_CHECK
SUBDIRS_CHECK = check
else
SUBDIRS_CHECK =
endif
SUBDIRS = $(SUBDIRS_CHECK)
DIST_SUBDIRS = check

1
tests/check/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
test-registry.xml

39
tests/check/Makefile.am Normal file
View file

@ -0,0 +1,39 @@
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

2
tests/check/generic/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.dirstamp
libavcodec-locking