• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
16load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
17
18licenses(["notice"])  # Apache v2
19
20load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
21
22grpc_package(
23    name = "test/core/iomgr",
24    visibility = "public",
25)  # Useful for third party devs to test their io manager implementation.
26
27grpc_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
40grpc_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
53grpc_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
65grpc_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
78grpc_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
90grpc_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
102grpc_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
114grpc_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
125grpc_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
137grpc_cc_test(
138    name = "work_serializer_test",
139    srcs = ["work_serializer_test.cc"],
140    exec_properties = LARGE_MACHINE,
141    external_deps = [
142        "gtest",
143    ],
144    language = "C++",
145    tags = [
146        "no_windows",  # LARGE_MACHINE is not configured for windows RBE
147    ],
148    deps = [
149        "//:gpr",
150        "//:grpc",
151        "//test/core/util:grpc_test_util",
152    ],
153)
154
155grpc_cc_test(
156    name = "mpmcqueue_test",
157    srcs = ["mpmcqueue_test.cc"],
158    language = "C++",
159    uses_polling = False,
160    deps = [
161        "//:gpr",
162        "//:grpc",
163        "//test/core/util:grpc_test_util",
164    ],
165)
166
167grpc_cc_test(
168    name = "resolve_address_using_ares_resolver_posix_test",
169    srcs = ["resolve_address_posix_test.cc"],
170    args = [
171        "--resolver=ares",
172    ],
173    language = "C++",
174    tags = ["no_windows"],
175    deps = [
176        "//:gpr",
177        "//:grpc",
178        "//test/core/util:grpc_test_util",
179    ],
180)
181
182grpc_cc_test(
183    name = "resolve_address_using_native_resolver_posix_test",
184    srcs = ["resolve_address_posix_test.cc"],
185    args = [
186        "--resolver=native",
187    ],
188    language = "C++",
189    tags = ["no_windows"],
190    deps = [
191        "//:gpr",
192        "//:grpc",
193        "//test/core/util:grpc_test_util",
194    ],
195)
196
197grpc_cc_test(
198    name = "resolve_address_using_ares_resolver_test",
199    srcs = ["resolve_address_test.cc"],
200    args = [
201        "--resolver=ares",
202    ],
203    language = "C++",
204    deps = [
205        "//:gpr",
206        "//:grpc",
207        "//test/core/util:grpc_test_util",
208    ],
209)
210
211grpc_cc_test(
212    name = "resolve_address_using_native_resolver_test",
213    srcs = ["resolve_address_test.cc"],
214    args = [
215        "--resolver=native",
216    ],
217    language = "C++",
218    deps = [
219        "//:gpr",
220        "//:grpc",
221        "//test/core/util:grpc_test_util",
222    ],
223)
224
225grpc_cc_test(
226    name = "resource_quota_test",
227    srcs = ["resource_quota_test.cc"],
228    language = "C++",
229    deps = [
230        "//:gpr",
231        "//:grpc",
232        "//test/core/util:grpc_test_util",
233    ],
234)
235
236grpc_cc_test(
237    name = "sockaddr_utils_test",
238    srcs = ["sockaddr_utils_test.cc"],
239    language = "C++",
240    deps = [
241        "//:gpr",
242        "//:grpc",
243        "//test/core/util:grpc_test_util",
244    ],
245)
246
247grpc_cc_test(
248    name = "socket_utils_test",
249    srcs = ["socket_utils_test.cc"],
250    language = "C++",
251    tags = ["no_windows"],
252    deps = [
253        "//:gpr",
254        "//:grpc",
255        "//test/core/util:grpc_test_util",
256    ],
257)
258
259grpc_cc_test(
260    name = "tcp_client_posix_test",
261    srcs = ["tcp_client_posix_test.cc"],
262    language = "C++",
263    tags = ["no_windows"],
264    deps = [
265        "//:gpr",
266        "//:grpc",
267        "//test/core/util:grpc_test_util",
268    ],
269)
270
271grpc_cc_test(
272    name = "tcp_posix_test",
273    srcs = ["tcp_posix_test.cc"],
274    language = "C++",
275    tags = [
276        "no_mac",  # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
277        "no_windows",
278    ],
279    deps = [
280        ":endpoint_tests",
281        "//:gpr",
282        "//:grpc",
283        "//test/core/util:grpc_test_util",
284    ],
285)
286
287grpc_cc_test(
288    name = "buffer_list_test",
289    srcs = ["buffer_list_test.cc"],
290    language = "C++",
291    deps = [
292        "//:gpr",
293        "//:grpc",
294        "//test/core/util:grpc_test_util",
295    ],
296)
297
298grpc_cc_test(
299    name = "tcp_server_posix_test",
300    srcs = ["tcp_server_posix_test.cc"],
301    language = "C++",
302    tags = ["no_windows"],
303    deps = [
304        "//:gpr",
305        "//:grpc",
306        "//test/core/util:grpc_test_util",
307    ],
308)
309
310grpc_cc_test(
311    name = "threadpool_test",
312    srcs = ["threadpool_test.cc"],
313    language = "C++",
314    uses_polling = False,
315    deps = [
316        "//:gpr",
317        "//:grpc",
318        "//test/core/util:grpc_test_util",
319    ],
320)
321
322grpc_cc_test(
323    name = "time_averaged_stats_test",
324    srcs = ["time_averaged_stats_test.cc"],
325    language = "C++",
326    uses_polling = False,
327    deps = [
328        "//:gpr",
329        "//:grpc",
330        "//test/core/util:grpc_test_util",
331    ],
332)
333
334grpc_cc_test(
335    name = "timer_heap_test",
336    srcs = ["timer_heap_test.cc"],
337    language = "C++",
338    uses_polling = False,
339    deps = [
340        "//:gpr",
341        "//:grpc",
342        "//test/core/util:grpc_test_util",
343    ],
344)
345
346grpc_cc_test(
347    name = "timer_list_test",
348    srcs = ["timer_list_test.cc"],
349    language = "C++",
350    uses_polling = False,
351    deps = [
352        "//:gpr",
353        "//:grpc",
354        "//test/core/util:grpc_test_util",
355    ],
356)
357
358grpc_cc_test(
359    name = "udp_server_test",
360    srcs = ["udp_server_test.cc"],
361    language = "C++",
362    tags = ["no_windows"],
363    deps = [
364        "//:gpr",
365        "//:grpc",
366        "//test/core/util:grpc_test_util",
367    ],
368)
369
370grpc_cc_test(
371    name = "stranded_event_test",
372    srcs = ["stranded_event_test.cc"],
373    external_deps = [
374        "gtest",
375    ],
376    language = "C++",
377    tags = [
378        # TODO(apolcyn): This test is failing on Windows at entry, enable once passing.
379        # See e.g. https://source.cloud.google.com/results/invocations/03e2c2bc-1742-48b4-a33d-b4cdaee5c8f9/targets
380        # E0717 23:43:56.391000000  5488 src/core/lib/surface/server.cc:1630] assertion failed: server->listeners_destroyed == server->listeners.size()
381        "no_windows",
382    ],
383    deps = [
384        "//:gpr",
385        "//:grpc",
386        "//test/core/end2end:cq_verifier",
387        "//test/core/util:grpc_test_util",
388    ],
389)
390