gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/test/iptables/BUILD (about)

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