summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-05-09 16:15:39 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-05-09 16:15:39 +0000
commit10e4f37d31bf1941f2a24cfbed58236833b606c2 (patch)
treec93bfcf717aab837735ee85960a0db916828c20e /tests
parentad8f6ddf855596dc41626505151095accc27ae56 (diff)
downloadgst-libav-10e4f37d31bf1941f2a24cfbed58236833b606c2.tar.gz
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).
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am10
-rw-r--r--tests/check/.gitignore1
-rw-r--r--tests/check/Makefile.am39
-rw-r--r--tests/check/generic/.gitignore2
4 files changed, 52 insertions, 0 deletions
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