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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      licenses = ["notice"],
     5  )
     6  
     7  go_library(
     8      name = "testbench",
     9      srcs = [
    10          "connections.go",
    11          "dut.go",
    12          "dut_client.go",
    13          "layers.go",
    14          "rawsockets.go",
    15          "testbench.go",
    16      ],
    17      visibility = ["//test/packetimpact:__subpackages__"],
    18      deps = [
    19          "//pkg/abi/linux",
    20          "//pkg/binary",
    21          "//pkg/hostarch",
    22          "//pkg/tcpip",
    23          "//pkg/tcpip/buffer",
    24          "//pkg/tcpip/header",
    25          "//pkg/tcpip/seqnum",
    26          "//test/packetimpact/proto:posix_server_go_proto",
    27          "@com_github_google_go_cmp//cmp:go_default_library",
    28          "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
    29          "@com_github_mohae_deepcopy//:go_default_library",
    30          "@org_golang_google_grpc//:go_default_library",
    31          "@org_golang_google_grpc//keepalive:go_default_library",
    32          "@org_golang_x_sys//unix:go_default_library",
    33          "@org_uber_go_multierr//:go_default_library",
    34      ],
    35  )
    36  
    37  go_test(
    38      name = "testbench_test",
    39      size = "small",
    40      srcs = ["layers_test.go"],
    41      library = ":testbench",
    42      deps = [
    43          "//pkg/tcpip",
    44          "//pkg/tcpip/header",
    45          "@com_github_mohae_deepcopy//:go_default_library",
    46      ],
    47  )