aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/test_dvi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/test_dvi.c')
-rw-r--r--src/plugins/test_dvi.c165
1 files changed, 85 insertions, 80 deletions
diff --git a/src/plugins/test_dvi.c b/src/plugins/test_dvi.c
index 9a5f27f..2ec364b 100644
--- a/src/plugins/test_dvi.c
+++ b/src/plugins/test_dvi.c
@@ -36,89 +36,94 @@
36int 36int
37main (int argc, char *argv[]) 37main (int argc, char *argv[])
38{ 38{
39 struct SolutionData dvi_ora_sol[] = 39 struct SolutionData dvi_ora_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/x-dvi",
45 "application/x-dvi", 45 strlen ("application/x-dvi") + 1,
46 strlen ("application/x-dvi") + 1, 46 0
47 0 47 },
48 },
49 {
50 EXTRACTOR_METATYPE_PAGE_COUNT,
51 EXTRACTOR_METAFORMAT_UTF8,
52 "text/plain",
53 "10",
54 strlen ("10") + 1,
55 0
56 },
57 {
58 EXTRACTOR_METATYPE_TITLE,
59 EXTRACTOR_METAFORMAT_C_STRING,
60 "text/plain",
61 "Optimal Bitwise Register Allocation using Integer Linear Programming",
62 strlen ("Optimal Bitwise Register Allocation using Integer Linear Programming") + 1,
63 0
64 },
65 {
66 EXTRACTOR_METATYPE_SUBJECT,
67 EXTRACTOR_METAFORMAT_C_STRING,
68 "text/plain",
69 "Register Allocation",
70 strlen ("Register Allocation") + 1,
71 0
72 },
73 {
74 EXTRACTOR_METATYPE_COMMENT,
75 EXTRACTOR_METAFORMAT_C_STRING,
76 "text/plain",
77 " TeX output 2005.02.06:0725",
78 strlen (" TeX output 2005.02.06:0725") + 1,
79 0
80 },
81 {
82 EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE,
83 EXTRACTOR_METAFORMAT_C_STRING,
84 "text/plain",
85 "LaTeX with hyperref package",
86 strlen ("LaTeX with hyperref package") + 1,
87 0
88 },
89 {
90 EXTRACTOR_METATYPE_AUTHOR_NAME,
91 EXTRACTOR_METAFORMAT_C_STRING,
92 "text/plain",
93 "Rajkishore Barik and Christian Grothoff and Rahul Gupta and Vinayaka Pandit and Raghavendra Udupa",
94 strlen ("Rajkishore Barik and Christian Grothoff and Rahul Gupta and Vinayaka Pandit and Raghavendra Udupa") + 1,
95 0
96 },
97 {
98 EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
99 EXTRACTOR_METAFORMAT_C_STRING,
100 "text/plain",
101 "dvips + Distiller",
102 strlen ("dvips + Distiller") + 1,
103 0
104 },
105 {
106 EXTRACTOR_METATYPE_KEYWORDS,
107 EXTRACTOR_METAFORMAT_C_STRING,
108 "text/plain",
109 "register allocation integer linear programming bit-wise spilling coalesing rematerialization",
110 strlen ("register allocation integer linear programming bit-wise spilling coalesing rematerialization") + 1,
111 0
112 },
113 { 0, 0, NULL, NULL, 0, -1 }
114 };
115 struct ProblemSet ps[] =
116 { 48 {
117 { "testdata/dvi_ora.dvi", 49 EXTRACTOR_METATYPE_PAGE_COUNT,
118 dvi_ora_sol }, 50 EXTRACTOR_METAFORMAT_UTF8,
119 { NULL, NULL } 51 "text/plain",
120 }; 52 "10",
53 strlen ("10") + 1,
54 0
55 },
56 {
57 EXTRACTOR_METATYPE_TITLE,
58 EXTRACTOR_METAFORMAT_C_STRING,
59 "text/plain",
60 "Optimal Bitwise Register Allocation using Integer Linear Programming",
61 strlen (
62 "Optimal Bitwise Register Allocation using Integer Linear Programming")
63 + 1,
64 0
65 },
66 {
67 EXTRACTOR_METATYPE_SUBJECT,
68 EXTRACTOR_METAFORMAT_C_STRING,
69 "text/plain",
70 "Register Allocation",
71 strlen ("Register Allocation") + 1,
72 0
73 },
74 {
75 EXTRACTOR_METATYPE_COMMENT,
76 EXTRACTOR_METAFORMAT_C_STRING,
77 "text/plain",
78 " TeX output 2005.02.06:0725",
79 strlen (" TeX output 2005.02.06:0725") + 1,
80 0
81 },
82 {
83 EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE,
84 EXTRACTOR_METAFORMAT_C_STRING,
85 "text/plain",
86 "LaTeX with hyperref package",
87 strlen ("LaTeX with hyperref package") + 1,
88 0
89 },
90 {
91 EXTRACTOR_METATYPE_AUTHOR_NAME,
92 EXTRACTOR_METAFORMAT_C_STRING,
93 "text/plain",
94 "Rajkishore Barik and Christian Grothoff and Rahul Gupta and Vinayaka Pandit and Raghavendra Udupa",
95 strlen (
96 "Rajkishore Barik and Christian Grothoff and Rahul Gupta and Vinayaka Pandit and Raghavendra Udupa")
97 + 1,
98 0
99 },
100 {
101 EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
102 EXTRACTOR_METAFORMAT_C_STRING,
103 "text/plain",
104 "dvips + Distiller",
105 strlen ("dvips + Distiller") + 1,
106 0
107 },
108 {
109 EXTRACTOR_METATYPE_KEYWORDS,
110 EXTRACTOR_METAFORMAT_C_STRING,
111 "text/plain",
112 "register allocation integer linear programming bit-wise spilling coalesing rematerialization",
113 strlen (
114 "register allocation integer linear programming bit-wise spilling coalesing rematerialization")
115 + 1,
116 0
117 },
118 { 0, 0, NULL, NULL, 0, -1 }
119 };
120 struct ProblemSet ps[] = {
121 { "testdata/dvi_ora.dvi",
122 dvi_ora_sol },
123 { NULL, NULL }
124 };
121 return ET_main ("dvi", ps); 125 return ET_main ("dvi", ps);
122} 126}
123 127
128
124/* end of test_dvi.c */ 129/* end of test_dvi.c */