BUILD 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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")
  15. licenses(["notice"]) # Apache v2
  16. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  17. package(
  18. default_visibility = ["//visibility:public"], # Useful for third party devs to test their io manager implementation.
  19. features = [
  20. "-layering_check",
  21. "-parse_headers",
  22. ],
  23. )
  24. grpc_cc_library(
  25. name = "endpoint_tests",
  26. srcs = ["endpoint_tests.c"],
  27. hdrs = ["endpoint_tests.h"],
  28. language = "C",
  29. visibility = ["//test:__subpackages__"],
  30. deps = [
  31. "//:gpr",
  32. "//:grpc",
  33. "//test/core/util:gpr_test_util",
  34. "//test/core/util:grpc_test_util",
  35. ],
  36. )
  37. grpc_cc_test(
  38. name = "combiner_test",
  39. srcs = ["combiner_test.c"],
  40. language = "C",
  41. deps = [
  42. "//:gpr",
  43. "//:grpc",
  44. "//test/core/util:gpr_test_util",
  45. "//test/core/util:grpc_test_util",
  46. ],
  47. )
  48. grpc_cc_test(
  49. name = "endpoint_pair_test",
  50. srcs = ["endpoint_pair_test.c"],
  51. language = "C",
  52. deps = [
  53. ":endpoint_tests",
  54. "//:gpr",
  55. "//:grpc",
  56. "//test/core/util:gpr_test_util",
  57. "//test/core/util:grpc_test_util",
  58. ],
  59. )
  60. grpc_cc_test(
  61. name = "ev_epollsig_linux_test",
  62. srcs = ["ev_epollsig_linux_test.c"],
  63. deps = [
  64. "//:gpr",
  65. "//:grpc",
  66. "//test/core/util:gpr_test_util",
  67. "//test/core/util:grpc_test_util",
  68. ],
  69. language = "C",
  70. )
  71. grpc_cc_test(
  72. name = "fd_conservation_posix_test",
  73. srcs = ["fd_conservation_posix_test.c"],
  74. language = "C",
  75. deps = [
  76. "//:gpr",
  77. "//:grpc",
  78. "//test/core/util:gpr_test_util",
  79. "//test/core/util:grpc_test_util",
  80. ],
  81. )
  82. grpc_cc_test(
  83. name = "fd_posix_test",
  84. srcs = ["fd_posix_test.c"],
  85. language = "C",
  86. deps = [
  87. "//:gpr",
  88. "//:grpc",
  89. "//test/core/util:gpr_test_util",
  90. "//test/core/util:grpc_test_util",
  91. ],
  92. )
  93. grpc_cc_test(
  94. name = "load_file_test",
  95. srcs = ["load_file_test.c"],
  96. language = "C",
  97. deps = [
  98. "//:gpr",
  99. "//:grpc",
  100. "//test/core/util:gpr_test_util",
  101. "//test/core/util:grpc_test_util",
  102. ],
  103. )
  104. grpc_cc_test(
  105. name = "pollset_set_test",
  106. srcs = ["pollset_set_test.c"],
  107. language = "C",
  108. deps = [
  109. "//:gpr",
  110. "//:grpc",
  111. "//test/core/util:gpr_test_util",
  112. "//test/core/util:grpc_test_util",
  113. ],
  114. )
  115. grpc_cc_test(
  116. name = "resolve_address_posix_test",
  117. srcs = ["resolve_address_posix_test.c"],
  118. language = "C",
  119. deps = [
  120. "//:gpr",
  121. "//:grpc",
  122. "//test/core/util:gpr_test_util",
  123. "//test/core/util:grpc_test_util",
  124. ],
  125. )
  126. grpc_cc_test(
  127. name = "resolve_address_test",
  128. srcs = ["resolve_address_test.c"],
  129. language = "C",
  130. deps = [
  131. "//:gpr",
  132. "//:grpc",
  133. "//test/core/util:gpr_test_util",
  134. "//test/core/util:grpc_test_util",
  135. ],
  136. )
  137. grpc_cc_test(
  138. name = "resource_quota_test",
  139. srcs = ["resource_quota_test.c"],
  140. language = "C",
  141. deps = [
  142. "//:gpr",
  143. "//:grpc",
  144. "//test/core/util:gpr_test_util",
  145. "//test/core/util:grpc_test_util",
  146. ],
  147. )
  148. grpc_cc_test(
  149. name = "sockaddr_utils_test",
  150. srcs = ["sockaddr_utils_test.c"],
  151. language = "C",
  152. deps = [
  153. "//:gpr",
  154. "//:grpc",
  155. "//test/core/util:gpr_test_util",
  156. "//test/core/util:grpc_test_util",
  157. ],
  158. )
  159. grpc_cc_test(
  160. name = "socket_utils_test",
  161. srcs = ["socket_utils_test.c"],
  162. language = "C",
  163. deps = [
  164. "//:gpr",
  165. "//:grpc",
  166. "//test/core/util:gpr_test_util",
  167. "//test/core/util:grpc_test_util",
  168. ],
  169. )
  170. grpc_cc_test(
  171. name = "tcp_client_posix_test",
  172. srcs = ["tcp_client_posix_test.c"],
  173. language = "C",
  174. deps = [
  175. "//:gpr",
  176. "//:grpc",
  177. "//test/core/util:gpr_test_util",
  178. "//test/core/util:grpc_test_util",
  179. ],
  180. )
  181. grpc_cc_test(
  182. name = "tcp_posix_test",
  183. srcs = ["tcp_posix_test.c"],
  184. language = "C",
  185. deps = [
  186. ":endpoint_tests",
  187. "//:gpr",
  188. "//:grpc",
  189. "//test/core/util:gpr_test_util",
  190. "//test/core/util:grpc_test_util",
  191. ],
  192. )
  193. grpc_cc_test(
  194. name = "tcp_server_posix_test",
  195. srcs = ["tcp_server_posix_test.c"],
  196. language = "C",
  197. deps = [
  198. "//:gpr",
  199. "//:grpc",
  200. "//test/core/util:gpr_test_util",
  201. "//test/core/util:grpc_test_util",
  202. ],
  203. )
  204. grpc_cc_test(
  205. name = "time_averaged_stats_test",
  206. srcs = ["time_averaged_stats_test.c"],
  207. language = "C",
  208. deps = [
  209. "//:gpr",
  210. "//:grpc",
  211. "//test/core/util:gpr_test_util",
  212. "//test/core/util:grpc_test_util",
  213. ],
  214. )
  215. grpc_cc_test(
  216. name = "timer_heap_test",
  217. srcs = ["timer_heap_test.c"],
  218. language = "C",
  219. deps = [
  220. "//:gpr",
  221. "//:grpc",
  222. "//test/core/util:gpr_test_util",
  223. "//test/core/util:grpc_test_util",
  224. ],
  225. )
  226. grpc_cc_test(
  227. name = "timer_list_test",
  228. srcs = ["timer_list_test.c"],
  229. language = "C",
  230. deps = [
  231. "//:gpr",
  232. "//:grpc",
  233. "//test/core/util:gpr_test_util",
  234. "//test/core/util:grpc_test_util",
  235. ],
  236. )
  237. grpc_cc_test(
  238. name = "udp_server_test",
  239. srcs = ["udp_server_test.c"],
  240. language = "C",
  241. deps = [
  242. "//:gpr",
  243. "//:grpc",
  244. "//test/core/util:gpr_test_util",
  245. "//test/core/util:grpc_test_util",
  246. ],
  247. )
  248. grpc_cc_test(
  249. name = "wakeup_fd_cv_test",
  250. srcs = ["wakeup_fd_cv_test.c"],
  251. language = "C",
  252. deps = [
  253. "//:gpr",
  254. "//:grpc",
  255. "//test/core/util:gpr_test_util",
  256. "//test/core/util:grpc_test_util",
  257. ],
  258. )