Mateusz Zalega | fed8fe5 | 2022-07-14 16:19:35 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | go_test( |
| 4 | name = "metroctl_test", |
| 5 | srcs = ["test.go"], |
| 6 | data = [ |
| 7 | "//metropolis/cli/metroctl", |
| 8 | "//metropolis/node:image", |
| 9 | "//metropolis/node:swtpm_data", |
| 10 | "//third_party/edk2:firmware", |
| 11 | ], |
| 12 | rundir = ".", |
| 13 | deps = [ |
| 14 | "//metropolis/cli/pkg/datafile", |
| 15 | "//metropolis/node", |
| 16 | "//metropolis/pkg/cmd", |
| 17 | "//metropolis/test/launch/cluster", |
| 18 | "//metropolis/test/util", |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | go_library( |
| 23 | name = "test_lib", |
| 24 | srcs = ["test.go"], |
| 25 | importpath = "source.monogon.dev/metropolis/cli/metroctl/test", |
| 26 | visibility = ["//visibility:private"], |
| 27 | deps = [ |
| 28 | "//metropolis/cli/pkg/datafile", |
| 29 | "//metropolis/pkg/cmd", |
| 30 | "//metropolis/test/launch/cluster", |
| 31 | "//metropolis/test/util", |
| 32 | ], |
| 33 | ) |