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