aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_archive.c')
-rw-r--r--src/plugins/test_archive.c63
1 files changed, 31 insertions, 32 deletions
diff --git a/src/plugins/test_archive.c b/src/plugins/test_archive.c
index a7a8c1d..a98c05e 100644
--- a/src/plugins/test_archive.c
+++ b/src/plugins/test_archive.c
@@ -36,41 +36,40 @@
36int 36int
37main (int argc, char *argv[]) 37main (int argc, char *argv[])
38{ 38{
39 struct SolutionData tar_archive_sol[] = 39 struct SolutionData tar_archive_sol[] = {
40 { 40 {
41 { 41 EXTRACTOR_METATYPE_FILENAME,
42 EXTRACTOR_METATYPE_FILENAME, 42 EXTRACTOR_METAFORMAT_UTF8,
43 EXTRACTOR_METAFORMAT_UTF8, 43 "text/plain",
44 "text/plain", 44 "test.html",
45 "test.html", 45 strlen ("test.html") + 1,
46 strlen ("test.html") + 1, 46 0
47 0 47 },
48 },
49 {
50 EXTRACTOR_METATYPE_FILENAME,
51 EXTRACTOR_METAFORMAT_UTF8,
52 "text/plain",
53 "test.jpg",
54 strlen ("test.jpg") + 1,
55 0
56 },
57 {
58 EXTRACTOR_METATYPE_FORMAT,
59 EXTRACTOR_METAFORMAT_UTF8,
60 "text/plain",
61 "GNU tar format",
62 strlen ("GNU tar format") + 1,
63 0
64 },
65 { 0, 0, NULL, NULL, 0, -1 }
66 };
67 struct ProblemSet ps[] =
68 { 48 {
69 { "testdata/archive_test.tar", 49 EXTRACTOR_METATYPE_FILENAME,
70 tar_archive_sol }, 50 EXTRACTOR_METAFORMAT_UTF8,
71 { NULL, NULL } 51 "text/plain",
72 }; 52 "test.jpg",
53 strlen ("test.jpg") + 1,
54 0
55 },
56 {
57 EXTRACTOR_METATYPE_FORMAT,
58 EXTRACTOR_METAFORMAT_UTF8,
59 "text/plain",
60 "GNU tar format",
61 strlen ("GNU tar format") + 1,
62 0
63 },
64 { 0, 0, NULL, NULL, 0, -1 }
65 };
66 struct ProblemSet ps[] = {
67 { "testdata/archive_test.tar",
68 tar_archive_sol },
69 { NULL, NULL }
70 };
73 return ET_main ("archive", ps); 71 return ET_main ("archive", ps);
74} 72}
75 73
74
76/* end of test_archive.c */ 75/* end of test_archive.c */