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