Debian Codegraph @

test/core/iomgr/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_library", "grpc_cc_test", "grpc_package")
16 load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
17
18 licenses(["notice"])
19
20 grpc_package(
21 name = "test/core/iomgr",
22 visibility = "public",
23 ) # Useful for third party devs to test their io manager implementation.
24
25 grpc_cc_library(
26 name = "endpoint_tests",
27 srcs = ["endpoint_tests.cc"],
28 hdrs = ["endpoint_tests.h"],
29 language = "C++",
30 visibility = [
31 "//test:__subpackages__",
32 "@grpc:endpoint_tests",
33 ],
34 deps = [
35 "//:gpr",
36 "//:grpc",
37 "//test/core/util:grpc_test_util",
38 "//test/core/util:grpc_test_util_base",
39 ],
40 )
41
42 grpc_cc_test(
43 name = "combiner_test",
44 srcs = ["combiner_test.cc"],
45 exec_properties = LARGE_MACHINE,
46 external_deps = ["gtest"],
47 flaky = True,
48 language = "C++",
49 tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
50 deps = [
51 "//:gpr",
52 "//:grpc",
53 "//test/core/util:grpc_test_util",
54 "//test/core/util:grpc_test_util_base",
55 ],
56 )
57
58 grpc_cc_test(
59 name = "endpoint_pair_test",
60 srcs = ["endpoint_pair_test.cc"],
61 external_deps = ["gtest"],
62 language = "C++",
63 tags = ["endpoint_test"],
64 deps = [
65 ":endpoint_tests",
66 "//:gpr",
67 "//:grpc",
68 "//test/core/util:grpc_test_util",
69 "//test/core/util:grpc_test_util_base",
70 ],
71 )
72
73 grpc_cc_test(
74 name = "error_test",
75 srcs = ["error_test.cc"],
76 external_deps = [
77 "gtest",
78 ],
79 language = "C++",
80 uses_event_engine = False,
81 uses_polling = False,
82 deps = [
83 ":endpoint_tests",
84 "//:gpr",
85 "//:grpc",
86 "//test/core/util:grpc_test_util",
87 "//test/core/util:grpc_test_util_base",
88 ],
89 )
90
91 grpc_cc_test(
92 name = "fd_conservation_posix_test",
93 srcs = ["fd_conservation_posix_test.cc"],
94 language = "C++",
95 tags = ["no_windows"],
96 deps = [
97 "//:gpr",
98 "//:grpc",
99 "//test/core/util:grpc_test_util",
100 "//test/core/util:grpc_test_util_base",
101 ],
102 )
103
104 grpc_cc_test(
105 name = "fd_posix_test",
106 srcs = ["fd_posix_test.cc"],
107 external_deps = ["gtest"],
108 language = "C++",
109 tags = ["no_windows"],
110 deps = [
111 "//:gpr",
112 "//:grpc",
113 "//test/core/util:grpc_test_util",
114 "//test/core/util:grpc_test_util_base",
115 ],
116 )
117
118 grpc_cc_test(
119 name = "grpc_ipv6_loopback_available_test",
120 srcs = ["grpc_ipv6_loopback_available_test.cc"],
121 external_deps = ["gtest"],
122 language = "C++",
123 deps = [
124 "//:gpr",
125 "//:grpc",
126 "//test/core/util:grpc_test_util",
127 "//test/core/util:grpc_test_util_base",
128 ],
129 )
130
131 grpc_cc_test(
132 name = "load_file_test",
133 srcs = ["load_file_test.cc"],
134 external_deps = ["gtest"],
135 language = "C++",
136 uses_event_engine = False,
137 uses_polling = False,
138 deps = [
139 "//:gpr",
140 "//:grpc",
141 "//test/core/util:grpc_test_util",
142 "//test/core/util:grpc_test_util_base",
143 ],
144 )
145
146 grpc_cc_test(
147 name = "resolve_address_using_ares_resolver_posix_test",
148 srcs = ["resolve_address_posix_test.cc"],
149 args = [
150 "--resolver=ares",
151 ],
152 external_deps = [
153 "absl/flags:flag",
154 "absl/flags:parse",
155 "absl/strings",
156 "gtest",
157 ],
158 language = "C++",
159 tags = ["no_windows"],
160 deps = [
161 "//:gpr",
162 "//:grpc",
163 "//test/core/util:grpc_test_util",
164 "//test/core/util:grpc_test_util_base",
165 ],
166 )
167
168 grpc_cc_test(
169 name = "resolve_address_using_native_resolver_posix_test",
170 srcs = ["resolve_address_posix_test.cc"],
171 args = [
172 "--resolver=native",
173 ],
174 external_deps = [
175 "absl/flags:flag",
176 "absl/flags:parse",
177 "absl/strings",
178 "gtest",
179 ],
180 language = "C++",
181 tags = ["no_windows"],
182 deps = [
183 "//:gpr",
184 "//:grpc",
185 "//test/core/util:grpc_test_util",
186 "//test/core/util:grpc_test_util_base",
187 ],
188 )
189
190 grpc_cc_test(
191 name = "resolve_address_using_ares_resolver_test",
192 srcs = ["resolve_address_test.cc"],
193 external_deps = [
194 "absl/strings",
195 "gtest",
196 ],
197 language = "C++",
198 deps = [
199 "//:gpr",
200 "//:grpc",
201 "//test/core/util:fake_udp_and_tcp_server",
202 "//test/core/util:grpc_test_util",
203 "//test/core/util:grpc_test_util_base",
204 "//test/cpp/util:test_config",
205 ],
206 )
207
208 grpc_cc_test(
209 name = "resolve_address_using_native_resolver_test",
210 srcs = ["resolve_address_test.cc"],
211 external_deps = [
212 "absl/strings",
213 "gtest",
214 ],
215 language = "C++",
216 deps = [
217 "//:gpr",
218 "//:grpc",
219 "//test/core/util:fake_udp_and_tcp_server",
220 "//test/core/util:grpc_test_util",
221 "//test/core/util:grpc_test_util_base",
222 "//test/cpp/util:test_config",
223 ],
224 )
225
226 grpc_cc_test(
227 name = "socket_utils_test",
228 srcs = ["socket_utils_test.cc"],
229 external_deps = ["gtest"],
230 language = "C++",
231 tags = ["no_windows"],
232 deps = [
233 "//:gpr",
234 "//:grpc",
235 "//test/core/util:grpc_test_util",
236 "//test/core/util:grpc_test_util_base",
237 ],
238 )
239
240 grpc_cc_test(
241 name = "tcp_client_posix_test",
242 srcs = ["tcp_client_posix_test.cc"],
243 external_deps = ["gtest"],
244 language = "C++",
245 tags = [
246 "endpoint_test",
247 "no_windows",
248 ],
249 deps = [
250 "//:gpr",
251 "//:grpc",
252 "//test/core/util:grpc_test_util",
253 "//test/core/util:grpc_test_util_base",
254 ],
255 )
256
257 grpc_cc_test(
258 name = "tcp_posix_test",
259 srcs = ["tcp_posix_test.cc"],
260 language = "C++",
261 tags = [
262 "endpoint_test",
263 "no_mac", # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
264 "no_windows",
265 ],
266 deps = [
267 ":endpoint_tests",
268 "//:gpr",
269 "//:grpc",
270 "//test/core/util:grpc_test_util",
271 "//test/core/util:grpc_test_util_base",
272 ],
273 )
274
275 grpc_cc_test(
276 name = "buffer_list_test",
277 srcs = ["buffer_list_test.cc"],
278 external_deps = ["gtest"],
279 language = "C++",
280 deps = [
281 "//:gpr",
282 "//:grpc",
283 "//test/core/util:grpc_test_util",
284 "//test/core/util:grpc_test_util_base",
285 ],
286 )
287
288 grpc_cc_test(
289 name = "pollset_windows_starvation_test",
290 srcs = ["pollset_windows_starvation_test.cc"],
291 language = "C++",
292 tags = [
293 "no_linux",
294 "no_mac",
295 ],
296 deps = [
297 "//:gpr",
298 "//:grpc",
299 "//test/core/util:grpc_test_util",
300 ],
301 )
302
303 grpc_cc_test(
304 name = "tcp_server_posix_test",
305 srcs = ["tcp_server_posix_test.cc"],
306 external_deps = ["gtest"],
307 language = "C++",
308 tags = ["no_windows"],
309 deps = [
310 "//:gpr",
311 "//:grpc",
312 "//test/core/util:grpc_test_util",
313 "//test/core/util:grpc_test_util_base",
314 ],
315 )
316
317 grpc_cc_test(
318 name = "timer_heap_test",
319 srcs = ["timer_heap_test.cc"],
320 external_deps = ["gtest"],
321 language = "C++",
322 uses_event_engine = False,
323 uses_polling = False,
324 deps = [
325 "//:gpr",
326 "//:grpc",
327 "//test/core/util:grpc_test_util",
328 "//test/core/util:grpc_test_util_base",
329 ],
330 )
331
332 grpc_cc_test(
333 name = "timer_list_test",
334 srcs = ["timer_list_test.cc"],
335 language = "C++",
336 uses_event_engine = False,
337 uses_polling = False,
338 deps = [
339 "//:gpr",
340 "//:grpc",
341 "//test/core/util:grpc_test_util",
342 "//test/core/util:grpc_test_util_base",
343 ],
344 )
345
346 grpc_cc_test(
347 name = "stranded_event_test",
348 srcs = ["stranded_event_test.cc"],
349 external_deps = [
350 "gtest",
351 ],
352 language = "C++",
353 tags = [
354 # TODO(apolcyn): This test is failing on Windows at entry, enable once passing.
355 # See e.g. https://source.cloud.google.com/results/invocations/6716596a-c9e1-4780-85ed-890d8758d582/targets
356 "no_windows",
357 "cpu:10",
358 ],
359 deps = [
360 "//:gpr",
361 "//:grpc",
362 "//test/core/end2end:cq_verifier",
363 "//test/core/util:grpc_test_util",
364 "//test/core/util:grpc_test_util_base",
365 ],
366 )