BUILD 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
  15. load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
  16. licenses(["notice"]) # Apache v2
  17. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  18. grpc_package(
  19. name = "test/core/iomgr",
  20. visibility = "public",
  21. ) # Useful for third party devs to test their io manager implementation.
  22. grpc_cc_library(
  23. name = "endpoint_tests",
  24. srcs = ["endpoint_tests.cc"],
  25. hdrs = ["endpoint_tests.h"],
  26. language = "C++",
  27. visibility = ["//test:__subpackages__"],
  28. deps = [
  29. "//:gpr",
  30. "//:grpc",
  31. "//test/core/util:grpc_test_util",
  32. ],
  33. )
  34. grpc_cc_test(
  35. name = "combiner_test",
  36. srcs = ["combiner_test.cc"],
  37. exec_properties = LARGE_MACHINE,
  38. language = "C++",
  39. tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
  40. deps = [
  41. "//:gpr",
  42. "//:grpc",
  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:grpc_test_util",
  55. ],
  56. )
  57. grpc_cc_test(
  58. name = "error_test",
  59. srcs = ["error_test.cc"],
  60. language = "C++",
  61. uses_polling = False,
  62. deps = [
  63. ":endpoint_tests",
  64. "//:gpr",
  65. "//:grpc",
  66. "//test/core/util:grpc_test_util",
  67. ],
  68. )
  69. grpc_cc_test(
  70. name = "ev_epollex_linux_test",
  71. srcs = ["ev_epollex_linux_test.cc"],
  72. language = "C++",
  73. tags = ["no_windows"],
  74. deps = [
  75. "//:gpr",
  76. "//:grpc",
  77. "//test/core/util:grpc_test_util",
  78. ],
  79. )
  80. grpc_cc_test(
  81. name = "fd_conservation_posix_test",
  82. srcs = ["fd_conservation_posix_test.cc"],
  83. language = "C++",
  84. tags = ["no_windows"],
  85. deps = [
  86. "//:gpr",
  87. "//:grpc",
  88. "//test/core/util:grpc_test_util",
  89. ],
  90. )
  91. grpc_cc_test(
  92. name = "fd_posix_test",
  93. srcs = ["fd_posix_test.cc"],
  94. language = "C++",
  95. tags = ["no_windows"],
  96. deps = [
  97. "//:gpr",
  98. "//:grpc",
  99. "//test/core/util:grpc_test_util",
  100. ],
  101. )
  102. grpc_cc_test(
  103. name = "grpc_ipv6_loopback_available_test",
  104. srcs = ["grpc_ipv6_loopback_available_test.cc"],
  105. language = "C++",
  106. deps = [
  107. "//:gpr",
  108. "//:grpc",
  109. "//test/core/util:grpc_test_util",
  110. ],
  111. )
  112. grpc_cc_test(
  113. name = "load_file_test",
  114. srcs = ["load_file_test.cc"],
  115. language = "C++",
  116. uses_polling = False,
  117. deps = [
  118. "//:gpr",
  119. "//:grpc",
  120. "//test/core/util:grpc_test_util",
  121. ],
  122. )
  123. grpc_cc_test(
  124. name = "work_serializer_test",
  125. srcs = ["work_serializer_test.cc"],
  126. exec_properties = LARGE_MACHINE,
  127. external_deps = [
  128. "gtest",
  129. ],
  130. language = "C++",
  131. tags = [
  132. "no_windows", # LARGE_MACHINE is not configured for windows RBE
  133. ],
  134. deps = [
  135. "//:gpr",
  136. "//:grpc",
  137. "//test/core/util:grpc_test_util",
  138. ],
  139. )
  140. grpc_cc_test(
  141. name = "mpmcqueue_test",
  142. srcs = ["mpmcqueue_test.cc"],
  143. language = "C++",
  144. uses_polling = False,
  145. deps = [
  146. "//:gpr",
  147. "//:grpc",
  148. "//test/core/util:grpc_test_util",
  149. ],
  150. )
  151. grpc_cc_test(
  152. name = "resolve_address_using_ares_resolver_posix_test",
  153. srcs = ["resolve_address_posix_test.cc"],
  154. args = [
  155. "--resolver=ares",
  156. ],
  157. language = "C++",
  158. tags = ["no_windows"],
  159. deps = [
  160. "//:gpr",
  161. "//:grpc",
  162. "//test/core/util:grpc_test_util",
  163. ],
  164. )
  165. grpc_cc_test(
  166. name = "resolve_address_using_native_resolver_posix_test",
  167. srcs = ["resolve_address_posix_test.cc"],
  168. args = [
  169. "--resolver=native",
  170. ],
  171. language = "C++",
  172. tags = ["no_windows"],
  173. deps = [
  174. "//:gpr",
  175. "//:grpc",
  176. "//test/core/util:grpc_test_util",
  177. ],
  178. )
  179. grpc_cc_test(
  180. name = "resolve_address_using_ares_resolver_test",
  181. srcs = ["resolve_address_test.cc"],
  182. args = [
  183. "--resolver=ares",
  184. ],
  185. language = "C++",
  186. deps = [
  187. "//:gpr",
  188. "//:grpc",
  189. "//test/core/util:grpc_test_util",
  190. ],
  191. )
  192. grpc_cc_test(
  193. name = "resolve_address_using_native_resolver_test",
  194. srcs = ["resolve_address_test.cc"],
  195. args = [
  196. "--resolver=native",
  197. ],
  198. language = "C++",
  199. deps = [
  200. "//:gpr",
  201. "//:grpc",
  202. "//test/core/util:grpc_test_util",
  203. ],
  204. )
  205. grpc_cc_test(
  206. name = "resource_quota_test",
  207. srcs = ["resource_quota_test.cc"],
  208. language = "C++",
  209. deps = [
  210. "//:gpr",
  211. "//:grpc",
  212. "//test/core/util:grpc_test_util",
  213. ],
  214. )
  215. grpc_cc_test(
  216. name = "sockaddr_utils_test",
  217. srcs = ["sockaddr_utils_test.cc"],
  218. external_deps = [
  219. "gtest",
  220. ],
  221. language = "C++",
  222. deps = [
  223. "//:gpr",
  224. "//:grpc",
  225. "//test/core/util:grpc_test_util",
  226. ],
  227. )
  228. grpc_cc_test(
  229. name = "socket_utils_test",
  230. srcs = ["socket_utils_test.cc"],
  231. language = "C++",
  232. tags = ["no_windows"],
  233. deps = [
  234. "//:gpr",
  235. "//:grpc",
  236. "//test/core/util:grpc_test_util",
  237. ],
  238. )
  239. grpc_cc_test(
  240. name = "tcp_client_posix_test",
  241. srcs = ["tcp_client_posix_test.cc"],
  242. language = "C++",
  243. tags = ["no_windows"],
  244. deps = [
  245. "//:gpr",
  246. "//:grpc",
  247. "//test/core/util:grpc_test_util",
  248. ],
  249. )
  250. grpc_cc_test(
  251. name = "tcp_posix_test",
  252. srcs = ["tcp_posix_test.cc"],
  253. language = "C++",
  254. tags = [
  255. "no_mac", # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
  256. "no_windows",
  257. ],
  258. deps = [
  259. ":endpoint_tests",
  260. "//:gpr",
  261. "//:grpc",
  262. "//test/core/util:grpc_test_util",
  263. ],
  264. )
  265. grpc_cc_test(
  266. name = "buffer_list_test",
  267. srcs = ["buffer_list_test.cc"],
  268. language = "C++",
  269. deps = [
  270. "//:gpr",
  271. "//:grpc",
  272. "//test/core/util:grpc_test_util",
  273. ],
  274. )
  275. grpc_cc_test(
  276. name = "tcp_server_posix_test",
  277. srcs = ["tcp_server_posix_test.cc"],
  278. language = "C++",
  279. tags = ["no_windows"],
  280. deps = [
  281. "//:gpr",
  282. "//:grpc",
  283. "//test/core/util:grpc_test_util",
  284. ],
  285. )
  286. grpc_cc_test(
  287. name = "threadpool_test",
  288. srcs = ["threadpool_test.cc"],
  289. language = "C++",
  290. uses_polling = False,
  291. deps = [
  292. "//:gpr",
  293. "//:grpc",
  294. "//test/core/util:grpc_test_util",
  295. ],
  296. )
  297. grpc_cc_test(
  298. name = "time_averaged_stats_test",
  299. srcs = ["time_averaged_stats_test.cc"],
  300. language = "C++",
  301. uses_polling = False,
  302. deps = [
  303. "//:gpr",
  304. "//:grpc",
  305. "//test/core/util:grpc_test_util",
  306. ],
  307. )
  308. grpc_cc_test(
  309. name = "timer_heap_test",
  310. srcs = ["timer_heap_test.cc"],
  311. language = "C++",
  312. uses_polling = False,
  313. deps = [
  314. "//:gpr",
  315. "//:grpc",
  316. "//test/core/util:grpc_test_util",
  317. ],
  318. )
  319. grpc_cc_test(
  320. name = "timer_list_test",
  321. srcs = ["timer_list_test.cc"],
  322. language = "C++",
  323. uses_polling = False,
  324. deps = [
  325. "//:gpr",
  326. "//:grpc",
  327. "//test/core/util:grpc_test_util",
  328. ],
  329. )
  330. grpc_cc_test(
  331. name = "udp_server_test",
  332. srcs = ["udp_server_test.cc"],
  333. language = "C++",
  334. tags = ["no_windows"],
  335. deps = [
  336. "//:gpr",
  337. "//:grpc",
  338. "//test/core/util:grpc_test_util",
  339. ],
  340. )
  341. grpc_cc_test(
  342. name = "stranded_event_test",
  343. srcs = ["stranded_event_test.cc"],
  344. external_deps = [
  345. "gtest",
  346. ],
  347. language = "C++",
  348. tags = [
  349. # TODO(apolcyn): This test is failing on Windows at entry, enable once passing.
  350. # See e.g. https://source.cloud.google.com/results/invocations/6716596a-c9e1-4780-85ed-890d8758d582/targets
  351. "no_windows",
  352. ],
  353. deps = [
  354. "//:gpr",
  355. "//:grpc",
  356. "//test/core/end2end:cq_verifier",
  357. "//test/core/util:grpc_test_util",
  358. ],
  359. )
  360. grpc_cc_test(
  361. name = "parse_address_test",
  362. srcs = ["parse_address_test.cc"],
  363. language = "C++",
  364. deps = [
  365. "//:gpr",
  366. "//:grpc",
  367. "//test/core/util:grpc_test_util",
  368. ],
  369. )
  370. grpc_cc_test(
  371. name = "parse_address_with_named_scope_id_test",
  372. srcs = ["parse_address_with_named_scope_id_test.cc"],
  373. language = "C++",
  374. tags = ["no_windows"],
  375. uses_polling = False,
  376. deps = [
  377. "//:gpr",
  378. "//:grpc",
  379. "//test/core/util:grpc_test_util",
  380. ],
  381. )