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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "iptables",
     7      testonly = 1,
     8      srcs = [
     9          "filter_input.go",
    10          "filter_output.go",
    11          "iptables.go",
    12          "iptables_unsafe.go",
    13          "iptables_util.go",
    14          "nat.go",
    15      ],
    16      visibility = ["//test/iptables:__subpackages__"],
    17      deps = [
    18          "//pkg/binary",
    19          "//pkg/hostarch",
    20          "//pkg/test/testutil",
    21          "@org_golang_x_sys//unix:go_default_library",
    22      ],
    23  )
    24  
    25  go_test(
    26      name = "iptables_test",
    27      size = "large",
    28      srcs = [
    29          "iptables_test.go",
    30      ],
    31      data = ["//test/iptables/runner"],
    32      library = ":iptables",
    33      tags = [
    34          "local",
    35          "manual",
    36      ],
    37      deps = [
    38          "//pkg/test/dockerutil",
    39          "//pkg/test/testutil",
    40      ],
    41  )