[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23312 - in Extractor/src/plugins: . testdata
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23312 - in Extractor/src/plugins: . testdata |
Date: |
Sun, 19 Aug 2012 21:00:31 +0200 |
Author: grothoff
Date: 2012-08-19 21:00:31 +0200 (Sun, 19 Aug 2012)
New Revision: 23312
Added:
Extractor/src/plugins/test_riff.c
Extractor/src/plugins/testdata/riff_flame.avi
Modified:
Extractor/src/plugins/Makefile.am
Log:
test for riff/ms-video/avi
Modified: Extractor/src/plugins/Makefile.am
===================================================================
--- Extractor/src/plugins/Makefile.am 2012-08-19 13:53:07 UTC (rev 23311)
+++ Extractor/src/plugins/Makefile.am 2012-08-19 19:00:31 UTC (rev 23312)
@@ -178,6 +178,7 @@
test_odf \
test_ps \
test_png \
+ test_riff \
test_s3m \
test_wav \
test_xm \
@@ -458,7 +459,12 @@
libextractor_riff_la_LDFLAGS = \
$(PLUGINFLAGS)
+test_riff_SOURCES = \
+ test_riff.c
+test_riff_LDADD = \
+ $(top_builddir)/src/plugins/libtest.la
+
libextractor_rpm_la_SOURCES = \
rpm_extractor.c
libextractor_rpm_la_LDFLAGS = \
Added: Extractor/src/plugins/test_riff.c
===================================================================
--- Extractor/src/plugins/test_riff.c (rev 0)
+++ Extractor/src/plugins/test_riff.c 2012-08-19 19:00:31 UTC (rev 23312)
@@ -0,0 +1,77 @@
+/*
+ This file is part of libextractor.
+ (C) 2012 Vidyut Samanta and Christian Grothoff
+
+ libextractor is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 3, or (at your
+ option) any later version.
+
+ libextractor is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with libextractor; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+/**
+ * @file plugins/test_riff.c
+ * @brief testcase for riff plugin
+ * @author Christian Grothoff
+ */
+#include "platform.h"
+#include "test_lib.h"
+
+
+
+/**
+ * Main function for the RIFF testcase.
+ *
+ * @param argc number of arguments (ignored)
+ * @param argv arguments (ignored)
+ * @return 0 on success
+ */
+int
+main (int argc, char *argv[])
+{
+ struct SolutionData riff_flame_sol[] =
+ {
+ {
+ EXTRACTOR_METATYPE_MIMETYPE,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "video/x-msvideo",
+ strlen ("video/x-msvideo") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_FORMAT,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "codec: cvid, 35 fps, 3143 ms",
+ strlen ("codec: cvid, 35 fps, 3143 ms") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "256x240",
+ strlen ("256x240") + 1,
+ 0
+ },
+ { 0, 0, NULL, NULL, 0, -1 }
+ };
+ struct ProblemSet ps[] =
+ {
+ { "testdata/riff_flame.avi",
+ riff_flame_sol },
+ { NULL, NULL }
+ };
+ return ET_main ("riff", ps);
+}
+
+/* end of test_riff.c */
Added: Extractor/src/plugins/testdata/riff_flame.avi
===================================================================
(Binary files differ)
Property changes on: Extractor/src/plugins/testdata/riff_flame.avi
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23312 - in Extractor/src/plugins: . testdata,
gnunet <=