commit 5cd73490f15e8fbf8cbc66b52bb353653524c7bb
parent 16f6a0bc587da46e3b702d04e67c24cb8ee697cc
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 6 Aug 2012 10:54:05 +0000
adding another test
Diffstat:
3 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
@@ -15,7 +15,9 @@ EXTRA_DIST = template_extractor.c \
testdata/ogg_courseclear.ogg \
testdata/gif_image.gif \
testdata/rpm_test.rpm \
- testdata/flac_kraftwerk.flac
+ testdata/flac_kraftwerk.flac \
+ testdata/mpeg_alien.mpg \
+ testdata/mpeg_melt.mpg
if HAVE_VORBISFILE
PLUGIN_OGG=libextractor_ogg.la
diff --git a/src/plugins/test_mpeg.c b/src/plugins/test_mpeg.c
@@ -73,10 +73,40 @@ main (int argc, char *argv[])
},
{ 0, 0, NULL, NULL, 0, -1 }
};
+ struct SolutionData alien_sol[] =
+ {
+ {
+ EXTRACTOR_METATYPE_MIMETYPE,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "video/mpeg",
+ strlen ("video/mpeg") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "320x240",
+ strlen ("320x240") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_FORMAT_VERSION,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "MPEG1",
+ strlen ("MPEG1") + 1,
+ 0
+ },
+ { 0, 0, NULL, NULL, 0, -1 }
+ };
struct ProblemSet ps[] =
{
{ "testdata/mpeg_melt.mpg",
melt_sol },
+ { "testdata/mpeg_alien.mpg",
+ alien_sol },
{ NULL, NULL }
};
return ET_main ("mpeg", ps);
diff --git a/src/plugins/testdata/mpeg_alien.mpg b/src/plugins/testdata/mpeg_alien.mpg
Binary files differ.