github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/test/dockerutil/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "dockerutil",
     7      testonly = 1,
     8      srcs = [
     9          "container.go",
    10          "dockerutil.go",
    11          "exec.go",
    12          "network.go",
    13          "profile.go",
    14      ],
    15      visibility = ["//:sandbox"],
    16      deps = [
    17          "//pkg/test/testutil",
    18          "@com_github_docker_docker//api/types:go_default_library",
    19          "@com_github_docker_docker//api/types/container:go_default_library",
    20          "@com_github_docker_docker//api/types/mount:go_default_library",
    21          "@com_github_docker_docker//api/types/network:go_default_library",
    22          "@com_github_docker_docker//client:go_default_library",
    23          "@com_github_docker_docker//pkg/stdcopy:go_default_library",
    24          "@com_github_docker_go_connections//nat:go_default_library",
    25          "@org_golang_x_sys//unix:go_default_library",
    26      ],
    27  )
    28  
    29  go_test(
    30      name = "profile_test",
    31      size = "large",
    32      srcs = [
    33          "profile_test.go",
    34      ],
    35      library = ":dockerutil",
    36      tags = [
    37          # Requires docker and runsc to be configured before test runs.
    38          # Also requires the test to be run as root.
    39          "local",
    40          "manual",
    41      ],
    42      visibility = ["//:sandbox"],
    43  )