2018-10-04 03:43:18 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
2019-01-31 19:11:44 +00:00
|
|
|
package(licenses = ["notice"])
|
2018-10-23 07:19:11 +00:00
|
|
|
|
2018-10-04 03:43:18 +00:00
|
|
|
go_library(
|
|
|
|
name = "root",
|
|
|
|
srcs = ["root.go"],
|
2019-09-04 05:01:34 +00:00
|
|
|
importpath = "gvisor.dev/gvisor/test/root",
|
2018-10-04 03:43:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "root_test",
|
|
|
|
size = "small",
|
2018-10-11 18:56:42 +00:00
|
|
|
srcs = [
|
|
|
|
"cgroup_test.go",
|
|
|
|
"chroot_test.go",
|
2018-11-02 01:28:12 +00:00
|
|
|
"crictl_test.go",
|
2019-09-06 02:20:24 +00:00
|
|
|
"main_test.go",
|
|
|
|
"oom_score_adj_test.go",
|
|
|
|
],
|
|
|
|
data = [
|
|
|
|
"//runsc",
|
2018-10-11 18:56:42 +00:00
|
|
|
],
|
2018-10-04 03:43:18 +00:00
|
|
|
embed = [":root"],
|
|
|
|
tags = [
|
|
|
|
# Requires docker and runsc to be configured before the test runs.
|
|
|
|
# Also test only runs as root.
|
|
|
|
"manual",
|
|
|
|
"local",
|
|
|
|
],
|
2019-09-04 05:01:34 +00:00
|
|
|
visibility = ["//:sandbox"],
|
2018-10-04 03:43:18 +00:00
|
|
|
deps = [
|
2019-09-06 02:20:24 +00:00
|
|
|
"//runsc/boot",
|
2019-02-26 03:20:52 +00:00
|
|
|
"//runsc/cgroup",
|
2019-09-06 02:20:24 +00:00
|
|
|
"//runsc/container",
|
2019-09-04 05:01:34 +00:00
|
|
|
"//runsc/criutil",
|
|
|
|
"//runsc/dockerutil",
|
2018-10-04 03:43:18 +00:00
|
|
|
"//runsc/specutils",
|
2019-09-04 05:01:34 +00:00
|
|
|
"//runsc/testutil",
|
|
|
|
"//test/root/testdata",
|
2019-09-06 02:20:24 +00:00
|
|
|
"@com_github_opencontainers_runtime-spec//specs-go:go_default_library",
|
2018-10-04 03:43:18 +00:00
|
|
|
"@com_github_syndtr_gocapability//capability:go_default_library",
|
|
|
|
],
|
|
|
|
)
|