blob: 642c9c97aed70d06efc0acb23806eb528d002ecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
## This file is part of dvisvgm
## Copyright (C) 2005-2018 Martin Gieseking <martin.gieseking@uos.de>
##
## Process this file with automake.
SUBDIRS = data
check_LTLIBRARIES = libgtest.la
libgtest_la_SOURCES = gtest/src/gtest-all.cc testmain.cpp
libgtest_la_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include -I$(top_srcdir)/tests/gtest
libgtest_la_LDFLAGS = -pthread
EXTRA_DIST = gtest/LICENSE \
gtest/include \
gtest/src/gtest.cc \
gtest/src/gtest-death-test.cc \
gtest/src/gtest-filepath.cc \
gtest/src/gtest-internal-inl.h \
gtest/src/gtest_main.cc \
gtest/src/gtest-port.cc \
gtest/src/gtest-printers.cc \
gtest/src/gtest-test-part.cc \
gtest/src/gtest-typed-test.cc
AM_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/libs/variant/include \
-Wall -Wno-mismatched-tags \
-DBUILDDIR='"$(abs_builddir)"' -DSRCDIR='"$(abs_srcdir)"' \
$(CODE_COVERAGE_CFLAGS)
TESTS = hashcheck
check_PROGRAMS = hashcheck
nodist_hashcheck_SOURCES = hashcheck.cpp
hashcheck_LDADD = ../libs/xxHash/libxxhash.a
hashcheck_CPPFLAGS = -I$(top_srcdir)/libs/xxHash
hashcheck.cpp: genhashcheck.py $(top_srcdir)/src/AGLTable.hpp $(top_srcdir)/libs/xxHash/xxhash.h
python $^ >$@
TESTLIBS = libgtest.la ../src/libdvisvgm.a ../libs/xxHash/libxxhash.a -lpotrace -lfreetype
if ENABLE_WOFF
TESTLIBS += \
../libs/ff-woff/libfontforge.a \
../libs/woff2/libwoff2.a \
../libs/brotli/libbrotli.a
endif
TESTLIBS += $(CODE_COVERAGE_LDFLAGS)
TESTS += BezierTest
check_PROGRAMS += BezierTest
BezierTest_SOURCES = BezierTest.cpp testutil.hpp
BezierTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
BezierTest_LDADD = $(TESTLIBS)
TESTS += BitmapTest
check_PROGRAMS += BitmapTest
BitmapTest_SOURCES = BitmapTest.cpp testutil.hpp
BitmapTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
BitmapTest_LDADD = $(TESTLIBS)
TESTS += BoundingBoxTest
check_PROGRAMS += BoundingBoxTest
BoundingBoxTest_SOURCES = BoundingBoxTest.cpp testutil.hpp
BoundingBoxTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
BoundingBoxTest_LDADD = $(TESTLIBS)
TESTS += CalculatorTest
check_PROGRAMS += CalculatorTest
CalculatorTest_SOURCES = CalculatorTest.cpp testutil.hpp
CalculatorTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CalculatorTest_LDADD = $(TESTLIBS)
TESTS += CMapManagerTest
check_PROGRAMS += CMapManagerTest
CMapManagerTest_SOURCES = CMapManagerTest.cpp testutil.hpp
CMapManagerTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CMapManagerTest_LDADD = $(TESTLIBS)
TESTS += CMapReaderTest
check_PROGRAMS += CMapReaderTest
CMapReaderTest_SOURCES = CMapReaderTest.cpp testutil.hpp
CMapReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CMapReaderTest_LDADD = $(TESTLIBS)
TESTS += CMapTest
check_PROGRAMS += CMapTest
CMapTest_SOURCES = CMapTest.cpp testutil.hpp
CMapTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CMapTest_LDADD = $(TESTLIBS)
TESTS += ColorSpecialTest
check_PROGRAMS += ColorSpecialTest
ColorSpecialTest_SOURCES = ColorSpecialTest.cpp testutil.hpp
ColorSpecialTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
ColorSpecialTest_LDADD = $(TESTLIBS)
TESTS += ColorTest
check_PROGRAMS += ColorTest
ColorTest_SOURCES = ColorTest.cpp testutil.hpp
ColorTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
ColorTest_LDADD = $(TESTLIBS)
TESTS += CommandLineTest
check_PROGRAMS += CommandLineTest
CommandLineTest_SOURCES = CommandLineTest.cpp testutil.hpp
CommandLineTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CommandLineTest_LDADD = $(TESTLIBS)
TESTS += CRC32Test
check_PROGRAMS += CRC32Test
CRC32Test_SOURCES = CRC32Test.cpp testutil.hpp
CRC32Test_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
CRC32Test_LDADD = $(TESTLIBS)
TESTS += DependencyGraphTest
check_PROGRAMS += DependencyGraphTest
DependencyGraphTest_SOURCES = DependencyGraphTest.cpp testutil.hpp
DependencyGraphTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
DependencyGraphTest_LDADD = $(TESTLIBS)
TESTS += DirectoryTest
check_PROGRAMS += DirectoryTest
DirectoryTest_SOURCES = DirectoryTest.cpp testutil.hpp
DirectoryTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
DirectoryTest_LDADD = $(TESTLIBS)
TESTS += DVIReaderTest
check_PROGRAMS += DVIReaderTest
DVIReaderTest_SOURCES = DVIReaderTest.cpp testutil.hpp
DVIReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
DVIReaderTest_LDADD = $(TESTLIBS)
TESTS += DvisvgmSpecialTest
check_PROGRAMS += DvisvgmSpecialTest
DvisvgmSpecialTest_SOURCES = DvisvgmSpecialTest.cpp testutil.hpp
DvisvgmSpecialTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
DvisvgmSpecialTest_LDADD = $(TESTLIBS)
TESTS += EmSpecialTest
check_PROGRAMS += EmSpecialTest
EmSpecialTest_SOURCES = EmSpecialTest.cpp testutil.hpp
EmSpecialTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
EmSpecialTest_LDADD = $(TESTLIBS)
TESTS += FileFinderTest
check_PROGRAMS += FileFinderTest
FileFinderTest_SOURCES = FileFinderTest.cpp testutil.hpp
FileFinderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FileFinderTest_LDADD = $(TESTLIBS)
TESTS += FilePathTest
check_PROGRAMS += FilePathTest
FilePathTest_SOURCES = FilePathTest.cpp testutil.hpp
FilePathTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FilePathTest_LDADD = $(TESTLIBS)
TESTS += FileSystemTest
check_PROGRAMS += FileSystemTest
FileSystemTest_SOURCES = FileSystemTest.cpp testutil.hpp
FileSystemTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FileSystemTest_LDADD = $(TESTLIBS)
TESTS += FontCacheTest
check_PROGRAMS += FontCacheTest
FontCacheTest_SOURCES = FontCacheTest.cpp testutil.hpp
FontCacheTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FontCacheTest_LDADD = $(TESTLIBS)
TESTS += FontManagerTest
check_PROGRAMS += FontManagerTest
FontManagerTest_SOURCES = FontManagerTest.cpp testutil.hpp
FontManagerTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FontManagerTest_LDADD = $(TESTLIBS)
TESTS += FontMapTest
check_PROGRAMS += FontMapTest
FontMapTest_SOURCES = FontMapTest.cpp testutil.hpp
FontMapTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
FontMapTest_LDADD = $(TESTLIBS)
TESTS += GFGlyphTracerTest
check_PROGRAMS += GFGlyphTracerTest
GFGlyphTracerTest_SOURCES = GFGlyphTracerTest.cpp testutil.hpp
GFGlyphTracerTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
GFGlyphTracerTest_LDADD = $(TESTLIBS)
TESTS += GFReaderTest
check_PROGRAMS += GFReaderTest
GFReaderTest_SOURCES = GFReaderTest.cpp testutil.hpp
GFReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
GFReaderTest_LDADD = $(TESTLIBS)
TESTS += GhostscriptTest
check_PROGRAMS += GhostscriptTest
GhostscriptTest_SOURCES = GhostscriptTest.cpp testutil.hpp
GhostscriptTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
GhostscriptTest_LDADD = $(TESTLIBS)
TESTS += GraphicsPathTest
check_PROGRAMS += GraphicsPathTest
GraphicsPathTest_SOURCES = GraphicsPathTest.cpp testutil.hpp
GraphicsPathTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
GraphicsPathTest_LDADD = $(TESTLIBS)
TESTS += JFMReaderTest
check_PROGRAMS += JFMReaderTest
JFMReaderTest_SOURCES = JFMReaderTest.cpp testutil.hpp
JFMReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
JFMReaderTest_LDADD = $(TESTLIBS)
TESTS += LengthTest
check_PROGRAMS += LengthTest
LengthTest_SOURCES = LengthTest.cpp testutil.hpp
LengthTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
LengthTest_LDADD = $(TESTLIBS)
TESTS += MapLineTest
check_PROGRAMS += MapLineTest
MapLineTest_SOURCES = MapLineTest.cpp testutil.hpp
MapLineTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
MapLineTest_LDADD = $(TESTLIBS)
TESTS += MatrixTest
check_PROGRAMS += MatrixTest
MatrixTest_SOURCES = MatrixTest.cpp testutil.hpp
MatrixTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
MatrixTest_LDADD = $(TESTLIBS)
TESTS += MessageExceptionTest
check_PROGRAMS += MessageExceptionTest
MessageExceptionTest_SOURCES = MessageExceptionTest.cpp testutil.hpp
MessageExceptionTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
MessageExceptionTest_LDADD = $(TESTLIBS)
TESTS += PageRagesTest
check_PROGRAMS += PageRagesTest
PageRagesTest_SOURCES = PageRagesTest.cpp testutil.hpp
PageRagesTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PageRagesTest_LDADD = $(TESTLIBS)
TESTS += PageSizeTest
check_PROGRAMS += PageSizeTest
PageSizeTest_SOURCES = PageSizeTest.cpp testutil.hpp
PageSizeTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PageSizeTest_LDADD = $(TESTLIBS)
TESTS += PairTest
check_PROGRAMS += PairTest
PairTest_SOURCES = PairTest.cpp testutil.hpp
PairTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PairTest_LDADD = $(TESTLIBS)
TESTS += PapersizeSpecialTest
check_PROGRAMS += PapersizeSpecialTest
PapersizeSpecialTest_SOURCES = PapersizeSpecialTest.cpp testutil.hpp
PapersizeSpecialTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PapersizeSpecialTest_LDADD = $(TESTLIBS)
TESTS += PDFParserTest
check_PROGRAMS += PDFParserTest
PDFParserTest_SOURCES = PDFParserTest.cpp testutil.hpp
PDFParserTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PDFParserTest_LDADD = $(TESTLIBS)
TESTS += PSInterpreterTest
check_PROGRAMS += PSInterpreterTest
PSInterpreterTest_SOURCES = PSInterpreterTest.cpp testutil.hpp
PSInterpreterTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
PSInterpreterTest_LDADD = $(TESTLIBS)
TESTS += RangeMapTest
check_PROGRAMS += RangeMapTest
RangeMapTest_SOURCES = RangeMapTest.cpp testutil.hpp
RangeMapTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
RangeMapTest_LDADD = $(TESTLIBS)
TESTS += ShadingPatchTest
check_PROGRAMS += ShadingPatchTest
ShadingPatchTest_SOURCES = ShadingPatchTest.cpp testutil.hpp
ShadingPatchTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
ShadingPatchTest_LDADD = $(TESTLIBS)
TESTS += SpecialManagerTest
check_PROGRAMS += SpecialManagerTest
SpecialManagerTest_SOURCES = SpecialManagerTest.cpp testutil.hpp
SpecialManagerTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
SpecialManagerTest_LDADD = $(TESTLIBS)
TESTS += SplittedCharInputBufferTest
check_PROGRAMS += SplittedCharInputBufferTest
SplittedCharInputBufferTest_SOURCES = SplittedCharInputBufferTest.cpp testutil.hpp
SplittedCharInputBufferTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
SplittedCharInputBufferTest_LDADD = $(TESTLIBS)
TESTS += StreamInputBufferTest
check_PROGRAMS += StreamInputBufferTest
StreamInputBufferTest_SOURCES = StreamInputBufferTest.cpp testutil.hpp
StreamInputBufferTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
StreamInputBufferTest_LDADD = $(TESTLIBS)
TESTS += StreamReaderTest
check_PROGRAMS += StreamReaderTest
StreamReaderTest_SOURCES = StreamReaderTest.cpp testutil.hpp
StreamReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
StreamReaderTest_LDADD = $(TESTLIBS)
TESTS += StreamWriterTest
check_PROGRAMS += StreamWriterTest
StreamWriterTest_SOURCES = StreamWriterTest.cpp testutil.hpp
StreamWriterTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
StreamWriterTest_LDADD = $(TESTLIBS)
TESTS += StringMatcherTest
check_PROGRAMS += StringMatcherTest
StringMatcherTest_SOURCES = StringMatcherTest.cpp testutil.hpp
StringMatcherTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
StringMatcherTest_LDADD = $(TESTLIBS)
TESTS += SubfontTest
check_PROGRAMS += SubfontTest
SubfontTest_SOURCES = SubfontTest.cpp testutil.hpp
SubfontTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
SubfontTest_LDADD = $(TESTLIBS)
TESTS += SVGOutputTest
check_PROGRAMS += SVGOutputTest
SVGOutputTest_SOURCES = SVGOutputTest.cpp testutil.hpp
SVGOutputTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
SVGOutputTest_LDADD = $(TESTLIBS)
TESTS += TensorProductPatchTest
check_PROGRAMS += TensorProductPatchTest
TensorProductPatchTest_SOURCES = TensorProductPatchTest.cpp testutil.hpp
TensorProductPatchTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
TensorProductPatchTest_LDADD = $(TESTLIBS)
TESTS += TFMReaderTest
check_PROGRAMS += TFMReaderTest
TFMReaderTest_SOURCES = TFMReaderTest.cpp testutil.hpp
TFMReaderTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
TFMReaderTest_LDADD = $(TESTLIBS)
TESTS += ToUnicodeMapTest
check_PROGRAMS += ToUnicodeMapTest
ToUnicodeMapTest_SOURCES = ToUnicodeMapTest.cpp testutil.hpp
ToUnicodeMapTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
ToUnicodeMapTest_LDADD = $(TESTLIBS)
TESTS += TpicSpecialTest
check_PROGRAMS += TpicSpecialTest
TpicSpecialTest_SOURCES = TpicSpecialTest.cpp testutil.hpp
TpicSpecialTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
TpicSpecialTest_LDADD = $(TESTLIBS)
TESTS += TriangularPatchTest
check_PROGRAMS += TriangularPatchTest
TriangularPatchTest_SOURCES = TriangularPatchTest.cpp testutil.hpp
TriangularPatchTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
TriangularPatchTest_LDADD = $(TESTLIBS)
TESTS += UnicodeTest
check_PROGRAMS += UnicodeTest
UnicodeTest_SOURCES = UnicodeTest.cpp testutil.hpp
UnicodeTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
UnicodeTest_LDADD = $(TESTLIBS)
TESTS += UtilityTest
check_PROGRAMS += UtilityTest
UtilityTest_SOURCES = UtilityTest.cpp testutil.hpp
UtilityTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
UtilityTest_LDADD = $(TESTLIBS)
TESTS += VectorIteratorTest
check_PROGRAMS += VectorIteratorTest
VectorIteratorTest_SOURCES = VectorIteratorTest.cpp testutil.hpp
VectorIteratorTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
VectorIteratorTest_LDADD = $(TESTLIBS)
TESTS += VectorStreamTest
check_PROGRAMS += VectorStreamTest
VectorStreamTest_SOURCES = VectorStreamTest.cpp testutil.hpp
VectorStreamTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
VectorStreamTest_LDADD = $(TESTLIBS)
TESTS += XMLNodeTest
check_PROGRAMS += XMLNodeTest
XMLNodeTest_SOURCES = XMLNodeTest.cpp testutil.hpp
XMLNodeTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
XMLNodeTest_LDADD = $(TESTLIBS)
TESTS += XMLStringTest
check_PROGRAMS += XMLStringTest
XMLStringTest_SOURCES = XMLStringTest.cpp testutil.hpp
XMLStringTest_CPPFLAGS = -I$(top_srcdir)/tests/gtest/include
XMLStringTest_LDADD = $(TESTLIBS)
EXTRA_DIST += check-conv genhashcheck.py normalize.xsl
TESTS += check-conv
@CODE_COVERAGE_RULES@
CLEANFILES = *.gcda *.gcno hashcheck.cpp
|