From 10e4f37d31bf1941f2a24cfbed58236833b606c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 9 May 2006 16:15:39 +0000 Subject: 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). --- tests/Makefile.am | 10 ++++++++++ tests/check/.gitignore | 1 + tests/check/Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++ tests/check/generic/.gitignore | 2 ++ 4 files changed, 52 insertions(+) create mode 100644 tests/Makefile.am create mode 100644 tests/check/.gitignore create mode 100644 tests/check/Makefile.am create mode 100644 tests/check/generic/.gitignore (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..d458f18 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,10 @@ +if HAVE_CHECK +SUBDIRS_CHECK = check +else +SUBDIRS_CHECK = +endif + +SUBDIRS = $(SUBDIRS_CHECK) + +DIST_SUBDIRS = check + diff --git a/tests/check/.gitignore b/tests/check/.gitignore new file mode 100644 index 0000000..5d45c6c --- /dev/null +++ b/tests/check/.gitignore @@ -0,0 +1 @@ +test-registry.xml diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am new file mode 100644 index 0000000..9ec19de --- /dev/null +++ b/tests/check/Makefile.am @@ -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 diff --git a/tests/check/generic/.gitignore b/tests/check/generic/.gitignore new file mode 100644 index 0000000..36c1981 --- /dev/null +++ b/tests/check/generic/.gitignore @@ -0,0 +1,2 @@ +.dirstamp +libavcodec-locking -- cgit v1.2.1