tests: add test data for mpg123 plugin
authorTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 10:55:01 +0000 (10:55 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 10:59:12 +0000 (10:59 +0000)
configure.ac
tests/Makefile.am
tests/check/Makefile.am
tests/check/elements/.gitignore
tests/files/Makefile.am [new file with mode: 0644]
tests/files/cbr_stream.mp3 [new file with mode: 0644]
tests/files/vbr_stream.mp3 [new file with mode: 0644]

index d30c73a..a2f09b6 100644 (file)
@@ -470,6 +470,7 @@ docs/plugins/Makefile
 docs/version.entities
 tests/Makefile
 tests/check/Makefile
+tests/files/Makefile
 m4/Makefile
 po/Makefile.in
 pkgconfig/Makefile
index dfe3b5a..d2b11ab 100644 (file)
@@ -4,6 +4,6 @@ else
 SUBDIRS_CHECK =
 endif
 
-SUBDIRS = $(SUBDIRS_CHECK)
+SUBDIRS = $(SUBDIRS_CHECK) files
 
-DIST_SUBDIRS = check
+DIST_SUBDIRS = check files
index 552558b..98d1232 100644 (file)
@@ -1,6 +1,7 @@
 include $(top_srcdir)/common/check.mak
 
 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
+TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
 
 REGISTRY_ENVIRONMENT = \
        GST_REGISTRY_1_0=$(CHECK_REGISTRY)
@@ -65,6 +66,7 @@ noinst_HEADERS = elements/xingmux_testdata.h
 
 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
        -DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_PLUGIN_LOADING_WHITELIST\"" \
+       -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
        -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
 
index c2c4108..801da46 100644 (file)
@@ -1,5 +1,6 @@
 amrnbenc
 mpeg2dec
+mpg123audiodec
 x264enc
 xingmux
 .dirstamp
diff --git a/tests/files/Makefile.am b/tests/files/Makefile.am
new file mode 100644 (file)
index 0000000..2807612
--- /dev/null
@@ -0,0 +1,7 @@
+EXTRA_DIST = \
+       barcode.png \
+       blue-square.png \
+       cbr_stream.mp3 \
+       s16be-id3v2.aiff \
+       stream.mp2 \
+       vbr_stream.mp3
diff --git a/tests/files/cbr_stream.mp3 b/tests/files/cbr_stream.mp3
new file mode 100644 (file)
index 0000000..b1a5c43
Binary files /dev/null and b/tests/files/cbr_stream.mp3 differ
diff --git a/tests/files/vbr_stream.mp3 b/tests/files/vbr_stream.mp3
new file mode 100644 (file)
index 0000000..81fc38b
Binary files /dev/null and b/tests/files/vbr_stream.mp3 differ