aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_zip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_zip.c')
-rw-r--r--src/plugins/test_zip.c127
1 files changed, 63 insertions, 64 deletions
diff --git a/src/plugins/test_zip.c b/src/plugins/test_zip.c
index 92e94c9..1ef52d9 100644
--- a/src/plugins/test_zip.c
+++ b/src/plugins/test_zip.c
@@ -36,73 +36,72 @@
36int 36int
37main (int argc, char *argv[]) 37main (int argc, char *argv[])
38{ 38{
39 struct SolutionData zip_test_sol[] = 39 struct SolutionData zip_test_sol[] = {
40 { 40 {
41 { 41 EXTRACTOR_METATYPE_MIMETYPE,
42 EXTRACTOR_METATYPE_MIMETYPE, 42 EXTRACTOR_METAFORMAT_UTF8,
43 EXTRACTOR_METAFORMAT_UTF8, 43 "text/plain",
44 "text/plain", 44 "application/zip",
45 "application/zip", 45 strlen ("application/zip") + 1,
46 strlen ("application/zip") + 1, 46 0
47 0 47 },
48 },
49 {
50 EXTRACTOR_METATYPE_COMMENT,
51 EXTRACTOR_METAFORMAT_C_STRING,
52 "text/plain",
53 "global zipfile comment",
54 strlen ("global zipfile comment") + 1,
55 0
56 },
57 {
58 EXTRACTOR_METATYPE_FILENAME,
59 EXTRACTOR_METAFORMAT_C_STRING,
60 "text/plain",
61 "ChangeLog",
62 strlen ("ChangeLog") + 1,
63 0
64 },
65 {
66 EXTRACTOR_METATYPE_FILENAME,
67 EXTRACTOR_METAFORMAT_C_STRING,
68 "text/plain",
69 "test.png",
70 strlen ("test.png") + 1,
71 0
72 },
73 {
74 EXTRACTOR_METATYPE_COMMENT,
75 EXTRACTOR_METAFORMAT_C_STRING,
76 "text/plain",
77 "comment for test.png",
78 strlen ("comment for test.png") + 1,
79 0
80 },
81 {
82 EXTRACTOR_METATYPE_FILENAME,
83 EXTRACTOR_METAFORMAT_C_STRING,
84 "text/plain",
85 "test.jpg",
86 strlen ("test.jpg") + 1,
87 0
88 },
89 {
90 EXTRACTOR_METATYPE_COMMENT,
91 EXTRACTOR_METAFORMAT_C_STRING,
92 "text/plain",
93 "comment for test.jpg",
94 strlen ("comment for test.jpg") + 1,
95 0
96 },
97 { 0, 0, NULL, NULL, 0, -1 }
98 };
99 struct ProblemSet ps[] =
100 { 48 {
101 { "testdata/zip_test.zip", 49 EXTRACTOR_METATYPE_COMMENT,
102 zip_test_sol }, 50 EXTRACTOR_METAFORMAT_C_STRING,
103 { NULL, NULL } 51 "text/plain",
104 }; 52 "global zipfile comment",
53 strlen ("global zipfile comment") + 1,
54 0
55 },
56 {
57 EXTRACTOR_METATYPE_FILENAME,
58 EXTRACTOR_METAFORMAT_C_STRING,
59 "text/plain",
60 "ChangeLog",
61 strlen ("ChangeLog") + 1,
62 0
63 },
64 {
65 EXTRACTOR_METATYPE_FILENAME,
66 EXTRACTOR_METAFORMAT_C_STRING,
67 "text/plain",
68 "test.png",
69 strlen ("test.png") + 1,
70 0
71 },
72 {
73 EXTRACTOR_METATYPE_COMMENT,
74 EXTRACTOR_METAFORMAT_C_STRING,
75 "text/plain",
76 "comment for test.png",
77 strlen ("comment for test.png") + 1,
78 0
79 },
80 {
81 EXTRACTOR_METATYPE_FILENAME,
82 EXTRACTOR_METAFORMAT_C_STRING,
83 "text/plain",
84 "test.jpg",
85 strlen ("test.jpg") + 1,
86 0
87 },
88 {
89 EXTRACTOR_METATYPE_COMMENT,
90 EXTRACTOR_METAFORMAT_C_STRING,
91 "text/plain",
92 "comment for test.jpg",
93 strlen ("comment for test.jpg") + 1,
94 0
95 },
96 { 0, 0, NULL, NULL, 0, -1 }
97 };
98 struct ProblemSet ps[] = {
99 { "testdata/zip_test.zip",
100 zip_test_sol },
101 { NULL, NULL }
102 };
105 return ET_main ("zip", ps); 103 return ET_main ("zip", ps);
106} 104}
107 105
106
108/* end of test_zip.c */ 107/* end of test_zip.c */