blob: 653320739661478e187376a40c777c60456d6c94 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "crossplatform",
srcs = ["crossplatform.go"],
importpath = "go.skia.org/infra/machine/go/test_machine_monitor/standalone/crossplatform",
visibility = ["//visibility:public"],
deps = [
"//go/exec",
"//go/skerr",
"@com_github_shirou_gopsutil//host",
"@com_google_cloud_go_compute_metadata//:metadata",
],
)
go_test(
name = "crossplatform_test",
srcs = ["crossplatform_test.go"],
embed = [":crossplatform"],
deps = [
"//go/exec",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)