github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/tests/integration/BUILD (about) 1 load("//tools:defs.bzl", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_test( 6 name = "forward_test", 7 size = "small", 8 srcs = ["forward_test.go"], 9 deps = [ 10 "//pkg/tcpip", 11 "//pkg/tcpip/checker", 12 "//pkg/tcpip/header", 13 "//pkg/tcpip/link/channel", 14 "//pkg/tcpip/network/arp", 15 "//pkg/tcpip/network/ipv4", 16 "//pkg/tcpip/network/ipv6", 17 "//pkg/tcpip/stack", 18 "//pkg/tcpip/tests/utils", 19 "//pkg/tcpip/testutil", 20 "//pkg/tcpip/transport/tcp", 21 "//pkg/tcpip/transport/udp", 22 "//pkg/waiter", 23 "@com_github_google_go_cmp//cmp:go_default_library", 24 ], 25 ) 26 27 go_test( 28 name = "iptables_test", 29 size = "small", 30 srcs = ["iptables_test.go"], 31 deps = [ 32 "//pkg/tcpip", 33 "//pkg/tcpip/buffer", 34 "//pkg/tcpip/checker", 35 "//pkg/tcpip/header", 36 "//pkg/tcpip/link/channel", 37 "//pkg/tcpip/network/ipv4", 38 "//pkg/tcpip/network/ipv6", 39 "//pkg/tcpip/stack", 40 "//pkg/tcpip/tests/utils", 41 "//pkg/tcpip/testutil", 42 "//pkg/tcpip/transport/udp", 43 ], 44 ) 45 46 go_test( 47 name = "link_resolution_test", 48 size = "small", 49 srcs = ["link_resolution_test.go"], 50 deps = [ 51 "//pkg/tcpip", 52 "//pkg/tcpip/buffer", 53 "//pkg/tcpip/checker", 54 "//pkg/tcpip/faketime", 55 "//pkg/tcpip/header", 56 "//pkg/tcpip/link/channel", 57 "//pkg/tcpip/link/pipe", 58 "//pkg/tcpip/network/arp", 59 "//pkg/tcpip/network/ipv4", 60 "//pkg/tcpip/network/ipv6", 61 "//pkg/tcpip/stack", 62 "//pkg/tcpip/tests/utils", 63 "//pkg/tcpip/testutil", 64 "//pkg/tcpip/transport/icmp", 65 "//pkg/tcpip/transport/tcp", 66 "//pkg/tcpip/transport/udp", 67 "//pkg/waiter", 68 "@com_github_google_go_cmp//cmp:go_default_library", 69 "@com_github_google_go_cmp//cmp/cmpopts:go_default_library", 70 ], 71 ) 72 73 go_test( 74 name = "loopback_test", 75 size = "small", 76 srcs = ["loopback_test.go"], 77 deps = [ 78 "//pkg/tcpip", 79 "//pkg/tcpip/buffer", 80 "//pkg/tcpip/checker", 81 "//pkg/tcpip/header", 82 "//pkg/tcpip/link/channel", 83 "//pkg/tcpip/link/loopback", 84 "//pkg/tcpip/network/ipv4", 85 "//pkg/tcpip/network/ipv6", 86 "//pkg/tcpip/stack", 87 "//pkg/tcpip/tests/utils", 88 "//pkg/tcpip/testutil", 89 "//pkg/tcpip/transport/icmp", 90 "//pkg/tcpip/transport/tcp", 91 "//pkg/tcpip/transport/udp", 92 "//pkg/waiter", 93 "@com_github_google_go_cmp//cmp:go_default_library", 94 ], 95 ) 96 97 go_test( 98 name = "multicast_broadcast_test", 99 size = "small", 100 srcs = ["multicast_broadcast_test.go"], 101 deps = [ 102 "//pkg/tcpip", 103 "//pkg/tcpip/buffer", 104 "//pkg/tcpip/checker", 105 "//pkg/tcpip/header", 106 "//pkg/tcpip/link/channel", 107 "//pkg/tcpip/link/loopback", 108 "//pkg/tcpip/network/ipv4", 109 "//pkg/tcpip/network/ipv6", 110 "//pkg/tcpip/stack", 111 "//pkg/tcpip/tests/utils", 112 "//pkg/tcpip/testutil", 113 "//pkg/tcpip/transport/icmp", 114 "//pkg/tcpip/transport/udp", 115 "//pkg/waiter", 116 "@com_github_google_go_cmp//cmp:go_default_library", 117 ], 118 ) 119 120 go_test( 121 name = "route_test", 122 size = "small", 123 srcs = ["route_test.go"], 124 deps = [ 125 "//pkg/tcpip", 126 "//pkg/tcpip/buffer", 127 "//pkg/tcpip/checker", 128 "//pkg/tcpip/header", 129 "//pkg/tcpip/link/channel", 130 "//pkg/tcpip/link/loopback", 131 "//pkg/tcpip/network/ipv4", 132 "//pkg/tcpip/network/ipv6", 133 "//pkg/tcpip/stack", 134 "//pkg/tcpip/tests/utils", 135 "//pkg/tcpip/testutil", 136 "//pkg/tcpip/transport/icmp", 137 "//pkg/tcpip/transport/udp", 138 "//pkg/waiter", 139 "@com_github_google_go_cmp//cmp:go_default_library", 140 ], 141 )