summaryrefslogtreecommitdiffhomepage
path: root/pkg/shim/v2/runtimeoptions/BUILD
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-08-19 11:43:24 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-19 11:45:46 -0700
commit41777e90ea6a48eadbfdedc71029a634e1a23b5f (patch)
treeb331047f387a42627f5516c1d84616e9e670513f /pkg/shim/v2/runtimeoptions/BUILD
parent33317222917d805edd71f0d2ddd7a208bd57fc4c (diff)
Change runtimeoptions proto handling.
Stolen from cl/327337408 (ascannell is OOO) PiperOrigin-RevId: 327475423
Diffstat (limited to 'pkg/shim/v2/runtimeoptions/BUILD')
-rw-r--r--pkg/shim/v2/runtimeoptions/BUILD16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkg/shim/v2/runtimeoptions/BUILD b/pkg/shim/v2/runtimeoptions/BUILD
index 01716034c..ba2ed1ea7 100644
--- a/pkg/shim/v2/runtimeoptions/BUILD
+++ b/pkg/shim/v2/runtimeoptions/BUILD
@@ -1,4 +1,4 @@
-load("//tools:defs.bzl", "go_library", "proto_library")
+load("//tools:defs.bzl", "go_library", "go_test", "proto_library")
package(licenses = ["notice"])
@@ -14,7 +14,19 @@ go_library(
srcs = ["runtimeoptions.go"],
visibility = ["//pkg/shim/v2:__pkg__"],
deps = [
- "//pkg/shim/v2/runtimeoptions:api_go_proto",
+ ":api_go_proto",
"@com_github_gogo_protobuf//proto:go_default_library",
],
)
+
+go_test(
+ name = "runtimeoptions_test",
+ size = "small",
+ srcs = ["runtimeoptions_test.go"],
+ library = ":runtimeoptions",
+ deps = [
+ "@com_github_containerd_containerd//runtime/v1/shim/v1:go_default_library",
+ "@com_github_containerd_typeurl//:go_default_library",
+ "@com_github_golang_protobuf//proto:go_default_library",
+ ],
+)