gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/tests/integration/BUILD (about) 1 load("//tools:defs.bzl", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_test( 9 name = "forward_test", 10 size = "small", 11 srcs = ["forward_test.go"], 12 deps = [ 13 "//pkg/buffer", 14 "//pkg/tcpip", 15 "//pkg/tcpip/checker", 16 "//pkg/tcpip/header", 17 "//pkg/tcpip/link/channel", 18 "//pkg/tcpip/network/arp", 19 "//pkg/tcpip/network/ipv4", 20 "//pkg/tcpip/network/ipv6", 21 "//pkg/tcpip/stack", 22 "//pkg/tcpip/tests/utils", 23 "//pkg/tcpip/testutil", 24 "//pkg/tcpip/transport/tcp", 25 "//pkg/tcpip/transport/udp", 26 "//pkg/waiter", 27 "@com_github_google_go_cmp//cmp:go_default_library", 28 ], 29 ) 30 31 go_test( 32 name = "iptables_test", 33 size = "small", 34 srcs = ["iptables_test.go"], 35 deps = [ 36 "//pkg/buffer", 37 "//pkg/tcpip", 38 "//pkg/tcpip/checker", 39 "//pkg/tcpip/checksum", 40 "//pkg/tcpip/header", 41 "//pkg/tcpip/link/channel", 42 "//pkg/tcpip/link/loopback", 43 "//pkg/tcpip/network/arp", 44 "//pkg/tcpip/network/ipv4", 45 "//pkg/tcpip/network/ipv6", 46 "//pkg/tcpip/prependable", 47 "//pkg/tcpip/stack", 48 "//pkg/tcpip/tests/utils", 49 "//pkg/tcpip/testutil", 50 "//pkg/tcpip/transport/icmp", 51 "//pkg/tcpip/transport/tcp", 52 "//pkg/tcpip/transport/udp", 53 "//pkg/waiter", 54 "@com_github_google_go_cmp//cmp:go_default_library", 55 ], 56 ) 57 58 go_test( 59 name = "link_resolution_test", 60 size = "small", 61 srcs = ["link_resolution_test.go"], 62 deps = [ 63 "//pkg/buffer", 64 "//pkg/sync", 65 "//pkg/tcpip", 66 "//pkg/tcpip/checker", 67 "//pkg/tcpip/checksum", 68 "//pkg/tcpip/faketime", 69 "//pkg/tcpip/header", 70 "//pkg/tcpip/link/channel", 71 "//pkg/tcpip/link/ethernet", 72 "//pkg/tcpip/link/pipe", 73 "//pkg/tcpip/network/arp", 74 "//pkg/tcpip/network/ipv4", 75 "//pkg/tcpip/network/ipv6", 76 "//pkg/tcpip/stack", 77 "//pkg/tcpip/tests/utils", 78 "//pkg/tcpip/testutil", 79 "//pkg/tcpip/transport/icmp", 80 "//pkg/tcpip/transport/tcp", 81 "//pkg/tcpip/transport/udp", 82 "//pkg/waiter", 83 "@com_github_google_go_cmp//cmp:go_default_library", 84 "@com_github_google_go_cmp//cmp/cmpopts:go_default_library", 85 ], 86 ) 87 88 go_test( 89 name = "loopback_test", 90 size = "small", 91 srcs = ["loopback_test.go"], 92 deps = [ 93 "//pkg/buffer", 94 "//pkg/tcpip", 95 "//pkg/tcpip/checker", 96 "//pkg/tcpip/header", 97 "//pkg/tcpip/link/channel", 98 "//pkg/tcpip/link/loopback", 99 "//pkg/tcpip/network/ipv4", 100 "//pkg/tcpip/network/ipv6", 101 "//pkg/tcpip/stack", 102 "//pkg/tcpip/tests/utils", 103 "//pkg/tcpip/testutil", 104 "//pkg/tcpip/transport/icmp", 105 "//pkg/tcpip/transport/tcp", 106 "//pkg/tcpip/transport/udp", 107 "//pkg/waiter", 108 "@com_github_google_go_cmp//cmp:go_default_library", 109 ], 110 ) 111 112 go_test( 113 name = "multicast_broadcast_test", 114 size = "small", 115 srcs = ["multicast_broadcast_test.go"], 116 deps = [ 117 "//pkg/buffer", 118 "//pkg/tcpip", 119 "//pkg/tcpip/checker", 120 "//pkg/tcpip/checksum", 121 "//pkg/tcpip/header", 122 "//pkg/tcpip/link/channel", 123 "//pkg/tcpip/link/loopback", 124 "//pkg/tcpip/network/ipv4", 125 "//pkg/tcpip/network/ipv6", 126 "//pkg/tcpip/prependable", 127 "//pkg/tcpip/stack", 128 "//pkg/tcpip/tests/utils", 129 "//pkg/tcpip/testutil", 130 "//pkg/tcpip/transport/icmp", 131 "//pkg/tcpip/transport/raw", 132 "//pkg/tcpip/transport/udp", 133 "//pkg/waiter", 134 "@com_github_google_go_cmp//cmp:go_default_library", 135 ], 136 ) 137 138 go_test( 139 name = "route_test", 140 size = "small", 141 srcs = ["route_test.go"], 142 deps = [ 143 "//pkg/tcpip", 144 "//pkg/tcpip/checker", 145 "//pkg/tcpip/header", 146 "//pkg/tcpip/link/channel", 147 "//pkg/tcpip/link/loopback", 148 "//pkg/tcpip/network/ipv4", 149 "//pkg/tcpip/network/ipv6", 150 "//pkg/tcpip/stack", 151 "//pkg/tcpip/tests/utils", 152 "//pkg/tcpip/testutil", 153 "//pkg/tcpip/transport/icmp", 154 "//pkg/tcpip/transport/udp", 155 "//pkg/waiter", 156 "@com_github_google_go_cmp//cmp:go_default_library", 157 ], 158 ) 159 160 go_test( 161 name = "istio_test", 162 size = "small", 163 srcs = ["istio_test.go"], 164 deps = [ 165 "//pkg/context", 166 "//pkg/rand", 167 "//pkg/sync", 168 "//pkg/tcpip", 169 "//pkg/tcpip/adapters/gonet", 170 "//pkg/tcpip/header", 171 "//pkg/tcpip/link/loopback", 172 "//pkg/tcpip/link/pipe", 173 "//pkg/tcpip/link/sniffer", 174 "//pkg/tcpip/network/ipv4", 175 "//pkg/tcpip/stack", 176 "//pkg/tcpip/testutil", 177 "//pkg/tcpip/transport/tcp", 178 "@com_github_google_go_cmp//cmp:go_default_library", 179 ], 180 ) 181 182 go_test( 183 name = "multicast_forward_test", 184 size = "small", 185 srcs = ["multicast_forward_test.go"], 186 deps = [ 187 "//pkg/refs", 188 "//pkg/tcpip", 189 "//pkg/tcpip/checker", 190 "//pkg/tcpip/faketime", 191 "//pkg/tcpip/header", 192 "//pkg/tcpip/link/channel", 193 "//pkg/tcpip/network/ipv4", 194 "//pkg/tcpip/network/ipv6", 195 "//pkg/tcpip/stack", 196 "//pkg/tcpip/tests/utils", 197 "//pkg/tcpip/testutil", 198 "//pkg/tcpip/transport/udp", 199 "@com_github_google_go_cmp//cmp:go_default_library", 200 "@com_github_google_go_cmp//cmp/cmpopts:go_default_library", 201 ], 202 )