Kubernetes benchmarks: Add compressed variant of each benchmark binary.

Used within Google for benchmarking.

PiperOrigin-RevId: 696268797
This commit is contained in:
Etienne Perot
2024-11-13 14:22:22 -08:00
committed by gVisor bot
parent 191c16fd34
commit 4f92c2873f
+39 -1
View File
@@ -1,10 +1,48 @@
load("//tools:defs.bzl", "go_test")
load("//tools:defs.bzl", "go_test", "pkg_tar")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:sandbox"],
licenses = ["notice"],
)
_PACKAGE = "//test/kubernetes/benchmarks"
_ALL_BENCHMARK_TARGETS = [
"%s:%s" %
(
_PACKAGE,
f.replace(".go", ""),
)
for f in glob(["**/*_test.go"])
]
genquery(
name = "all_benchmark_targets",
testonly = True,
expression = " union ".join(_ALL_BENCHMARK_TARGETS),
scope = _ALL_BENCHMARK_TARGETS,
)
filegroup(
name = "all_benchmark_test_binaries",
testonly = True,
srcs = _ALL_BENCHMARK_TARGETS,
)
[pkg_tar(
name = "%s_tar" % (src[src.index(":") + 1:],),
testonly = True,
srcs = [src],
extension = "tar.bz2",
) for src in _ALL_BENCHMARK_TARGETS]
filegroup(
name = "all_benchmark_test_binaries_tar",
testonly = True,
srcs = ["%s_tar" % (src[src.index(":") + 1:],) for src in _ALL_BENCHMARK_TARGETS],
)
go_test(
name = "abslbuild_test",
srcs = ["abslbuild_test.go"],