BUILD 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary", "grpc_package")
  15. licenses(["notice"]) # Apache v2
  16. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  17. grpc_package(
  18. name = "test/core/iomgr",
  19. visibility = "public",
  20. ) # Useful for third party devs to test their io manager implementation.
  21. grpc_cc_library(
  22. name = "endpoint_tests",
  23. srcs = ["endpoint_tests.cc"],
  24. hdrs = ["endpoint_tests.h"],
  25. language = "C++",
  26. visibility = ["//test:__subpackages__"],
  27. deps = [
  28. "//:gpr",
  29. "//:grpc",
  30. "//test/core/util:grpc_test_util",
  31. ],
  32. )
  33. grpc_cc_test(
  34. name = "combiner_test",
  35. srcs = ["combiner_test.cc"],
  36. exec_compatible_with = ["//third_party/toolchains/machine_size:large"],
  37. language = "C++",
  38. deps = [
  39. "//:gpr",
  40. "//:grpc",
  41. "//test/core/util:grpc_test_util",
  42. ],
  43. )
  44. grpc_cc_test(
  45. name = "endpoint_pair_test",
  46. srcs = ["endpoint_pair_test.cc"],
  47. language = "C++",
  48. deps = [
  49. ":endpoint_tests",
  50. "//:gpr",
  51. "//:grpc",
  52. "//test/core/util:grpc_test_util",
  53. ],
  54. )
  55. grpc_cc_test(
  56. name = "error_test",
  57. srcs = ["error_test.cc"],
  58. language = "C++",
  59. deps = [
  60. ":endpoint_tests",
  61. "//:gpr",
  62. "//:grpc",
  63. "//test/core/util:grpc_test_util",
  64. ],
  65. )
  66. grpc_cc_test(
  67. name = "ev_epollex_linux_test",
  68. srcs = ["ev_epollex_linux_test.cc"],
  69. language = "C++",
  70. deps = [
  71. "//:gpr",
  72. "//:grpc",
  73. "//test/core/util:grpc_test_util",
  74. ],
  75. )
  76. grpc_cc_test(
  77. name = "fd_conservation_posix_test",
  78. srcs = ["fd_conservation_posix_test.cc"],
  79. language = "C++",
  80. deps = [
  81. "//:gpr",
  82. "//:grpc",
  83. "//test/core/util:grpc_test_util",
  84. ],
  85. )
  86. grpc_cc_test(
  87. name = "fd_posix_test",
  88. srcs = ["fd_posix_test.cc"],
  89. language = "C++",
  90. deps = [
  91. "//:gpr",
  92. "//:grpc",
  93. "//test/core/util:grpc_test_util",
  94. ],
  95. )
  96. grpc_cc_test(
  97. name = "grpc_ipv6_loopback_available_test",
  98. srcs = ["grpc_ipv6_loopback_available_test.cc"],
  99. language = "C++",
  100. deps = [
  101. "//:gpr",
  102. "//:grpc",
  103. "//test/core/util:grpc_test_util",
  104. ],
  105. )
  106. grpc_cc_test(
  107. name = "load_file_test",
  108. srcs = ["load_file_test.cc"],
  109. language = "C++",
  110. deps = [
  111. "//:gpr",
  112. "//:grpc",
  113. "//test/core/util:grpc_test_util",
  114. ],
  115. )
  116. grpc_cc_test(
  117. name = "resolve_address_using_ares_resolver_posix_test",
  118. srcs = ["resolve_address_posix_test.cc"],
  119. args = [
  120. "--resolver=ares",
  121. ],
  122. language = "C++",
  123. deps = [
  124. "//:gpr",
  125. "//:grpc",
  126. "//test/core/util:grpc_test_util",
  127. ],
  128. )
  129. grpc_cc_test(
  130. name = "resolve_address_using_native_resolver_posix_test",
  131. srcs = ["resolve_address_posix_test.cc"],
  132. args = [
  133. "--resolver=native",
  134. ],
  135. language = "C++",
  136. deps = [
  137. "//:gpr",
  138. "//:grpc",
  139. "//test/core/util:grpc_test_util",
  140. ],
  141. )
  142. grpc_cc_test(
  143. name = "resolve_address_using_ares_resolver_test",
  144. srcs = ["resolve_address_test.cc"],
  145. args = [
  146. "--resolver=ares",
  147. ],
  148. language = "C++",
  149. deps = [
  150. "//:gpr",
  151. "//:grpc",
  152. "//test/core/util:grpc_test_util",
  153. ],
  154. )
  155. grpc_cc_test(
  156. name = "resolve_address_using_native_resolver_test",
  157. srcs = ["resolve_address_test.cc"],
  158. args = [
  159. "--resolver=native",
  160. ],
  161. language = "C++",
  162. deps = [
  163. "//:gpr",
  164. "//:grpc",
  165. "//test/core/util:grpc_test_util",
  166. ],
  167. )
  168. grpc_cc_test(
  169. name = "resource_quota_test",
  170. srcs = ["resource_quota_test.cc"],
  171. language = "C++",
  172. deps = [
  173. "//:gpr",
  174. "//:grpc",
  175. "//test/core/util:grpc_test_util",
  176. ],
  177. )
  178. grpc_cc_test(
  179. name = "sockaddr_utils_test",
  180. srcs = ["sockaddr_utils_test.cc"],
  181. language = "C++",
  182. deps = [
  183. "//:gpr",
  184. "//:grpc",
  185. "//test/core/util:grpc_test_util",
  186. ],
  187. )
  188. grpc_cc_test(
  189. name = "socket_utils_test",
  190. srcs = ["socket_utils_test.cc"],
  191. language = "C++",
  192. deps = [
  193. "//:gpr",
  194. "//:grpc",
  195. "//test/core/util:grpc_test_util",
  196. ],
  197. )
  198. grpc_cc_test(
  199. name = "tcp_client_posix_test",
  200. srcs = ["tcp_client_posix_test.cc"],
  201. language = "C++",
  202. deps = [
  203. "//:gpr",
  204. "//:grpc",
  205. "//test/core/util:grpc_test_util",
  206. ],
  207. )
  208. grpc_cc_test(
  209. name = "tcp_posix_test",
  210. srcs = ["tcp_posix_test.cc"],
  211. language = "C++",
  212. deps = [
  213. ":endpoint_tests",
  214. "//:gpr",
  215. "//:grpc",
  216. "//test/core/util:grpc_test_util",
  217. ],
  218. )
  219. grpc_cc_test(
  220. name = "buffer_list_test",
  221. srcs = ["buffer_list_test.cc"],
  222. language = "C++",
  223. deps = [
  224. "//:gpr",
  225. "//:grpc",
  226. "//test/core/util:grpc_test_util",
  227. ],
  228. )
  229. grpc_cc_test(
  230. name = "tcp_server_posix_test",
  231. srcs = ["tcp_server_posix_test.cc"],
  232. language = "C++",
  233. deps = [
  234. "//:gpr",
  235. "//:grpc",
  236. "//test/core/util:grpc_test_util",
  237. ],
  238. )
  239. grpc_cc_test(
  240. name = "time_averaged_stats_test",
  241. srcs = ["time_averaged_stats_test.cc"],
  242. language = "C++",
  243. deps = [
  244. "//:gpr",
  245. "//:grpc",
  246. "//test/core/util:grpc_test_util",
  247. ],
  248. )
  249. grpc_cc_test(
  250. name = "timer_heap_test",
  251. srcs = ["timer_heap_test.cc"],
  252. language = "C++",
  253. deps = [
  254. "//:gpr",
  255. "//:grpc",
  256. "//test/core/util:grpc_test_util",
  257. ],
  258. )
  259. grpc_cc_test(
  260. name = "timer_list_test",
  261. srcs = ["timer_list_test.cc"],
  262. language = "C++",
  263. deps = [
  264. "//:gpr",
  265. "//:grpc",
  266. "//test/core/util:grpc_test_util",
  267. ],
  268. )
  269. grpc_cc_test(
  270. name = "udp_server_test",
  271. srcs = ["udp_server_test.cc"],
  272. language = "C++",
  273. deps = [
  274. "//:gpr",
  275. "//:grpc",
  276. "//test/core/util:grpc_test_util",
  277. ],
  278. )