blob: 84e0f2da651d2e6c69a3d5c89ccb7250f3c698fa [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "standalone",
srcs = [
"gputable.go",
"standalone.go",
"standalone_darwin.go",
"standalone_linux.go",
"standalone_windows.go",
],
importpath = "go.skia.org/infra/machine/go/test_machine_monitor/standalone",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"//go/sklog",
"//go/util",
"@net_howett_plist//:plist",
] + select({
"@io_bazel_rules_go//go/platform:darwin": [
"//machine/go/common",
"@com_github_shirou_gopsutil//host",
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:ios": [
"//machine/go/common",
"@com_github_shirou_gopsutil//host",
"@org_golang_x_sys//unix",
],
"//conditions:default": [],
}),
)
go_test(
name = "standalone_test",
srcs = [
"standalone_darwin_test.go",
"standalone_test.go",
],
embed = [":standalone"],
deps = [
"//go/testutils/unittest",
"@com_github_stretchr_testify//assert",
],
)