aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_man.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_man.c')
-rw-r--r--src/plugins/test_man.c80
1 files changed, 39 insertions, 41 deletions
diff --git a/src/plugins/test_man.c b/src/plugins/test_man.c
index 026a6ce..73b02fc 100644
--- a/src/plugins/test_man.c
+++ b/src/plugins/test_man.c
@@ -26,7 +26,6 @@
26#include "test_lib.h" 26#include "test_lib.h"
27 27
28 28
29
30/** 29/**
31 * Main function for the MAN testcase. 30 * Main function for the MAN testcase.
32 * 31 *
@@ -37,49 +36,48 @@
37int 36int
38main (int argc, char *argv[]) 37main (int argc, char *argv[])
39{ 38{
40 struct SolutionData man_extract_sol[] = 39 struct SolutionData man_extract_sol[] = {
40 {
41 EXTRACTOR_METATYPE_TITLE,
42 EXTRACTOR_METAFORMAT_UTF8,
43 "text/plain",
44 "EXTRACT",
45 strlen ("EXTRACT") + 1,
46 0
47 },
41 { 48 {
42 { 49 EXTRACTOR_METATYPE_SECTION,
43 EXTRACTOR_METATYPE_TITLE, 50 EXTRACTOR_METAFORMAT_UTF8,
44 EXTRACTOR_METAFORMAT_UTF8, 51 "text/plain",
45 "text/plain", 52 _ ("Commands"),
46 "EXTRACT", 53 strlen (_ ("Commands")) + 1,
47 strlen ("EXTRACT") + 1, 54 0
48 0 55 },
49 },
50 {
51 EXTRACTOR_METATYPE_SECTION,
52 EXTRACTOR_METAFORMAT_UTF8,
53 "text/plain",
54 _("Commands"),
55 strlen (_("Commands")) + 1,
56 0
57 },
58 {
59 EXTRACTOR_METATYPE_MODIFICATION_DATE,
60 EXTRACTOR_METAFORMAT_UTF8,
61 "text/plain",
62 "Aug 7, 2012",
63 strlen ("Aug 7, 2012") + 1,
64 0
65 },
66 {
67 EXTRACTOR_METATYPE_SOURCE,
68 EXTRACTOR_METAFORMAT_UTF8,
69 "text/plain",
70 _("libextractor 0.7.0"),
71 strlen (_("libextractor 0.7.0")) + 1,
72 0
73 },
74 { 0, 0, NULL, NULL, 0, -1 }
75 };
76 struct ProblemSet ps[] =
77 { 56 {
78 { "testdata/man_extract.1", 57 EXTRACTOR_METATYPE_MODIFICATION_DATE,
79 man_extract_sol }, 58 EXTRACTOR_METAFORMAT_UTF8,
80 { NULL, NULL } 59 "text/plain",
81 }; 60 "Aug 7, 2012",
61 strlen ("Aug 7, 2012") + 1,
62 0
63 },
64 {
65 EXTRACTOR_METATYPE_SOURCE,
66 EXTRACTOR_METAFORMAT_UTF8,
67 "text/plain",
68 _ ("libextractor 0.7.0"),
69 strlen (_ ("libextractor 0.7.0")) + 1,
70 0
71 },
72 { 0, 0, NULL, NULL, 0, -1 }
73 };
74 struct ProblemSet ps[] = {
75 { "testdata/man_extract.1",
76 man_extract_sol },
77 { NULL, NULL }
78 };
82 return ET_main ("man", ps); 79 return ET_main ("man", ps);
83} 80}
84 81
82
85/* end of test_man.c */ 83/* end of test_man.c */