BUILD 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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:gpr_test_util",
  31. "//test/core/util:grpc_test_util",
  32. ],
  33. )
  34. grpc_cc_test(
  35. name = "combiner_test",
  36. srcs = ["combiner_test.cc"],
  37. exec_compatible_with = ["//third_party/toolchains/machine_size:large"],
  38. language = "C++",
  39. deps = [
  40. "//:gpr",
  41. "//:grpc",
  42. "//test/core/util:gpr_test_util",
  43. "//test/core/util:grpc_test_util",
  44. ],
  45. )
  46. grpc_cc_test(
  47. name = "endpoint_pair_test",
  48. srcs = ["endpoint_pair_test.cc"],
  49. language = "C++",
  50. deps = [
  51. ":endpoint_tests",
  52. "//:gpr",
  53. "//:grpc",
  54. "//test/core/util:gpr_test_util",
  55. "//test/core/util:grpc_test_util",
  56. ],
  57. )
  58. grpc_cc_test(
  59. name = "error_test",
  60. srcs = ["error_test.cc"],
  61. language = "C++",
  62. deps = [
  63. ":endpoint_tests",
  64. "//:gpr",
  65. "//:grpc",
  66. "//test/core/util:gpr_test_util",
  67. "//test/core/util:grpc_test_util",
  68. ],
  69. )
  70. grpc_cc_test(
  71. name = "ev_epollex_linux_test",
  72. srcs = ["ev_epollex_linux_test.cc"],
  73. language = "C++",
  74. deps = [
  75. "//:gpr",
  76. "//:grpc",
  77. "//test/core/util:gpr_test_util",
  78. "//test/core/util:grpc_test_util",
  79. ],
  80. )
  81. grpc_cc_test(
  82. name = "fd_conservation_posix_test",
  83. srcs = ["fd_conservation_posix_test.cc"],
  84. language = "C++",
  85. deps = [
  86. "//:gpr",
  87. "//:grpc",
  88. "//test/core/util:gpr_test_util",
  89. "//test/core/util:grpc_test_util",
  90. ],
  91. )
  92. grpc_cc_test(
  93. name = "fd_posix_test",
  94. srcs = ["fd_posix_test.cc"],
  95. language = "C++",
  96. deps = [
  97. "//:gpr",
  98. "//:grpc",
  99. "//test/core/util:gpr_test_util",
  100. "//test/core/util:grpc_test_util",
  101. ],
  102. )
  103. grpc_cc_test(
  104. name = "grpc_ipv6_loopback_available_test",
  105. srcs = ["grpc_ipv6_loopback_available_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. grpc_cc_test(
  115. name = "load_file_test",
  116. srcs = ["load_file_test.cc"],
  117. language = "C++",
  118. deps = [
  119. "//:gpr",
  120. "//:grpc",
  121. "//test/core/util:gpr_test_util",
  122. "//test/core/util:grpc_test_util",
  123. ],
  124. )
  125. grpc_cc_test(
  126. name = "resolve_address_posix_test",
  127. srcs = ["resolve_address_posix_test.cc"],
  128. language = "C++",
  129. deps = [
  130. "//:gpr",
  131. "//:grpc",
  132. "//test/core/util:gpr_test_util",
  133. "//test/core/util:grpc_test_util",
  134. ],
  135. )
  136. grpc_cc_test(
  137. name = "resolve_address_using_ares_resolver_test",
  138. srcs = ["resolve_address_test.cc"],
  139. args = [
  140. "--resolver=ares",
  141. ],
  142. language = "C++",
  143. deps = [
  144. "//:gpr",
  145. "//:grpc",
  146. "//test/core/util:gpr_test_util",
  147. "//test/core/util:grpc_test_util",
  148. ],
  149. )
  150. grpc_cc_test(
  151. name = "resolve_address_using_native_resolver_test",
  152. srcs = ["resolve_address_test.cc"],
  153. args = [
  154. "--resolver=native",
  155. ],
  156. language = "C++",
  157. deps = [
  158. "//:gpr",
  159. "//:grpc",
  160. "//test/core/util:gpr_test_util",
  161. "//test/core/util:grpc_test_util",
  162. ],
  163. )
  164. grpc_cc_test(
  165. name = "resource_quota_test",
  166. srcs = ["resource_quota_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. grpc_cc_test(
  176. name = "sockaddr_utils_test",
  177. srcs = ["sockaddr_utils_test.cc"],
  178. language = "C++",
  179. deps = [
  180. "//:gpr",
  181. "//:grpc",
  182. "//test/core/util:gpr_test_util",
  183. "//test/core/util:grpc_test_util",
  184. ],
  185. )
  186. grpc_cc_test(
  187. name = "socket_utils_test",
  188. srcs = ["socket_utils_test.cc"],
  189. language = "C++",
  190. deps = [
  191. "//:gpr",
  192. "//:grpc",
  193. "//test/core/util:gpr_test_util",
  194. "//test/core/util:grpc_test_util",
  195. ],
  196. )
  197. grpc_cc_test(
  198. name = "tcp_client_posix_test",
  199. srcs = ["tcp_client_posix_test.cc"],
  200. language = "C++",
  201. deps = [
  202. "//:gpr",
  203. "//:grpc",
  204. "//test/core/util:gpr_test_util",
  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:gpr_test_util",
  217. "//test/core/util:grpc_test_util",
  218. ],
  219. )
  220. grpc_cc_test(
  221. name = "buffer_list_test",
  222. srcs = ["buffer_list_test.cc"],
  223. language = "C++",
  224. deps = [
  225. "//:gpr",
  226. "//:grpc",
  227. "//test/core/util:gpr_test_util",
  228. "//test/core/util:grpc_test_util",
  229. ],
  230. )
  231. grpc_cc_test(
  232. name = "tcp_server_posix_test",
  233. srcs = ["tcp_server_posix_test.cc"],
  234. language = "C++",
  235. tags = ["manual"], # TODO(adelez): Remove once this works on Foundry.
  236. deps = [
  237. "//:gpr",
  238. "//:grpc",
  239. "//test/core/util:gpr_test_util",
  240. "//test/core/util:grpc_test_util",
  241. ],
  242. )
  243. grpc_cc_test(
  244. name = "time_averaged_stats_test",
  245. srcs = ["time_averaged_stats_test.cc"],
  246. language = "C++",
  247. deps = [
  248. "//:gpr",
  249. "//:grpc",
  250. "//test/core/util:gpr_test_util",
  251. "//test/core/util:grpc_test_util",
  252. ],
  253. )
  254. grpc_cc_test(
  255. name = "timer_heap_test",
  256. srcs = ["timer_heap_test.cc"],
  257. language = "C++",
  258. deps = [
  259. "//:gpr",
  260. "//:grpc",
  261. "//test/core/util:gpr_test_util",
  262. "//test/core/util:grpc_test_util",
  263. ],
  264. )
  265. grpc_cc_test(
  266. name = "timer_list_test",
  267. srcs = ["timer_list_test.cc"],
  268. language = "C++",
  269. deps = [
  270. "//:gpr",
  271. "//:grpc",
  272. "//test/core/util:gpr_test_util",
  273. "//test/core/util:grpc_test_util",
  274. ],
  275. )
  276. grpc_cc_test(
  277. name = "udp_server_test",
  278. srcs = ["udp_server_test.cc"],
  279. language = "C++",
  280. deps = [
  281. "//:gpr",
  282. "//:grpc",
  283. "//test/core/util:gpr_test_util",
  284. "//test/core/util:grpc_test_util",
  285. ],
  286. )
  287. grpc_cc_test(
  288. name = "wakeup_fd_cv_test",
  289. srcs = ["wakeup_fd_cv_test.cc"],
  290. language = "C++",
  291. deps = [
  292. "//:gpr",
  293. "//:grpc",
  294. "//test/core/util:gpr_test_util",
  295. "//test/core/util:grpc_test_util",
  296. ],
  297. )