David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 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 | # |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests |
| 20 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 21 | BUILT_SOURCES = gen-cpp/AnnotationTest_types.h \ |
| 22 | gen-cpp/DebugProtoTest_types.h \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 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 \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 29 | gen-cpp/EmptyService.h \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 30 | gen-cpp/ParentService.h \ |
| 31 | gen-cpp/proc_types.h |
| 32 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 33 | noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 34 | nodist_libtestgencpp_la_SOURCES = \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 35 | gen-cpp/AnnotationTest_types.cpp \ |
| 36 | gen-cpp/AnnotationTest_types.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 37 | gen-cpp/DebugProtoTest_types.cpp \ |
| 38 | gen-cpp/DebugProtoTest_types.h \ |
| 39 | gen-cpp/EnumTest_types.cpp \ |
| 40 | gen-cpp/EnumTest_types.h \ |
| 41 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 42 | gen-cpp/OptionalRequiredTest_types.h \ |
| 43 | gen-cpp/Recursive_types.cpp \ |
| 44 | gen-cpp/Recursive_types.h \ |
| 45 | gen-cpp/ThriftTest_types.cpp \ |
| 46 | gen-cpp/ThriftTest_types.h \ |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 47 | gen-cpp/ThriftTest_constants.cpp \ |
| 48 | gen-cpp/ThriftTest_constants.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 49 | gen-cpp/TypedefTest_types.cpp \ |
| 50 | gen-cpp/TypedefTest_types.h \ |
| 51 | ThriftTest_extras.cpp \ |
| 52 | DebugProtoTest_extras.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 53 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 54 | nodist_libprocessortest_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 55 | gen-cpp/ChildService.cpp \ |
| 56 | gen-cpp/ChildService.h \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 57 | gen-cpp/EmptyService.cpp \ |
| 58 | gen-cpp/EmptyService.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 59 | gen-cpp/ParentService.cpp \ |
| 60 | gen-cpp/ParentService.h \ |
| 61 | gen-cpp/proc_types.cpp \ |
| 62 | gen-cpp/proc_types.h |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 63 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 64 | ThriftTest_extras.o: gen-cpp/ThriftTest_types.h |
| 65 | DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h |
| 66 | |
| 67 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 68 | |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 69 | noinst_PROGRAMS = Benchmark \ |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 70 | concurrency_test |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 71 | |
| 72 | Benchmark_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 73 | Benchmark.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 74 | |
| 75 | Benchmark_LDADD = libtestgencpp.la |
| 76 | |
| 77 | check_PROGRAMS = \ |
Roger Meier | 0114455 | 2015-04-04 16:14:08 +0200 | [diff] [blame] | 78 | UnitTests \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 79 | TFDTransportTest \ |
| 80 | TPipedTransportTest \ |
| 81 | DebugProtoTest \ |
| 82 | JSONProtoTest \ |
| 83 | OptionalRequiredTest \ |
| 84 | RecursiveTest \ |
| 85 | SpecializationTest \ |
| 86 | AllProtocolsTest \ |
| 87 | TransportTest \ |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 88 | TInterruptTest \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 89 | TServerIntegrationTest \ |
Jim King | b0b710a | 2015-07-28 13:31:27 -0400 | [diff] [blame] | 90 | SecurityTest \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 91 | ZlibTest \ |
| 92 | TFileTransportTest \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 93 | link_test \ |
| 94 | OpenSSLManualInitTest \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 95 | EnumTest \ |
| 96 | AnnotationTest |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 97 | |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 98 | if AMX_HAVE_LIBEVENT |
Nobuaki Sukegawa | 208738a | 2015-02-01 00:27:22 +0900 | [diff] [blame] | 99 | noinst_PROGRAMS += \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 100 | processor_test |
| 101 | check_PROGRAMS += \ |
| 102 | TNonblockingServerTest |
| 103 | endif |
| 104 | |
Roger Meier | 9e0f074 | 2011-08-03 17:36:55 +0000 | [diff] [blame] | 105 | TESTS_ENVIRONMENT= \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 106 | BOOST_TEST_LOG_SINK=tests.xml \ |
| 107 | BOOST_TEST_LOG_LEVEL=test_suite \ |
Nobuaki Sukegawa | 3d600bf | 2016-01-23 22:45:20 +0900 | [diff] [blame] | 108 | BOOST_TEST_LOG_FORMAT=XML |
Roger Meier | 9e0f074 | 2011-08-03 17:36:55 +0000 | [diff] [blame] | 109 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 110 | TESTS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 111 | $(check_PROGRAMS) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 112 | |
| 113 | UnitTests_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 114 | UnitTestMain.cpp \ |
| 115 | TMemoryBufferTest.cpp \ |
| 116 | TBufferBaseTest.cpp \ |
| 117 | Base64Test.cpp \ |
| 118 | ToStringTest.cpp \ |
Roger Meier | 0114455 | 2015-04-04 16:14:08 +0200 | [diff] [blame] | 119 | TypedefTest.cpp \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 120 | TServerSocketTest.cpp \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 121 | TServerTransportTest.cpp \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 122 | TTransportCheckThrow.h |
Roger Meier | 12d7053 | 2011-12-14 23:35:28 +0000 | [diff] [blame] | 123 | |
| 124 | if !WITH_BOOSTTHREADS |
| 125 | UnitTests_SOURCES += \ |
James E. King, III | 00d4252 | 2017-04-04 09:32:45 -0400 | [diff] [blame^] | 126 | concurrency/MutexTest.cpp \ |
| 127 | concurrency/RWMutexStarveTest.cpp |
Roger Meier | 12d7053 | 2011-12-14 23:35:28 +0000 | [diff] [blame] | 128 | endif |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 129 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 130 | UnitTests_LDADD = \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 131 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 132 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 133 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 134 | TInterruptTest_SOURCES = \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 135 | TSocketInterruptTest.cpp \ |
| 136 | TSSLSocketInterruptTest.cpp |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 137 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 138 | TInterruptTest_LDADD = \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 139 | libtestgencpp.la \ |
| 140 | $(BOOST_TEST_LDADD) \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 141 | $(BOOST_FILESYSTEM_LDADD) \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 142 | $(BOOST_CHRONO_LDADD) \ |
| 143 | $(BOOST_SYSTEM_LDADD) \ |
| 144 | $(BOOST_THREAD_LDADD) |
| 145 | |
| 146 | TServerIntegrationTest_SOURCES = \ |
| 147 | TServerIntegrationTest.cpp |
| 148 | |
| 149 | TServerIntegrationTest_LDADD = \ |
| 150 | libtestgencpp.la \ |
| 151 | libprocessortest.la \ |
| 152 | $(BOOST_TEST_LDADD) \ |
| 153 | $(BOOST_SYSTEM_LDADD) \ |
| 154 | $(BOOST_THREAD_LDADD) |
| 155 | |
Jim King | b0b710a | 2015-07-28 13:31:27 -0400 | [diff] [blame] | 156 | SecurityTest_SOURCES = \ |
| 157 | SecurityTest.cpp |
| 158 | |
| 159 | SecurityTest_LDADD = \ |
| 160 | libtestgencpp.la \ |
| 161 | libprocessortest.la \ |
| 162 | $(BOOST_TEST_LDADD) \ |
| 163 | $(BOOST_FILESYSTEM_LDADD) \ |
| 164 | $(BOOST_SYSTEM_LDADD) \ |
| 165 | $(BOOST_THREAD_LDADD) |
| 166 | |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 167 | TransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 168 | TransportTest.cpp |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 169 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 170 | TransportTest_LDADD = \ |
| 171 | libtestgencpp.la \ |
| 172 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 173 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 174 | -lz |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 175 | |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 176 | ZlibTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 177 | ZlibTest.cpp |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 178 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 179 | ZlibTest_LDADD = \ |
| 180 | libtestgencpp.la \ |
| 181 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 182 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 183 | -lz |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 184 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 185 | EnumTest_SOURCES = \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 186 | EnumTest.cpp |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 187 | |
| 188 | EnumTest_LDADD = \ |
| 189 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 190 | $(BOOST_TEST_LDADD) |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 191 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 192 | AnnotationTest_SOURCES = \ |
| 193 | AnnotationTest.cpp |
| 194 | |
| 195 | AnnotationTest_LDADD = \ |
| 196 | libtestgencpp.la \ |
| 197 | $(BOOST_TEST_LDADD) |
| 198 | |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 199 | TFileTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 200 | TFileTransportTest.cpp |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 201 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 202 | TFileTransportTest_LDADD = \ |
| 203 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 204 | $(BOOST_TEST_LDADD) |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 205 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 206 | # |
| 207 | # TFDTransportTest |
| 208 | # |
| 209 | TFDTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 210 | TFDTransportTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 211 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 212 | TFDTransportTest_LDADD = \ |
| 213 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 214 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 215 | |
| 216 | |
| 217 | # |
| 218 | # TPipedTransportTest |
| 219 | # |
| 220 | TPipedTransportTest_SOURCES = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 221 | TPipedTransportTest.cpp \ |
| 222 | TPipeInterruptTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 223 | |
| 224 | TPipedTransportTest_LDADD = \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 225 | libtestgencpp.la \ |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 226 | $(top_builddir)/lib/cpp/libthrift.la \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 227 | $(BOOST_TEST_LDADD) \ |
| 228 | $(BOOST_SYSTEM_LDADD) \ |
| 229 | $(BOOST_THREAD_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 230 | |
| 231 | # |
| 232 | # AllProtocolsTest |
| 233 | # |
| 234 | AllProtocolsTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 235 | AllProtocolTests.cpp \ |
| 236 | AllProtocolTests.tcc \ |
| 237 | GenericHelpers.h |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 238 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 239 | AllProtocolsTest_LDADD = \ |
| 240 | libtestgencpp.la \ |
| 241 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 242 | |
| 243 | # |
| 244 | # DebugProtoTest |
| 245 | # |
| 246 | DebugProtoTest_SOURCES = \ |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 247 | DebugProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 248 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 249 | DebugProtoTest_LDADD = \ |
| 250 | libtestgencpp.la \ |
| 251 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 252 | |
| 253 | |
| 254 | # |
| 255 | # JSONProtoTest |
| 256 | # |
| 257 | JSONProtoTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 258 | JSONProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 259 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 260 | JSONProtoTest_LDADD = \ |
| 261 | libtestgencpp.la \ |
| 262 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 263 | |
| 264 | # |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 265 | # TNonblockingServerTest |
| 266 | # |
| 267 | TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp |
| 268 | |
| 269 | TNonblockingServerTest_LDADD = libprocessortest.la \ |
| 270 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 271 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 272 | $(BOOST_TEST_LDADD) \ |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 273 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 274 | $(LIBEVENT_LIBS) |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 275 | |
| 276 | # |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 277 | # OptionalRequiredTest |
| 278 | # |
| 279 | OptionalRequiredTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 280 | OptionalRequiredTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 281 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 282 | OptionalRequiredTest_LDADD = \ |
| 283 | libtestgencpp.la \ |
| 284 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 285 | |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 286 | # |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 287 | # OptionalRequiredTest |
| 288 | # |
| 289 | RecursiveTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 290 | RecursiveTest.cpp |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 291 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 292 | RecursiveTest_LDADD = \ |
| 293 | libtestgencpp.la \ |
| 294 | $(BOOST_TEST_LDADD) |
| 295 | |
| 296 | # |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 297 | # SpecializationTest |
| 298 | # |
| 299 | SpecializationTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 300 | SpecializationTest.cpp |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 301 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 302 | SpecializationTest_LDADD = \ |
| 303 | libtestgencpp.la \ |
| 304 | $(BOOST_TEST_LDADD) |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 305 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 306 | concurrency_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 307 | concurrency/Tests.cpp \ |
| 308 | concurrency/ThreadFactoryTests.h \ |
| 309 | concurrency/ThreadManagerTests.h \ |
| 310 | concurrency/TimerManagerTests.h |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 311 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 312 | concurrency_test_LDADD = \ |
| 313 | $(top_builddir)/lib/cpp/libthrift.la |
| 314 | |
Roger Meier | 63fcb7e | 2014-06-15 21:48:59 +0200 | [diff] [blame] | 315 | link_test_SOURCES = \ |
| 316 | link/LinkTest.cpp \ |
| 317 | link/TemplatedService1.cpp \ |
| 318 | link/TemplatedService2.cpp |
| 319 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 320 | processor_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 321 | processor/ProcessorTest.cpp \ |
| 322 | processor/EventLog.cpp \ |
| 323 | processor/ServerThread.cpp \ |
| 324 | processor/EventLog.h \ |
| 325 | processor/Handlers.h \ |
| 326 | processor/ServerThread.h |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 327 | |
| 328 | processor_test_LDADD = libprocessortest.la \ |
| 329 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 330 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 331 | $(BOOST_TEST_LDADD) \ |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 332 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 333 | $(LIBEVENT_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 334 | |
| 335 | OpenSSLManualInitTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 336 | OpenSSLManualInitTest.cpp |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 337 | |
| 338 | OpenSSLManualInitTest_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 339 | $(top_builddir)/lib/cpp/libthrift.la \ |
Nobuaki Sukegawa | a837085 | 2016-01-19 00:48:46 +0900 | [diff] [blame] | 340 | $(BOOST_TEST_LDADD) \ |
| 341 | $(OPENSSL_LDFLAGS) \ |
| 342 | $(OPENSSL_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 343 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 344 | # |
| 345 | # Common thrift code generation rules |
| 346 | # |
| 347 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 348 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 349 | 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 |
| 350 | $(THRIFT) --gen cpp $< |
| 351 | |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 352 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h gen-cpp/EmptyService.cpp gen-cpp/EmptyService.h: $(top_srcdir)/test/DebugProtoTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 353 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 354 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 355 | gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 356 | $(THRIFT) --gen cpp $< |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 357 | |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 358 | gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 359 | $(THRIFT) --gen cpp $< |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 360 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 361 | gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 362 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 363 | |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 364 | gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 365 | $(THRIFT) --gen cpp $< |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 366 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 367 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 368 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 369 | |
| 370 | 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 |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 371 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 372 | |
Roger Meier | 6f28c04 | 2014-11-01 20:31:44 +0100 | [diff] [blame] | 373 | 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 |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 374 | $(THRIFT) --gen cpp:templates,cob_style $< |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 375 | |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 376 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -D__STDC_LIMIT_MACROS -I. |
Roger Meier | 3831578 | 2011-11-06 11:29:41 +0000 | [diff] [blame] | 377 | AM_LDFLAGS = $(BOOST_LDFLAGS) |
Roger Meier | cb0754d | 2014-10-21 21:28:04 +0200 | [diff] [blame] | 378 | AM_CXXFLAGS = -Wall -Wextra -pedantic |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 379 | |
| 380 | clean-local: |
Nobuaki Sukegawa | d3f7d0e | 2015-11-03 13:42:00 +0900 | [diff] [blame] | 381 | $(RM) gen-cpp/* |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 382 | |
| 383 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 384 | concurrency \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 385 | processor \ |
| 386 | qt \ |
| 387 | CMakeLists.txt \ |
| 388 | DebugProtoTest_extras.cpp \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 389 | ThriftTest_extras.cpp |