blob: 8ce1bfad18d5a353384cf8714114803483390b0a [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "censustaker_lib",
srcs = [
"arp.go",
"censustaker.go",
"edgeswitchinterfaces.go",
],
importpath = "go.skia.org/infra/skolo/go/censustaker",
visibility = ["//visibility:private"],
deps = [
"//go/executil",
"//go/skerr",
"//skolo/go/powercycle",
],
)
go_binary(
name = "censustaker",
embed = [":censustaker_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "censustaker_test",
srcs = ["censustaker_test.go"],
embed = [":censustaker_lib"],
deps = [
"//go/executil",
"//skolo/go/powercycle",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)