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 += \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 126 | RWMutexStarveTest.cpp |
Roger Meier | 12d7053 | 2011-12-14 23:35:28 +0000 | [diff] [blame] | 127 | endif |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 128 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 129 | UnitTests_LDADD = \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 130 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 131 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 132 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 133 | TInterruptTest_SOURCES = \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 134 | TSocketInterruptTest.cpp \ |
| 135 | TSSLSocketInterruptTest.cpp |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 136 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 137 | TInterruptTest_LDADD = \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 138 | libtestgencpp.la \ |
| 139 | $(BOOST_TEST_LDADD) \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 140 | $(BOOST_FILESYSTEM_LDADD) \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 141 | $(BOOST_CHRONO_LDADD) \ |
| 142 | $(BOOST_SYSTEM_LDADD) \ |
| 143 | $(BOOST_THREAD_LDADD) |
| 144 | |
| 145 | TServerIntegrationTest_SOURCES = \ |
| 146 | TServerIntegrationTest.cpp |
| 147 | |
| 148 | TServerIntegrationTest_LDADD = \ |
| 149 | libtestgencpp.la \ |
| 150 | libprocessortest.la \ |
| 151 | $(BOOST_TEST_LDADD) \ |
| 152 | $(BOOST_SYSTEM_LDADD) \ |
| 153 | $(BOOST_THREAD_LDADD) |
| 154 | |
Jim King | b0b710a | 2015-07-28 13:31:27 -0400 | [diff] [blame] | 155 | SecurityTest_SOURCES = \ |
| 156 | SecurityTest.cpp |
| 157 | |
| 158 | SecurityTest_LDADD = \ |
| 159 | libtestgencpp.la \ |
| 160 | libprocessortest.la \ |
| 161 | $(BOOST_TEST_LDADD) \ |
| 162 | $(BOOST_FILESYSTEM_LDADD) \ |
| 163 | $(BOOST_SYSTEM_LDADD) \ |
| 164 | $(BOOST_THREAD_LDADD) |
| 165 | |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 166 | TransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 167 | TransportTest.cpp |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 168 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 169 | TransportTest_LDADD = \ |
| 170 | libtestgencpp.la \ |
| 171 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 172 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 173 | -lz |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 174 | |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 175 | ZlibTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 176 | ZlibTest.cpp |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 177 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 178 | ZlibTest_LDADD = \ |
| 179 | libtestgencpp.la \ |
| 180 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 181 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 182 | -lz |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 183 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 184 | EnumTest_SOURCES = \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame^] | 185 | EnumTest.cpp |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 186 | |
| 187 | EnumTest_LDADD = \ |
| 188 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 189 | $(BOOST_TEST_LDADD) |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 190 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame^] | 191 | AnnotationTest_SOURCES = \ |
| 192 | AnnotationTest.cpp |
| 193 | |
| 194 | AnnotationTest_LDADD = \ |
| 195 | libtestgencpp.la \ |
| 196 | $(BOOST_TEST_LDADD) |
| 197 | |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 198 | TFileTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 199 | TFileTransportTest.cpp |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 200 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 201 | TFileTransportTest_LDADD = \ |
| 202 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 203 | $(BOOST_TEST_LDADD) |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 204 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 205 | # |
| 206 | # TFDTransportTest |
| 207 | # |
| 208 | TFDTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 209 | TFDTransportTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 210 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 211 | TFDTransportTest_LDADD = \ |
| 212 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 213 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 214 | |
| 215 | |
| 216 | # |
| 217 | # TPipedTransportTest |
| 218 | # |
| 219 | TPipedTransportTest_SOURCES = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 220 | TPipedTransportTest.cpp \ |
| 221 | TPipeInterruptTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 222 | |
| 223 | TPipedTransportTest_LDADD = \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 224 | libtestgencpp.la \ |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 225 | $(top_builddir)/lib/cpp/libthrift.la \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 226 | $(BOOST_TEST_LDADD) \ |
| 227 | $(BOOST_SYSTEM_LDADD) \ |
| 228 | $(BOOST_THREAD_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 229 | |
| 230 | # |
| 231 | # AllProtocolsTest |
| 232 | # |
| 233 | AllProtocolsTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 234 | AllProtocolTests.cpp \ |
| 235 | AllProtocolTests.tcc \ |
| 236 | GenericHelpers.h |
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 | AllProtocolsTest_LDADD = \ |
| 239 | libtestgencpp.la \ |
| 240 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 241 | |
| 242 | # |
| 243 | # DebugProtoTest |
| 244 | # |
| 245 | DebugProtoTest_SOURCES = \ |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 246 | DebugProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 247 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 248 | DebugProtoTest_LDADD = \ |
| 249 | libtestgencpp.la \ |
| 250 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 251 | |
| 252 | |
| 253 | # |
| 254 | # JSONProtoTest |
| 255 | # |
| 256 | JSONProtoTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 257 | JSONProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 258 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 259 | JSONProtoTest_LDADD = \ |
| 260 | libtestgencpp.la \ |
| 261 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 262 | |
| 263 | # |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 264 | # TNonblockingServerTest |
| 265 | # |
| 266 | TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp |
| 267 | |
| 268 | TNonblockingServerTest_LDADD = libprocessortest.la \ |
| 269 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 270 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 271 | $(BOOST_TEST_LDADD) \ |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 272 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 273 | $(LIBEVENT_LIBS) |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 274 | |
| 275 | # |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 276 | # OptionalRequiredTest |
| 277 | # |
| 278 | OptionalRequiredTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 279 | OptionalRequiredTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 280 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 281 | OptionalRequiredTest_LDADD = \ |
| 282 | libtestgencpp.la \ |
| 283 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 284 | |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 285 | # |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 286 | # OptionalRequiredTest |
| 287 | # |
| 288 | RecursiveTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 289 | RecursiveTest.cpp |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 290 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 291 | RecursiveTest_LDADD = \ |
| 292 | libtestgencpp.la \ |
| 293 | $(BOOST_TEST_LDADD) |
| 294 | |
| 295 | # |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 296 | # SpecializationTest |
| 297 | # |
| 298 | SpecializationTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 299 | SpecializationTest.cpp |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 300 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 301 | SpecializationTest_LDADD = \ |
| 302 | libtestgencpp.la \ |
| 303 | $(BOOST_TEST_LDADD) |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 304 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 305 | concurrency_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 306 | concurrency/Tests.cpp \ |
| 307 | concurrency/ThreadFactoryTests.h \ |
| 308 | concurrency/ThreadManagerTests.h \ |
| 309 | concurrency/TimerManagerTests.h |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 310 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 311 | concurrency_test_LDADD = \ |
| 312 | $(top_builddir)/lib/cpp/libthrift.la |
| 313 | |
Roger Meier | 63fcb7e | 2014-06-15 21:48:59 +0200 | [diff] [blame] | 314 | link_test_SOURCES = \ |
| 315 | link/LinkTest.cpp \ |
| 316 | link/TemplatedService1.cpp \ |
| 317 | link/TemplatedService2.cpp |
| 318 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 319 | processor_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 320 | processor/ProcessorTest.cpp \ |
| 321 | processor/EventLog.cpp \ |
| 322 | processor/ServerThread.cpp \ |
| 323 | processor/EventLog.h \ |
| 324 | processor/Handlers.h \ |
| 325 | processor/ServerThread.h |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 326 | |
| 327 | processor_test_LDADD = libprocessortest.la \ |
| 328 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 329 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 330 | $(BOOST_TEST_LDADD) \ |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 331 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 332 | $(LIBEVENT_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 333 | |
| 334 | OpenSSLManualInitTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 335 | OpenSSLManualInitTest.cpp |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 336 | |
| 337 | OpenSSLManualInitTest_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 338 | $(top_builddir)/lib/cpp/libthrift.la \ |
Nobuaki Sukegawa | a837085 | 2016-01-19 00:48:46 +0900 | [diff] [blame] | 339 | $(BOOST_TEST_LDADD) \ |
| 340 | $(OPENSSL_LDFLAGS) \ |
| 341 | $(OPENSSL_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 342 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 343 | # |
| 344 | # Common thrift code generation rules |
| 345 | # |
| 346 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 347 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame^] | 348 | 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 |
| 349 | $(THRIFT) --gen cpp $< |
| 350 | |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 351 | 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] | 352 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 353 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 354 | 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] | 355 | $(THRIFT) --gen cpp $< |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 356 | |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 357 | 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] | 358 | $(THRIFT) --gen cpp $< |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 359 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 360 | 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] | 361 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 362 | |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 363 | 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] | 364 | $(THRIFT) --gen cpp $< |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 365 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 366 | 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] | 367 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 368 | |
| 369 | 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] | 370 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 371 | |
Roger Meier | 6f28c04 | 2014-11-01 20:31:44 +0100 | [diff] [blame] | 372 | 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] | 373 | $(THRIFT) --gen cpp:templates,cob_style $< |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 374 | |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 375 | 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] | 376 | AM_LDFLAGS = $(BOOST_LDFLAGS) |
Roger Meier | cb0754d | 2014-10-21 21:28:04 +0200 | [diff] [blame] | 377 | AM_CXXFLAGS = -Wall -Wextra -pedantic |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 378 | |
| 379 | clean-local: |
Nobuaki Sukegawa | d3f7d0e | 2015-11-03 13:42:00 +0900 | [diff] [blame] | 380 | $(RM) gen-cpp/* |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 381 | |
| 382 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 383 | concurrency \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 384 | processor \ |
| 385 | qt \ |
| 386 | CMakeLists.txt \ |
| 387 | DebugProtoTest_extras.cpp \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 388 | ThriftTest_extras.cpp |