BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright 2022 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_package")
  15. licenses(["notice"])
  16. grpc_package(name = "test/core/event_engine/test_suite")
  17. COMMON_HEADERS = ["event_engine_test.h"]
  18. grpc_cc_library(
  19. name = "timer",
  20. testonly = True,
  21. srcs = ["timer_test.cc"],
  22. hdrs = COMMON_HEADERS,
  23. deps = [":conformance_test_base_lib"],
  24. alwayslink = 1,
  25. )
  26. grpc_cc_library(
  27. name = "dns",
  28. testonly = True,
  29. srcs = ["dns_test.cc"],
  30. hdrs = COMMON_HEADERS,
  31. deps = [":conformance_test_base_lib"],
  32. alwayslink = 1,
  33. )
  34. grpc_cc_library(
  35. name = "client",
  36. testonly = True,
  37. srcs = ["client_test.cc"],
  38. hdrs = COMMON_HEADERS,
  39. deps = [":conformance_test_base_lib"],
  40. alwayslink = 1,
  41. )
  42. grpc_cc_library(
  43. name = "server",
  44. testonly = True,
  45. srcs = ["server_test.cc"],
  46. hdrs = COMMON_HEADERS,
  47. deps = [":conformance_test_base_lib"],
  48. alwayslink = 1,
  49. )
  50. grpc_cc_library(
  51. name = "complete",
  52. testonly = 1,
  53. hdrs = COMMON_HEADERS,
  54. deps = [
  55. ":client",
  56. ":dns",
  57. ":server",
  58. ":timer",
  59. ],
  60. alwayslink = 1,
  61. )
  62. # -- Internal targets --
  63. grpc_cc_library(
  64. name = "conformance_test_base_lib",
  65. testonly = True,
  66. srcs = ["event_engine_test.cc"],
  67. hdrs = COMMON_HEADERS,
  68. external_deps = ["gtest"],
  69. deps = [
  70. "//:grpc",
  71. "//test/core/util:grpc_test_util",
  72. ],
  73. )