Debian Codegraph @

test/cpp/interop/BUILD

raw
1 # Copyright 2017 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
16
17 licenses(["notice"])
18
19 grpc_package(
20 name = "test/cpp/interop",
21 visibility = "public",
22 )
23
24 grpc_cc_library(
25 name = "server_helper_lib",
26 srcs = [
27 "server_helper.cc",
28 ],
29 hdrs = [
30 "server_helper.h",
31 ],
32 external_deps = [
33 "absl/flags:flag",
34 ],
35 language = "C++",
36 deps = [
37 "//test/cpp/util:test_util",
38 ],
39 )
40
41 grpc_cc_binary(
42 name = "grpclb_fallback_test",
43 srcs = [
44 "grpclb_fallback_test.cc",
45 ],
46 external_deps = [
47 "absl/flags:flag",
48 "absl/time:time",
49 ],
50 language = "C++",
51 tags = ["no_windows"],
52 deps = [
53 "//:grpc++",
54 "//src/proto/grpc/testing:empty_proto",
55 "//src/proto/grpc/testing:messages_proto",
56 "//src/proto/grpc/testing:test_proto",
57 "//test/cpp/util:test_config",
58 "//test/cpp/util:test_util",
59 ],
60 )
61
62 grpc_cc_binary(
63 name = "interop_server",
64 srcs = [
65 "interop_server_bootstrap.cc",
66 ],
67 external_deps = [
68 "absl/flags:flag",
69 ],
70 language = "C++",
71 deps = [
72 ":interop_server_lib",
73 "//:grpc++",
74 "//test/cpp/util:test_util",
75 ],
76 )
77
78 grpc_cc_library(
79 name = "interop_server_lib",
80 srcs = [
81 "interop_server.cc",
82 ],
83 language = "C++",
84 deps = [
85 ":server_helper_lib",
86 "//src/proto/grpc/testing:empty_proto",
87 "//src/proto/grpc/testing:messages_proto",
88 "//src/proto/grpc/testing:test_proto",
89 "//test/cpp/util:test_config",
90 ],
91 )
92
93 grpc_cc_library(
94 name = "client_helper_lib",
95 srcs = [
96 "client_helper.cc",
97 "interop_client.cc",
98 ],
99 hdrs = [
100 "client_helper.h",
101 "interop_client.h",
102 ],
103 external_deps = [
104 "absl/flags:flag",
105 ],
106 language = "C++",
107 deps = [
108 "//src/proto/grpc/testing:empty_proto",
109 "//src/proto/grpc/testing:messages_proto",
110 "//src/proto/grpc/testing:test_proto",
111 "//test/core/security:oauth2_utils",
112 "//test/cpp/util:test_config",
113 "//test/cpp/util:test_util",
114 ],
115 )
116
117 grpc_cc_library(
118 name = "interop_client_main",
119 srcs = [
120 "client.cc",
121 ],
122 external_deps = [
123 "absl/flags:flag",
124 ],
125 language = "C++",
126 deps = [
127 ":client_helper_lib",
128 ],
129 )
130
131 grpc_cc_binary(
132 name = "interop_client",
133 language = "C++",
134 deps = [
135 ":interop_client_main",
136 "//:grpc++",
137 "//test/cpp/util:test_util",
138 ],
139 )
140
141 grpc_cc_binary(
142 name = "metrics_client",
143 srcs = ["metrics_client.cc"],
144 external_deps = [
145 "absl/flags:flag",
146 ],
147 language = "C++",
148 deps = [
149 "//:grpc++",
150 "//test/cpp/util:metrics_server_lib",
151 "//test/cpp/util:test_config",
152 ],
153 )
154
155 grpc_cc_binary(
156 name = "reconnect_interop_client",
157 srcs = [
158 "reconnect_interop_client.cc",
159 ],
160 external_deps = [
161 "absl/flags:flag",
162 ],
163 deps = [
164 ":client_helper_lib",
165 "//:grpc++",
166 "//test/core/util:grpc_test_util",
167 ],
168 )
169
170 grpc_cc_binary(
171 name = "reconnect_interop_server",
172 srcs = [
173 "reconnect_interop_server.cc",
174 ],
175 external_deps = [
176 "absl/flags:flag",
177 ],
178 language = "C++",
179 deps = [
180 ":interop_server_lib",
181 "//:grpc++",
182 "//test/core/util:grpc_test_util",
183 ],
184 )
185
186 grpc_cc_binary(
187 name = "stress_test",
188 srcs = [
189 "stress_interop_client.cc",
190 "stress_interop_client.h",
191 "stress_test.cc",
192 ],
193 external_deps = [
194 "absl/flags:flag",
195 ],
196 deps = [
197 ":client_helper_lib",
198 "//:grpc++",
199 "//test/cpp/util:metrics_server_lib",
200 "//test/cpp/util:test_config",
201 ],
202 )
203
204 grpc_cc_binary(
205 name = "interop_test",
206 srcs = ["interop_test.cc"],
207 data = [
208 ":interop_client",
209 ":interop_server",
210 ],
211 external_deps = [
212 "absl/flags:flag",
213 ],
214 tags = ["no_windows"],
215 deps = [
216 "//:gpr",
217 "//:grpc",
218 "//:grpc++",
219 "//test/core/util:grpc_test_util",
220 "//test/cpp/util:test_config",
221 "//test/cpp/util:test_util",
222 ],
223 )
224
225 sh_test(
226 name = "interop_test_with_metadata_log",
227 srcs = [
228 "interop_test_with_metadata_log.sh",
229 ],
230 data = [
231 ":interop_test",
232 ],
233 tags = ["no_windows"],
234 )
235
236 grpc_cc_binary(
237 name = "xds_interop_client",
238 srcs = [
239 "xds_interop_client.cc",
240 ],
241 external_deps = [
242 "absl/flags:flag",
243 ],
244 deps = [
245 "//:grpc++",
246 "//:grpc++_reflection",
247 "//:grpcpp_admin",
248 "//src/proto/grpc/testing:empty_proto",
249 "//src/proto/grpc/testing:messages_proto",
250 "//src/proto/grpc/testing:test_proto",
251 "//test/core/util:grpc_test_util",
252 "//test/cpp/util:test_config",
253 ],
254 )
255
256 grpc_cc_binary(
257 name = "xds_interop_server",
258 testonly = True,
259 srcs = [
260 "xds_interop_server.cc",
261 ],
262 external_deps = [
263 "absl/flags:flag",
264 ],
265 deps = [
266 "//:grpc++",
267 "//:grpc++_reflection",
268 "//:grpcpp_admin",
269 "//src/proto/grpc/testing:empty_proto",
270 "//src/proto/grpc/testing:messages_proto",
271 "//src/proto/grpc/testing:test_proto",
272 "//test/core/util:grpc_test_util",
273 "//test/cpp/end2end:test_health_check_service_impl",
274 "//test/cpp/util:test_config",
275 ],
276 )
277
278 grpc_cc_library(
279 name = "istio_echo_server_lib",
280 srcs = [
281 "istio_echo_server_lib.cc",
282 ],
283 hdrs = ["istio_echo_server_lib.h"],
284 deps = [
285 "//:grpc++",
286 "//src/proto/grpc/testing:istio_echo_proto",
287 ],
288 )
289
290 grpc_cc_binary(
291 name = "istio_echo_server",
292 srcs = [
293 "istio_echo_server.cc",
294 ],
295 external_deps = [
296 "absl/flags:flag",
297 ],
298 deps = [
299 ":istio_echo_server_lib",
300 "//:grpc++",
301 "//:grpc++_reflection",
302 "//:grpcpp_admin",
303 "//src/proto/grpc/testing:istio_echo_proto",
304 "//test/core/util:grpc_test_util",
305 "//test/cpp/util:test_config",
306 ],
307 )
308
309 grpc_cc_test(
310 name = "istio_echo_server_test",
311 srcs = [
312 "istio_echo_server_test.cc",
313 ],
314 external_deps = ["gtest"],
315 deps = [
316 ":istio_echo_server_lib",
317 "//:grpc++",
318 "//src/proto/grpc/testing:istio_echo_proto",
319 "//test/core/util:grpc_test_util",
320 "//test/cpp/util:test_config",
321 ],
322 )
323
324 grpc_cc_binary(
325 name = "http2_client",
326 srcs = [
327 "http2_client.cc",
328 "http2_client.h",
329 ],
330 external_deps = [
331 "absl/flags:flag",
332 ],
333 deps = [
334 "//:grpc++",
335 "//src/proto/grpc/testing:empty_proto",
336 "//src/proto/grpc/testing:messages_proto",
337 "//src/proto/grpc/testing:test_proto",
338 "//test/core/util:grpc_test_util",
339 "//test/cpp/util:test_config",
340 "//test/cpp/util:test_util",
341 ],
342 )