blob: f6cbb98a9cbbbdccf4ef0760e9383cc3cbcd5799 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "basic_lib",
srcs = ["basic.go"],
importpath = "go.skia.org/infra/task_driver/examples/basic",
visibility = ["//visibility:private"],
deps = [
"//go/exec",
"//go/sklog",
"//task_driver/go/lib/os_steps",
"//task_driver/go/td",
"@com_github_google_uuid//:uuid",
],
)
go_binary(
name = "basic",
embed = [":basic_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "basic_test",
srcs = ["basic_test.go"],
embed = [":basic_lib"],
deps = [
"//go/exec",
"//go/testutils/unittest",
"//task_driver/go/td",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)