gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/test/packetimpact/testbench/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 = "testbench", 10 srcs = [ 11 "connections.go", 12 "dut.go", 13 "dut_client.go", 14 "layers.go", 15 "rawsockets.go", 16 "testbench.go", 17 ], 18 visibility = ["//test/packetimpact:__subpackages__"], 19 deps = [ 20 "//pkg/abi/linux", 21 "//pkg/binary", 22 "//pkg/buffer", 23 "//pkg/hostarch", 24 "//pkg/tcpip", 25 "//pkg/tcpip/checksum", 26 "//pkg/tcpip/header", 27 "//pkg/tcpip/seqnum", 28 "//test/packetimpact/proto:posix_server_go_proto", 29 "@com_github_google_go_cmp//cmp:go_default_library", 30 "@com_github_google_go_cmp//cmp/cmpopts:go_default_library", 31 "@com_github_mohae_deepcopy//:go_default_library", 32 "@org_golang_google_grpc//:go_default_library", 33 "@org_golang_google_grpc//keepalive:go_default_library", 34 "@org_golang_x_sys//unix:go_default_library", 35 "@org_uber_go_multierr//:go_default_library", 36 ], 37 ) 38 39 go_test( 40 name = "testbench_test", 41 size = "small", 42 srcs = ["layers_test.go"], 43 library = ":testbench", 44 deps = [ 45 "//pkg/tcpip", 46 "//pkg/tcpip/header", 47 "@com_github_mohae_deepcopy//:go_default_library", 48 ], 49 )