]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/cpp/test/Makefile.am
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / cpp / test / Makefile.am
1 #
2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
17 # under the License.
18 #
19 AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
20
21 BUILT_SOURCES = gen-cpp/AnnotationTest_types.h \
22 gen-cpp/DebugProtoTest_types.h \
23 gen-cpp/EnumTest_types.h \
24 gen-cpp/OptionalRequiredTest_types.h \
25 gen-cpp/Recursive_types.h \
26 gen-cpp/ThriftTest_types.h \
27 gen-cpp/TypedefTest_types.h \
28 gen-cpp/ChildService.h \
29 gen-cpp/EmptyService.h \
30 gen-cpp/ParentService.h \
31 gen-cpp/OneWayTest_types.h \
32 gen-cpp/OneWayService.h \
33 gen-cpp/OneWayTest_constants.h \
34 gen-cpp/proc_types.h
35
36 noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
37 nodist_libtestgencpp_la_SOURCES = \
38 gen-cpp/AnnotationTest_types.cpp \
39 gen-cpp/AnnotationTest_types.h \
40 gen-cpp/DebugProtoTest_types.cpp \
41 gen-cpp/DebugProtoTest_types.h \
42 gen-cpp/DoubleConstantsTest_constants.cpp \
43 gen-cpp/DoubleConstantsTest_constants.h \
44 gen-cpp/EnumTest_types.cpp \
45 gen-cpp/EnumTest_types.h \
46 gen-cpp/OptionalRequiredTest_types.cpp \
47 gen-cpp/OptionalRequiredTest_types.h \
48 gen-cpp/Recursive_types.cpp \
49 gen-cpp/Recursive_types.h \
50 gen-cpp/ThriftTest_types.cpp \
51 gen-cpp/ThriftTest_types.h \
52 gen-cpp/ThriftTest_constants.cpp \
53 gen-cpp/ThriftTest_constants.h \
54 gen-cpp/TypedefTest_types.cpp \
55 gen-cpp/TypedefTest_types.h \
56 gen-cpp/OneWayService.cpp \
57 gen-cpp/OneWayTest_constants.cpp \
58 gen-cpp/OneWayTest_types.h \
59 gen-cpp/OneWayService.h \
60 gen-cpp/OneWayTest_constants.h \
61 gen-cpp/OneWayTest_types.cpp \
62 ThriftTest_extras.cpp \
63 DebugProtoTest_extras.cpp
64
65 nodist_libprocessortest_la_SOURCES = \
66 gen-cpp/ChildService.cpp \
67 gen-cpp/ChildService.h \
68 gen-cpp/EmptyService.cpp \
69 gen-cpp/EmptyService.h \
70 gen-cpp/ParentService.cpp \
71 gen-cpp/ParentService.h \
72 gen-cpp/proc_types.cpp \
73 gen-cpp/proc_types.h
74
75 ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
76 DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
77
78 libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
79
80 noinst_PROGRAMS = Benchmark \
81 concurrency_test
82
83 Benchmark_SOURCES = \
84 Benchmark.cpp
85
86 Benchmark_LDADD = libtestgencpp.la
87
88 check_PROGRAMS = \
89 UnitTests \
90 TFDTransportTest \
91 TPipedTransportTest \
92 DebugProtoTest \
93 JSONProtoTest \
94 OptionalRequiredTest \
95 RecursiveTest \
96 SpecializationTest \
97 AllProtocolsTest \
98 TransportTest \
99 TInterruptTest \
100 TServerIntegrationTest \
101 SecurityTest \
102 ZlibTest \
103 TFileTransportTest \
104 link_test \
105 OpenSSLManualInitTest \
106 EnumTest \
107 RenderedDoubleConstantsTest \
108 AnnotationTest
109
110 if AMX_HAVE_LIBEVENT
111 noinst_PROGRAMS += \
112 processor_test
113 check_PROGRAMS += \
114 TNonblockingServerTest \
115 TNonblockingSSLServerTest
116 endif
117
118 TESTS_ENVIRONMENT= \
119 BOOST_TEST_LOG_SINK=tests.xml \
120 BOOST_TEST_LOG_LEVEL=test_suite \
121 BOOST_TEST_LOG_FORMAT=XML
122
123 TESTS = \
124 $(check_PROGRAMS)
125
126 UnitTests_SOURCES = \
127 UnitTestMain.cpp \
128 OneWayHTTPTest.cpp \
129 TMemoryBufferTest.cpp \
130 TBufferBaseTest.cpp \
131 Base64Test.cpp \
132 ToStringTest.cpp \
133 TypedefTest.cpp \
134 TServerSocketTest.cpp \
135 TServerTransportTest.cpp \
136 TTransportCheckThrow.h
137
138 UnitTests_LDADD = \
139 libtestgencpp.la \
140 $(BOOST_TEST_LDADD) \
141 $(BOOST_SYSTEM_LDADD) \
142 $(BOOST_THREAD_LDADD)
143
144 TInterruptTest_SOURCES = \
145 TSocketInterruptTest.cpp \
146 TSSLSocketInterruptTest.cpp
147
148 TInterruptTest_LDADD = \
149 libtestgencpp.la \
150 $(BOOST_TEST_LDADD) \
151 $(BOOST_FILESYSTEM_LDADD) \
152 $(BOOST_CHRONO_LDADD) \
153 $(BOOST_SYSTEM_LDADD) \
154 $(BOOST_THREAD_LDADD)
155
156 TServerIntegrationTest_SOURCES = \
157 TServerIntegrationTest.cpp
158
159 TServerIntegrationTest_LDADD = \
160 libtestgencpp.la \
161 libprocessortest.la \
162 $(BOOST_TEST_LDADD) \
163 $(BOOST_SYSTEM_LDADD) \
164 $(BOOST_THREAD_LDADD)
165
166 SecurityTest_SOURCES = \
167 SecurityTest.cpp
168
169 SecurityTest_LDADD = \
170 libtestgencpp.la \
171 libprocessortest.la \
172 $(BOOST_TEST_LDADD) \
173 $(BOOST_FILESYSTEM_LDADD) \
174 $(BOOST_SYSTEM_LDADD) \
175 $(BOOST_THREAD_LDADD)
176
177 TransportTest_SOURCES = \
178 TransportTest.cpp
179
180 TransportTest_LDADD = \
181 libtestgencpp.la \
182 $(top_builddir)/lib/cpp/libthriftz.la \
183 $(BOOST_TEST_LDADD) \
184 -lz
185
186 ZlibTest_SOURCES = \
187 ZlibTest.cpp
188
189 ZlibTest_LDADD = \
190 libtestgencpp.la \
191 $(top_builddir)/lib/cpp/libthriftz.la \
192 $(BOOST_TEST_LDADD) \
193 -lz
194
195 EnumTest_SOURCES = \
196 EnumTest.cpp
197
198 EnumTest_LDADD = \
199 libtestgencpp.la \
200 $(BOOST_TEST_LDADD)
201
202 RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
203
204 RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
205
206 AnnotationTest_SOURCES = \
207 AnnotationTest.cpp
208
209 AnnotationTest_LDADD = \
210 libtestgencpp.la \
211 $(BOOST_TEST_LDADD)
212
213 TFileTransportTest_SOURCES = \
214 TFileTransportTest.cpp
215
216 TFileTransportTest_LDADD = \
217 libtestgencpp.la \
218 $(BOOST_TEST_LDADD)
219
220 #
221 # TFDTransportTest
222 #
223 TFDTransportTest_SOURCES = \
224 TFDTransportTest.cpp
225
226 TFDTransportTest_LDADD = \
227 $(top_builddir)/lib/cpp/libthrift.la \
228 $(BOOST_TEST_LDADD)
229
230
231 #
232 # TPipedTransportTest
233 #
234 TPipedTransportTest_SOURCES = \
235 TPipedTransportTest.cpp \
236 TPipeInterruptTest.cpp
237
238 TPipedTransportTest_LDADD = \
239 libtestgencpp.la \
240 $(top_builddir)/lib/cpp/libthrift.la \
241 $(BOOST_TEST_LDADD) \
242 $(BOOST_SYSTEM_LDADD) \
243 $(BOOST_THREAD_LDADD)
244
245 #
246 # AllProtocolsTest
247 #
248 AllProtocolsTest_SOURCES = \
249 AllProtocolTests.cpp \
250 AllProtocolTests.tcc \
251 GenericHelpers.h
252
253 AllProtocolsTest_LDADD = \
254 libtestgencpp.la \
255 $(BOOST_TEST_LDADD)
256
257 #
258 # DebugProtoTest
259 #
260 DebugProtoTest_SOURCES = \
261 DebugProtoTest.cpp
262
263 DebugProtoTest_LDADD = \
264 libtestgencpp.la \
265 $(BOOST_TEST_LDADD)
266
267
268 #
269 # JSONProtoTest
270 #
271 JSONProtoTest_SOURCES = \
272 JSONProtoTest.cpp
273
274 JSONProtoTest_LDADD = \
275 libtestgencpp.la \
276 $(BOOST_TEST_LDADD)
277
278 #
279 # TNonblockingServerTest
280 #
281 TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
282
283 TNonblockingServerTest_LDADD = libprocessortest.la \
284 $(top_builddir)/lib/cpp/libthrift.la \
285 $(top_builddir)/lib/cpp/libthriftnb.la \
286 $(BOOST_TEST_LDADD) \
287 $(BOOST_LDFLAGS) \
288 $(LIBEVENT_LIBS)
289 #
290 # TNonblockingSSLServerTest
291 #
292 TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
293
294 TNonblockingSSLServerTest_LDADD = libprocessortest.la \
295 $(top_builddir)/lib/cpp/libthrift.la \
296 $(top_builddir)/lib/cpp/libthriftnb.la \
297 $(BOOST_TEST_LDADD) \
298 $(BOOST_LDFLAGS) \
299 $(BOOST_FILESYSTEM_LDADD) \
300 $(BOOST_CHRONO_LDADD) \
301 $(BOOST_SYSTEM_LDADD) \
302 $(BOOST_THREAD_LDADD) \
303 $(LIBEVENT_LIBS)
304
305 #
306 # OptionalRequiredTest
307 #
308 OptionalRequiredTest_SOURCES = \
309 OptionalRequiredTest.cpp
310
311 OptionalRequiredTest_LDADD = \
312 libtestgencpp.la \
313 $(BOOST_TEST_LDADD)
314
315 #
316 # OptionalRequiredTest
317 #
318 RecursiveTest_SOURCES = \
319 RecursiveTest.cpp
320
321 RecursiveTest_LDADD = \
322 libtestgencpp.la \
323 $(BOOST_TEST_LDADD)
324
325 #
326 # SpecializationTest
327 #
328 SpecializationTest_SOURCES = \
329 SpecializationTest.cpp
330
331 SpecializationTest_LDADD = \
332 libtestgencpp.la \
333 $(BOOST_TEST_LDADD)
334
335 concurrency_test_SOURCES = \
336 concurrency/Tests.cpp \
337 concurrency/ThreadFactoryTests.h \
338 concurrency/ThreadManagerTests.h \
339 concurrency/TimerManagerTests.h
340
341 concurrency_test_LDADD = \
342 $(top_builddir)/lib/cpp/libthrift.la
343
344 link_test_SOURCES = \
345 link/LinkTest.cpp \
346 link/TemplatedService1.cpp \
347 link/TemplatedService2.cpp
348
349 processor_test_SOURCES = \
350 processor/ProcessorTest.cpp \
351 processor/EventLog.cpp \
352 processor/ServerThread.cpp \
353 processor/EventLog.h \
354 processor/Handlers.h \
355 processor/ServerThread.h
356
357 processor_test_LDADD = libprocessortest.la \
358 $(top_builddir)/lib/cpp/libthrift.la \
359 $(top_builddir)/lib/cpp/libthriftnb.la \
360 $(BOOST_TEST_LDADD) \
361 $(BOOST_LDFLAGS) \
362 $(LIBEVENT_LIBS)
363
364 OpenSSLManualInitTest_SOURCES = \
365 OpenSSLManualInitTest.cpp
366
367 OpenSSLManualInitTest_LDADD = \
368 $(top_builddir)/lib/cpp/libthrift.la \
369 $(BOOST_TEST_LDADD) \
370 $(OPENSSL_LDFLAGS) \
371 $(OPENSSL_LIBS)
372
373 #
374 # Common thrift code generation rules
375 #
376
377 gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
378 $(THRIFT) --gen cpp $<
379
380 gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h gen-cpp/EmptyService.cpp gen-cpp/EmptyService.h: $(top_srcdir)/test/DebugProtoTest.thrift
381 $(THRIFT) --gen cpp $<
382
383 gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
384 $(THRIFT) --gen cpp $<
385
386
387 gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
388 $(THRIFT) --gen cpp $<
389
390 gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
391 $(THRIFT) --gen cpp $<
392
393 gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
394 $(THRIFT) --gen cpp $<
395
396 gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
397 $(THRIFT) --gen cpp $<
398
399 gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
400 $(THRIFT) --gen cpp $<
401
402 gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: $(top_srcdir)/test/ThriftTest.thrift
403 $(THRIFT) --gen cpp $<
404
405 gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_constants.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h gen-cpp/OneWayTest_constants.h gen-cpp/OneWayTest_types.cpp: OneWayTest.thrift
406 $(THRIFT) --gen cpp $<
407
408 gen-cpp/ChildService.cpp gen-cpp/ChildService.h gen-cpp/ParentService.cpp gen-cpp/ParentService.h gen-cpp/proc_types.cpp gen-cpp/proc_types.h: processor/proc.thrift
409 $(THRIFT) --gen cpp:templates,cob_style $<
410
411 AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -I$(top_srcdir)/lib/cpp/src/thrift -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I.
412 AM_LDFLAGS = $(BOOST_LDFLAGS)
413 AM_CXXFLAGS = -Wall -Wextra -pedantic
414
415 clean-local:
416 $(RM) gen-cpp/*
417
418 EXTRA_DIST = \
419 concurrency \
420 processor \
421 qt \
422 CMakeLists.txt \
423 DebugProtoTest_extras.cpp \
424 ThriftTest_extras.cpp \
425 OneWayTest.thrift