blob: df776e3e9ebc3869e79f0181b5f96d91507b2a71 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "run_benchmark",
srcs = [
"benchmark_test_factory.go",
"run_benchmark.go",
"swarming_helpers.go",
"telemetry.go",
],
importpath = "go.skia.org/infra/pinpoint/go/run_benchmark",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"//go/swarming",
"//go/util",
"//pinpoint/go/backends",
"//pinpoint/go/bot_configs",
"//pinpoint/proto/v1:proto",
"@org_chromium_go_luci//swarming/proto/api_v2",
],
)
go_test(
name = "run_benchmark_test",
srcs = [
"benchmark_test_factory_test.go",
"run_benchmark_test.go",
"telemetry_test.go",
],
embed = [":run_benchmark"],
deps = [
"//go/skerr",
"//go/swarming",
"//go/swarming/v2/mocks",
"//pinpoint/go/backends",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//mock",
"@org_chromium_go_luci//swarming/proto/api_v2",
],
)