summaryrefslogtreecommitdiffhomepage
path: root/runsc/sandbox/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/sandbox/BUILD')
-rw-r--r--runsc/sandbox/BUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/runsc/sandbox/BUILD b/runsc/sandbox/BUILD
index e89b19552..a961c3cc7 100644
--- a/runsc/sandbox/BUILD
+++ b/runsc/sandbox/BUILD
@@ -1,6 +1,6 @@
package(licenses = ["notice"]) # Apache 2.0
-load("@io_bazel_rules_go//go:def.bzl", "go_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "sandbox",
@@ -28,3 +28,17 @@ go_library(
"@org_golang_x_sys//unix:go_default_library",
],
)
+
+go_test(
+ name = "sandbox_test",
+ size = "small",
+ srcs = ["sandbox_test.go"],
+ data = [
+ "//runsc",
+ ],
+ embed = [":sandbox"],
+ deps = [
+ "//pkg/log",
+ "//runsc/test/testutil",
+ ],
+)