mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Kubernetes benchmarks: Add compressed variant of each benchmark binary.
Used within Google for benchmarking. PiperOrigin-RevId: 696268797
This commit is contained in:
committed by
gVisor bot
parent
191c16fd34
commit
4f92c2873f
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user