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