BUILD 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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", "LARGE_MACHINE", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "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_properties = LARGE_MACHINE,
  37. language = "C++",
  38. tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
  39. deps = [
  40. "//:gpr",
  41. "//:grpc",
  42. "//test/core/util:grpc_test_util",
  43. ],
  44. )
  45. grpc_cc_test(
  46. name = "endpoint_pair_test",
  47. srcs = ["endpoint_pair_test.cc"],
  48. language = "C++",
  49. deps = [
  50. ":endpoint_tests",
  51. "//:gpr",
  52. "//:grpc",
  53. "//test/core/util:grpc_test_util",
  54. ],
  55. )
  56. grpc_cc_test(
  57. name = "error_test",
  58. srcs = ["error_test.cc"],
  59. language = "C++",
  60. uses_polling = False,
  61. deps = [
  62. ":endpoint_tests",
  63. "//:gpr",
  64. "//:grpc",
  65. "//test/core/util:grpc_test_util",
  66. ],
  67. )
  68. grpc_cc_test(
  69. name = "ev_epollex_linux_test",
  70. srcs = ["ev_epollex_linux_test.cc"],
  71. language = "C++",
  72. tags = ["no_windows"],
  73. deps = [
  74. "//:gpr",
  75. "//:grpc",
  76. "//test/core/util:grpc_test_util",
  77. ],
  78. )
  79. grpc_cc_test(
  80. name = "fd_conservation_posix_test",
  81. srcs = ["fd_conservation_posix_test.cc"],
  82. language = "C++",
  83. tags = ["no_windows"],
  84. deps = [
  85. "//:gpr",
  86. "//:grpc",
  87. "//test/core/util:grpc_test_util",
  88. ],
  89. )
  90. grpc_cc_test(
  91. name = "fd_posix_test",
  92. srcs = ["fd_posix_test.cc"],
  93. language = "C++",
  94. tags = ["no_windows"],
  95. deps = [
  96. "//:gpr",
  97. "//:grpc",
  98. "//test/core/util:grpc_test_util",
  99. ],
  100. )
  101. grpc_cc_test(
  102. name = "grpc_ipv6_loopback_available_test",
  103. srcs = ["grpc_ipv6_loopback_available_test.cc"],
  104. language = "C++",
  105. deps = [
  106. "//:gpr",
  107. "//:grpc",
  108. "//test/core/util:grpc_test_util",
  109. ],
  110. )
  111. grpc_cc_test(
  112. name = "load_file_test",
  113. srcs = ["load_file_test.cc"],
  114. language = "C++",
  115. uses_polling = False,
  116. deps = [
  117. "//:gpr",
  118. "//:grpc",
  119. "//test/core/util:grpc_test_util",
  120. ],
  121. )
  122. grpc_cc_test(
  123. name = "mpmcqueue_test",
  124. srcs = ["mpmcqueue_test.cc"],
  125. language = "C++",
  126. uses_polling = False,
  127. deps = [
  128. "//:gpr",
  129. "//:grpc",
  130. "//test/core/util:grpc_test_util",
  131. ],
  132. )
  133. grpc_cc_test(
  134. name = "resolve_address_using_ares_resolver_posix_test",
  135. srcs = ["resolve_address_posix_test.cc"],
  136. args = [
  137. "--resolver=ares",
  138. ],
  139. language = "C++",
  140. tags = ["no_windows"],
  141. deps = [
  142. "//:gpr",
  143. "//:grpc",
  144. "//test/core/util:grpc_test_util",
  145. ],
  146. )
  147. grpc_cc_test(
  148. name = "resolve_address_using_native_resolver_posix_test",
  149. srcs = ["resolve_address_posix_test.cc"],
  150. args = [
  151. "--resolver=native",
  152. ],
  153. language = "C++",
  154. tags = ["no_windows"],
  155. deps = [
  156. "//:gpr",
  157. "//:grpc",
  158. "//test/core/util:grpc_test_util",
  159. ],
  160. )
  161. grpc_cc_test(
  162. name = "resolve_address_using_ares_resolver_test",
  163. srcs = ["resolve_address_test.cc"],
  164. args = [
  165. "--resolver=ares",
  166. ],
  167. language = "C++",
  168. deps = [
  169. "//:gpr",
  170. "//:grpc",
  171. "//test/core/util:grpc_test_util",
  172. ],
  173. )
  174. grpc_cc_test(
  175. name = "resolve_address_using_native_resolver_test",
  176. srcs = ["resolve_address_test.cc"],
  177. args = [
  178. "--resolver=native",
  179. ],
  180. language = "C++",
  181. deps = [
  182. "//:gpr",
  183. "//:grpc",
  184. "//test/core/util:grpc_test_util",
  185. ],
  186. )
  187. grpc_cc_test(
  188. name = "resource_quota_test",
  189. srcs = ["resource_quota_test.cc"],
  190. language = "C++",
  191. deps = [
  192. "//:gpr",
  193. "//:grpc",
  194. "//test/core/util:grpc_test_util",
  195. ],
  196. )
  197. grpc_cc_test(
  198. name = "sockaddr_utils_test",
  199. srcs = ["sockaddr_utils_test.cc"],
  200. language = "C++",
  201. deps = [
  202. "//:gpr",
  203. "//:grpc",
  204. "//test/core/util:grpc_test_util",
  205. ],
  206. )
  207. grpc_cc_test(
  208. name = "socket_utils_test",
  209. srcs = ["socket_utils_test.cc"],
  210. language = "C++",
  211. tags = ["no_windows"],
  212. deps = [
  213. "//:gpr",
  214. "//:grpc",
  215. "//test/core/util:grpc_test_util",
  216. ],
  217. )
  218. grpc_cc_test(
  219. name = "tcp_client_posix_test",
  220. srcs = ["tcp_client_posix_test.cc"],
  221. language = "C++",
  222. tags = ["no_windows"],
  223. deps = [
  224. "//:gpr",
  225. "//:grpc",
  226. "//test/core/util:grpc_test_util",
  227. ],
  228. )
  229. grpc_cc_test(
  230. name = "tcp_posix_test",
  231. srcs = ["tcp_posix_test.cc"],
  232. language = "C++",
  233. tags = ["no_windows"],
  234. deps = [
  235. ":endpoint_tests",
  236. "//:gpr",
  237. "//:grpc",
  238. "//test/core/util:grpc_test_util",
  239. ],
  240. )
  241. grpc_cc_test(
  242. name = "buffer_list_test",
  243. srcs = ["buffer_list_test.cc"],
  244. language = "C++",
  245. deps = [
  246. "//:gpr",
  247. "//:grpc",
  248. "//test/core/util:grpc_test_util",
  249. ],
  250. )
  251. grpc_cc_test(
  252. name = "tcp_server_posix_test",
  253. srcs = ["tcp_server_posix_test.cc"],
  254. language = "C++",
  255. tags = ["no_windows"],
  256. deps = [
  257. "//:gpr",
  258. "//:grpc",
  259. "//test/core/util:grpc_test_util",
  260. ],
  261. )
  262. grpc_cc_test(
  263. name = "threadpool_test",
  264. srcs = ["threadpool_test.cc"],
  265. language = "C++",
  266. uses_polling = False,
  267. deps = [
  268. "//:gpr",
  269. "//:grpc",
  270. "//test/core/util:grpc_test_util",
  271. ],
  272. )
  273. grpc_cc_test(
  274. name = "time_averaged_stats_test",
  275. srcs = ["time_averaged_stats_test.cc"],
  276. language = "C++",
  277. uses_polling = False,
  278. deps = [
  279. "//:gpr",
  280. "//:grpc",
  281. "//test/core/util:grpc_test_util",
  282. ],
  283. )
  284. grpc_cc_test(
  285. name = "timer_heap_test",
  286. srcs = ["timer_heap_test.cc"],
  287. language = "C++",
  288. uses_polling = False,
  289. deps = [
  290. "//:gpr",
  291. "//:grpc",
  292. "//test/core/util:grpc_test_util",
  293. ],
  294. )
  295. grpc_cc_test(
  296. name = "timer_list_test",
  297. srcs = ["timer_list_test.cc"],
  298. language = "C++",
  299. uses_polling = False,
  300. deps = [
  301. "//:gpr",
  302. "//:grpc",
  303. "//test/core/util:grpc_test_util",
  304. ],
  305. )
  306. grpc_cc_test(
  307. name = "udp_server_test",
  308. srcs = ["udp_server_test.cc"],
  309. language = "C++",
  310. tags = ["no_windows"],
  311. deps = [
  312. "//:gpr",
  313. "//:grpc",
  314. "//test/core/util:grpc_test_util",
  315. ],
  316. )