Skip to content

Commit

Permalink
Merge pull request redpanda-data#24384 from IoannisRP/ik-bazel-tests-rpc
Browse files Browse the repository at this point in the history
rpc: bazelize some tests
  • Loading branch information
IoannisRP authored Dec 2, 2024
2 parents 60f864d + 9329d9d commit 4273a7c
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion src/v/rpc/test/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//bazel:test.bzl", "redpanda_cc_btest")
load("//bazel:test.bzl", "redpanda_cc_bench", "redpanda_cc_btest")
load("//src/v/rpc:compiler.bzl", "redpanda_cc_rpc_library")

redpanda_cc_btest(
Expand Down Expand Up @@ -65,6 +65,55 @@ redpanda_cc_btest(
],
)

redpanda_cc_btest(
name = "exponential_backoff",
timeout = "short",
srcs = [
"exponential_backoff.cc",
],
cpu = 1,
deps = [
"//src/v/rpc",
"//src/v/test_utils:seastar_boost",
"@boost//:test",
"@seastar",
"@seastar//:testing",
],
)

redpanda_cc_btest(
name = "connection_cache_test",
timeout = "short",
srcs = [
"connection_cache_test.cc",
],
cpu = 1,
deps = [
"//src/v/base",
"//src/v/config",
"//src/v/model",
"//src/v/rpc",
"//src/v/test_utils:seastar_boost",
"@abseil-cpp//absl/container:flat_hash_map",
"@boost//:test",
"@seastar",
"@seastar//:testing",
],
)

redpanda_cc_bench(
name = "rpc_bench",
timeout = "short",
srcs = [
"rpc_bench.cc",
],
deps = [
"//src/v/reflection:adl",
"@seastar",
"@seastar//:benchmark",
],
)

redpanda_cc_rpc_library(
name = "cycling_rpc",
src = "cycling_service.json",
Expand Down

0 comments on commit 4273a7c

Please sign in to comment.