BUILD 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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 = "logical_thread_test",
  125. srcs = ["logical_thread_test.cc"],
  126. exec_properties = LARGE_MACHINE,
  127. external_deps = [
  128. "gtest",
  129. ],
  130. language = "C++",
  131. tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
  132. deps = [
  133. "//:gpr",
  134. "//:grpc",
  135. "//test/core/util:grpc_test_util",
  136. ],
  137. )
  138. grpc_cc_test(
  139. name = "mpmcqueue_test",
  140. srcs = ["mpmcqueue_test.cc"],
  141. language = "C++",
  142. uses_polling = False,
  143. deps = [
  144. "//:gpr",
  145. "//:grpc",
  146. "//test/core/util:grpc_test_util",
  147. ],
  148. )
  149. grpc_cc_test(
  150. name = "resolve_address_using_ares_resolver_posix_test",
  151. srcs = ["resolve_address_posix_test.cc"],
  152. args = [
  153. "--resolver=ares",
  154. ],
  155. language = "C++",
  156. tags = ["no_windows"],
  157. deps = [
  158. "//:gpr",
  159. "//:grpc",
  160. "//test/core/util:grpc_test_util",
  161. ],
  162. )
  163. grpc_cc_test(
  164. name = "resolve_address_using_native_resolver_posix_test",
  165. srcs = ["resolve_address_posix_test.cc"],
  166. args = [
  167. "--resolver=native",
  168. ],
  169. language = "C++",
  170. tags = ["no_windows"],
  171. deps = [
  172. "//:gpr",
  173. "//:grpc",
  174. "//test/core/util:grpc_test_util",
  175. ],
  176. )
  177. grpc_cc_test(
  178. name = "resolve_address_using_ares_resolver_test",
  179. srcs = ["resolve_address_test.cc"],
  180. args = [
  181. "--resolver=ares",
  182. ],
  183. language = "C++",
  184. deps = [
  185. "//:gpr",
  186. "//:grpc",
  187. "//test/core/util:grpc_test_util",
  188. ],
  189. )
  190. grpc_cc_test(
  191. name = "resolve_address_using_native_resolver_test",
  192. srcs = ["resolve_address_test.cc"],
  193. args = [
  194. "--resolver=native",
  195. ],
  196. language = "C++",
  197. deps = [
  198. "//:gpr",
  199. "//:grpc",
  200. "//test/core/util:grpc_test_util",
  201. ],
  202. )
  203. grpc_cc_test(
  204. name = "resource_quota_test",
  205. srcs = ["resource_quota_test.cc"],
  206. language = "C++",
  207. deps = [
  208. "//:gpr",
  209. "//:grpc",
  210. "//test/core/util:grpc_test_util",
  211. ],
  212. )
  213. grpc_cc_test(
  214. name = "sockaddr_utils_test",
  215. srcs = ["sockaddr_utils_test.cc"],
  216. language = "C++",
  217. deps = [
  218. "//:gpr",
  219. "//:grpc",
  220. "//test/core/util:grpc_test_util",
  221. ],
  222. )
  223. grpc_cc_test(
  224. name = "socket_utils_test",
  225. srcs = ["socket_utils_test.cc"],
  226. language = "C++",
  227. tags = ["no_windows"],
  228. deps = [
  229. "//:gpr",
  230. "//:grpc",
  231. "//test/core/util:grpc_test_util",
  232. ],
  233. )
  234. grpc_cc_test(
  235. name = "tcp_client_posix_test",
  236. srcs = ["tcp_client_posix_test.cc"],
  237. language = "C++",
  238. tags = ["no_windows"],
  239. deps = [
  240. "//:gpr",
  241. "//:grpc",
  242. "//test/core/util:grpc_test_util",
  243. ],
  244. )
  245. grpc_cc_test(
  246. name = "tcp_posix_test",
  247. srcs = ["tcp_posix_test.cc"],
  248. language = "C++",
  249. tags = [
  250. "no_mac", # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
  251. "no_windows",
  252. ],
  253. deps = [
  254. ":endpoint_tests",
  255. "//:gpr",
  256. "//:grpc",
  257. "//test/core/util:grpc_test_util",
  258. ],
  259. )
  260. grpc_cc_test(
  261. name = "buffer_list_test",
  262. srcs = ["buffer_list_test.cc"],
  263. language = "C++",
  264. deps = [
  265. "//:gpr",
  266. "//:grpc",
  267. "//test/core/util:grpc_test_util",
  268. ],
  269. )
  270. grpc_cc_test(
  271. name = "tcp_server_posix_test",
  272. srcs = ["tcp_server_posix_test.cc"],
  273. language = "C++",
  274. tags = ["no_windows"],
  275. deps = [
  276. "//:gpr",
  277. "//:grpc",
  278. "//test/core/util:grpc_test_util",
  279. ],
  280. )
  281. grpc_cc_test(
  282. name = "threadpool_test",
  283. srcs = ["threadpool_test.cc"],
  284. language = "C++",
  285. uses_polling = False,
  286. deps = [
  287. "//:gpr",
  288. "//:grpc",
  289. "//test/core/util:grpc_test_util",
  290. ],
  291. )
  292. grpc_cc_test(
  293. name = "time_averaged_stats_test",
  294. srcs = ["time_averaged_stats_test.cc"],
  295. language = "C++",
  296. uses_polling = False,
  297. deps = [
  298. "//:gpr",
  299. "//:grpc",
  300. "//test/core/util:grpc_test_util",
  301. ],
  302. )
  303. grpc_cc_test(
  304. name = "timer_heap_test",
  305. srcs = ["timer_heap_test.cc"],
  306. language = "C++",
  307. uses_polling = False,
  308. deps = [
  309. "//:gpr",
  310. "//:grpc",
  311. "//test/core/util:grpc_test_util",
  312. ],
  313. )
  314. grpc_cc_test(
  315. name = "timer_list_test",
  316. srcs = ["timer_list_test.cc"],
  317. language = "C++",
  318. uses_polling = False,
  319. deps = [
  320. "//:gpr",
  321. "//:grpc",
  322. "//test/core/util:grpc_test_util",
  323. ],
  324. )
  325. grpc_cc_test(
  326. name = "udp_server_test",
  327. srcs = ["udp_server_test.cc"],
  328. language = "C++",
  329. tags = ["no_windows"],
  330. deps = [
  331. "//:gpr",
  332. "//:grpc",
  333. "//test/core/util:grpc_test_util",
  334. ],
  335. )