commit 4f6615b7dbdb19e2c7a7075bc2060030508332a6
parent 64154b2a785c8b0b61d0fdb79deb3061cce4b095
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 4 Aug 2012 20:31:52 +0000
expanding mime test
Diffstat:
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
@@ -12,7 +12,8 @@ PLUGINFLAGS = $(makesymbolic) $(LE_PLUGIN_LDFLAGS)
SUBDIRS = .
EXTRA_DIST = template_extractor.c \
- testdata/courseclear.ogg
+ testdata/ogg_courseclear.ogg \
+ testdata/gif_image.gif
if HAVE_VORBISFILE
PLUGIN_OGG=libextractor_ogg.la
diff --git a/src/plugins/test_mime.c b/src/plugins/test_mime.c
@@ -49,10 +49,24 @@ main (int argc, char *argv[])
},
{ 0, 0, NULL, NULL, 0, -1 }
};
+ struct SolutionData gif_image_sol[] =
+ {
+ {
+ EXTRACTOR_METATYPE_MIMETYPE,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "image/gif",
+ strlen ("image/gif") + 1,
+ 0
+ },
+ { 0, 0, NULL, NULL, 0, -1 }
+ };
struct ProblemSet ps[] =
{
{ "testdata/ogg_courseclear.ogg",
courseclear_sol },
+ { "testdata/gif_image.gif",
+ gif_image_sol },
{ NULL, NULL }
};
return ET_main ("mime", ps);
diff --git a/src/plugins/testdata/gif_image.gif b/src/plugins/testdata/gif_image.gif
Binary files differ.