BUILD 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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_package")
  15. load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
  16. licenses(["notice"])
  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 = [
  27. "//test:__subpackages__",
  28. "@grpc:endpoint_tests",
  29. ],
  30. deps = [
  31. "//:gpr",
  32. "//:grpc",
  33. "//test/core/util:grpc_test_util",
  34. ],
  35. )
  36. grpc_cc_test(
  37. name = "combiner_test",
  38. srcs = ["combiner_test.cc"],
  39. exec_properties = LARGE_MACHINE,
  40. language = "C++",
  41. tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
  42. deps = [
  43. "//:gpr",
  44. "//:grpc",
  45. "//test/core/util:grpc_test_util",
  46. ],
  47. )
  48. grpc_cc_test(
  49. name = "endpoint_pair_test",
  50. srcs = ["endpoint_pair_test.cc"],
  51. language = "C++",
  52. deps = [
  53. ":endpoint_tests",
  54. "//:gpr",
  55. "//:grpc",
  56. "//test/core/util:grpc_test_util",
  57. ],
  58. )
  59. grpc_cc_test(
  60. name = "error_test",
  61. srcs = ["error_test.cc"],
  62. external_deps = [
  63. "gtest",
  64. ],
  65. language = "C++",
  66. uses_polling = False,
  67. deps = [
  68. ":endpoint_tests",
  69. "//:gpr",
  70. "//:grpc",
  71. "//test/core/util:grpc_test_util",
  72. ],
  73. )
  74. grpc_cc_test(
  75. name = "ev_epollex_linux_test",
  76. srcs = ["ev_epollex_linux_test.cc"],
  77. language = "C++",
  78. tags = ["no_windows"],
  79. deps = [
  80. "//:gpr",
  81. "//:grpc",
  82. "//test/core/util:grpc_test_util",
  83. ],
  84. )
  85. grpc_cc_test(
  86. name = "fd_conservation_posix_test",
  87. srcs = ["fd_conservation_posix_test.cc"],
  88. language = "C++",
  89. tags = ["no_windows"],
  90. deps = [
  91. "//:gpr",
  92. "//:grpc",
  93. "//test/core/util:grpc_test_util",
  94. ],
  95. )
  96. grpc_cc_test(
  97. name = "fd_posix_test",
  98. srcs = ["fd_posix_test.cc"],
  99. language = "C++",
  100. tags = ["no_windows"],
  101. deps = [
  102. "//:gpr",
  103. "//:grpc",
  104. "//test/core/util:grpc_test_util",
  105. ],
  106. )
  107. grpc_cc_test(
  108. name = "grpc_ipv6_loopback_available_test",
  109. srcs = ["grpc_ipv6_loopback_available_test.cc"],
  110. language = "C++",
  111. deps = [
  112. "//:gpr",
  113. "//:grpc",
  114. "//test/core/util:grpc_test_util",
  115. ],
  116. )
  117. grpc_cc_test(
  118. name = "load_file_test",
  119. srcs = ["load_file_test.cc"],
  120. language = "C++",
  121. uses_polling = False,
  122. deps = [
  123. "//:gpr",
  124. "//:grpc",
  125. "//test/core/util:grpc_test_util",
  126. ],
  127. )
  128. grpc_cc_test(
  129. name = "work_serializer_test",
  130. srcs = ["work_serializer_test.cc"],
  131. exec_properties = LARGE_MACHINE,
  132. external_deps = [
  133. "gtest",
  134. ],
  135. language = "C++",
  136. tags = [
  137. "no_windows", # LARGE_MACHINE is not configured for windows RBE
  138. ],
  139. deps = [
  140. "//:gpr",
  141. "//:grpc",
  142. "//test/core/util:grpc_test_util",
  143. ],
  144. )
  145. grpc_cc_test(
  146. name = "mpmcqueue_test",
  147. srcs = ["mpmcqueue_test.cc"],
  148. language = "C++",
  149. uses_polling = False,
  150. deps = [
  151. "//:gpr",
  152. "//:grpc",
  153. "//test/core/util:grpc_test_util",
  154. ],
  155. )
  156. grpc_cc_test(
  157. name = "resolve_address_using_ares_resolver_posix_test",
  158. srcs = ["resolve_address_posix_test.cc"],
  159. args = [
  160. "--resolver=ares",
  161. ],
  162. external_deps = [
  163. "absl/strings",
  164. ],
  165. language = "C++",
  166. tags = ["no_windows"],
  167. deps = [
  168. "//:gpr",
  169. "//:grpc",
  170. "//test/core/util:grpc_test_util",
  171. ],
  172. )
  173. grpc_cc_test(
  174. name = "resolve_address_using_native_resolver_posix_test",
  175. srcs = ["resolve_address_posix_test.cc"],
  176. args = [
  177. "--resolver=native",
  178. ],
  179. external_deps = [
  180. "absl/strings",
  181. ],
  182. language = "C++",
  183. tags = ["no_windows"],
  184. deps = [
  185. "//:gpr",
  186. "//:grpc",
  187. "//test/core/util:grpc_test_util",
  188. ],
  189. )
  190. grpc_cc_test(
  191. name = "resolve_address_using_ares_resolver_test",
  192. srcs = ["resolve_address_test.cc"],
  193. external_deps = [
  194. "absl/strings",
  195. "gtest",
  196. ],
  197. language = "C++",
  198. deps = [
  199. "//:gpr",
  200. "//:grpc",
  201. "//test/core/util:fake_udp_and_tcp_server",
  202. "//test/core/util:grpc_test_util",
  203. "//test/cpp/util:test_config",
  204. ],
  205. )
  206. grpc_cc_test(
  207. name = "resolve_address_using_native_resolver_test",
  208. srcs = ["resolve_address_test.cc"],
  209. external_deps = [
  210. "absl/strings",
  211. "gtest",
  212. ],
  213. language = "C++",
  214. deps = [
  215. "//:gpr",
  216. "//:grpc",
  217. "//test/core/util:fake_udp_and_tcp_server",
  218. "//test/core/util:grpc_test_util",
  219. "//test/cpp/util:test_config",
  220. ],
  221. )
  222. grpc_cc_test(
  223. name = "socket_utils_test",
  224. srcs = ["socket_utils_test.cc"],
  225. language = "C++",
  226. tags = ["no_windows"],
  227. deps = [
  228. "//:gpr",
  229. "//:grpc",
  230. "//test/core/util:grpc_test_util",
  231. ],
  232. )
  233. grpc_cc_test(
  234. name = "tcp_client_posix_test",
  235. srcs = ["tcp_client_posix_test.cc"],
  236. language = "C++",
  237. tags = ["no_windows"],
  238. deps = [
  239. "//:gpr",
  240. "//:grpc",
  241. "//test/core/util:grpc_test_util",
  242. ],
  243. )
  244. grpc_cc_test(
  245. name = "tcp_posix_test",
  246. srcs = ["tcp_posix_test.cc"],
  247. language = "C++",
  248. tags = [
  249. "no_mac", # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
  250. "no_windows",
  251. ],
  252. deps = [
  253. ":endpoint_tests",
  254. "//:gpr",
  255. "//:grpc",
  256. "//test/core/util:grpc_test_util",
  257. ],
  258. )
  259. grpc_cc_test(
  260. name = "buffer_list_test",
  261. srcs = ["buffer_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 = "tcp_server_posix_test",
  271. srcs = ["tcp_server_posix_test.cc"],
  272. language = "C++",
  273. tags = ["no_windows"],
  274. deps = [
  275. "//:gpr",
  276. "//:grpc",
  277. "//test/core/util:grpc_test_util",
  278. ],
  279. )
  280. grpc_cc_test(
  281. name = "threadpool_test",
  282. srcs = ["threadpool_test.cc"],
  283. language = "C++",
  284. uses_polling = False,
  285. deps = [
  286. "//:gpr",
  287. "//:grpc",
  288. "//test/core/util:grpc_test_util",
  289. ],
  290. )
  291. grpc_cc_test(
  292. name = "time_averaged_stats_test",
  293. srcs = ["time_averaged_stats_test.cc"],
  294. language = "C++",
  295. uses_polling = False,
  296. deps = [
  297. "//:gpr",
  298. "//:grpc",
  299. "//test/core/util:grpc_test_util",
  300. ],
  301. )
  302. grpc_cc_test(
  303. name = "timer_heap_test",
  304. srcs = ["timer_heap_test.cc"],
  305. language = "C++",
  306. uses_polling = False,
  307. deps = [
  308. "//:gpr",
  309. "//:grpc",
  310. "//test/core/util:grpc_test_util",
  311. ],
  312. )
  313. grpc_cc_test(
  314. name = "timer_list_test",
  315. srcs = ["timer_list_test.cc"],
  316. language = "C++",
  317. uses_polling = False,
  318. deps = [
  319. "//:gpr",
  320. "//:grpc",
  321. "//test/core/util:grpc_test_util",
  322. ],
  323. )
  324. grpc_cc_test(
  325. name = "stranded_event_test",
  326. srcs = ["stranded_event_test.cc"],
  327. external_deps = [
  328. "gtest",
  329. ],
  330. language = "C++",
  331. tags = [
  332. # TODO(apolcyn): This test is failing on Windows at entry, enable once passing.
  333. # See e.g. https://source.cloud.google.com/results/invocations/6716596a-c9e1-4780-85ed-890d8758d582/targets
  334. "no_windows",
  335. ],
  336. deps = [
  337. "//:gpr",
  338. "//:grpc",
  339. "//test/core/end2end:cq_verifier",
  340. "//test/core/util:grpc_test_util",
  341. ],
  342. )