gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/test/packetimpact/tests/BUILD (about) 1 load("//test/packetimpact/runner:defs.bzl", "ALL_TESTS", "packetimpact_go_test", "packetimpact_testbench", "validate_all_tests") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 default_visibility = ["//test/packetimpact:__subpackages__"], 6 licenses = ["notice"], 7 ) 8 9 packetimpact_testbench( 10 name = "fin_wait2_timeout", 11 srcs = ["fin_wait2_timeout_test.go"], 12 deps = [ 13 "//pkg/tcpip/header", 14 "//test/packetimpact/testbench", 15 "@org_golang_x_sys//unix:go_default_library", 16 ], 17 ) 18 19 packetimpact_testbench( 20 name = "tcp_acceptable_ack_syn_rcvd", 21 srcs = ["tcp_acceptable_ack_syn_rcvd_test.go"], 22 deps = [ 23 "//pkg/tcpip/header", 24 "//test/packetimpact/testbench", 25 "@org_golang_x_sys//unix:go_default_library", 26 ], 27 ) 28 29 packetimpact_testbench( 30 name = "ipv4_id_uniqueness", 31 srcs = ["ipv4_id_uniqueness_test.go"], 32 deps = [ 33 "//pkg/abi/linux", 34 "//pkg/tcpip/header", 35 "//test/packetimpact/testbench", 36 "@org_golang_x_sys//unix:go_default_library", 37 ], 38 ) 39 40 packetimpact_testbench( 41 name = "udp_discard_mcast_source_addr", 42 srcs = ["udp_discard_mcast_source_addr_test.go"], 43 deps = [ 44 "//pkg/tcpip", 45 "//pkg/tcpip/header", 46 "//test/packetimpact/testbench", 47 "@org_golang_x_sys//unix:go_default_library", 48 ], 49 ) 50 51 packetimpact_testbench( 52 name = "udp_any_addr_recv_unicast", 53 srcs = ["udp_any_addr_recv_unicast_test.go"], 54 deps = [ 55 "//pkg/tcpip", 56 "//test/packetimpact/testbench", 57 "@com_github_google_go_cmp//cmp:go_default_library", 58 "@org_golang_x_sys//unix:go_default_library", 59 ], 60 ) 61 62 packetimpact_testbench( 63 name = "udp_icmp_error_propagation", 64 srcs = ["udp_icmp_error_propagation_test.go"], 65 deps = [ 66 "//pkg/tcpip", 67 "//pkg/tcpip/header", 68 "//test/packetimpact/testbench", 69 "@org_golang_x_sys//unix:go_default_library", 70 ], 71 ) 72 73 packetimpact_testbench( 74 name = "tcp_window_shrink", 75 srcs = ["tcp_window_shrink_test.go"], 76 deps = [ 77 "//pkg/tcpip/header", 78 "//test/packetimpact/testbench", 79 "@org_golang_x_sys//unix:go_default_library", 80 ], 81 ) 82 83 packetimpact_testbench( 84 name = "tcp_zero_window_probe", 85 srcs = ["tcp_zero_window_probe_test.go"], 86 deps = [ 87 "//pkg/tcpip/header", 88 "//test/packetimpact/testbench", 89 "@org_golang_x_sys//unix:go_default_library", 90 ], 91 ) 92 93 packetimpact_testbench( 94 name = "tcp_zero_window_probe_retransmit", 95 srcs = ["tcp_zero_window_probe_retransmit_test.go"], 96 deps = [ 97 "//pkg/tcpip/header", 98 "//test/packetimpact/testbench", 99 "@org_golang_x_sys//unix:go_default_library", 100 ], 101 ) 102 103 packetimpact_testbench( 104 name = "tcp_zero_window_probe_usertimeout", 105 srcs = ["tcp_zero_window_probe_usertimeout_test.go"], 106 deps = [ 107 "//pkg/tcpip/header", 108 "//test/packetimpact/testbench", 109 "@org_golang_x_sys//unix:go_default_library", 110 ], 111 ) 112 113 packetimpact_testbench( 114 name = "tcp_retransmits", 115 srcs = ["tcp_retransmits_test.go"], 116 deps = [ 117 "//pkg/abi/linux", 118 "//pkg/tcpip/header", 119 "//test/packetimpact/testbench", 120 "@org_golang_x_sys//unix:go_default_library", 121 ], 122 ) 123 124 packetimpact_testbench( 125 name = "tcp_outside_the_window", 126 srcs = ["tcp_outside_the_window_test.go"], 127 deps = [ 128 "//pkg/tcpip/header", 129 "//pkg/tcpip/seqnum", 130 "//test/packetimpact/testbench", 131 "@org_golang_x_sys//unix:go_default_library", 132 ], 133 ) 134 135 packetimpact_testbench( 136 name = "tcp_noaccept_close_rst", 137 srcs = ["tcp_noaccept_close_rst_test.go"], 138 deps = [ 139 "//pkg/tcpip/header", 140 "//test/packetimpact/testbench", 141 "@org_golang_x_sys//unix:go_default_library", 142 ], 143 ) 144 145 packetimpact_testbench( 146 name = "tcp_send_window_sizes_piggyback", 147 srcs = ["tcp_send_window_sizes_piggyback_test.go"], 148 deps = [ 149 "//pkg/tcpip/header", 150 "//test/packetimpact/testbench", 151 "@org_golang_x_sys//unix:go_default_library", 152 ], 153 ) 154 155 packetimpact_testbench( 156 name = "tcp_unacc_seq_ack", 157 srcs = ["tcp_unacc_seq_ack_test.go"], 158 deps = [ 159 "//pkg/tcpip/header", 160 "//pkg/tcpip/seqnum", 161 "//test/packetimpact/testbench", 162 "@org_golang_x_sys//unix:go_default_library", 163 ], 164 ) 165 166 packetimpact_testbench( 167 name = "tcp_paws_mechanism", 168 srcs = ["tcp_paws_mechanism_test.go"], 169 deps = [ 170 "//pkg/tcpip/header", 171 "//pkg/tcpip/seqnum", 172 "//test/packetimpact/testbench", 173 "@org_golang_x_sys//unix:go_default_library", 174 ], 175 ) 176 177 packetimpact_testbench( 178 name = "tcp_user_timeout", 179 srcs = ["tcp_user_timeout_test.go"], 180 deps = [ 181 "//pkg/tcpip/header", 182 "//test/packetimpact/testbench", 183 "@org_golang_x_sys//unix:go_default_library", 184 ], 185 ) 186 187 packetimpact_testbench( 188 name = "tcp_queue_send_recv_in_syn_sent", 189 srcs = ["tcp_queue_send_recv_in_syn_sent_test.go"], 190 deps = [ 191 "//pkg/tcpip/header", 192 "//test/packetimpact/testbench", 193 "@org_golang_x_sys//unix:go_default_library", 194 ], 195 ) 196 197 packetimpact_testbench( 198 name = "tcp_synsent_reset", 199 srcs = ["tcp_synsent_reset_test.go"], 200 deps = [ 201 "//pkg/abi/linux", 202 "//pkg/tcpip/header", 203 "//test/packetimpact/testbench", 204 "@org_golang_x_sys//unix:go_default_library", 205 ], 206 ) 207 208 packetimpact_testbench( 209 name = "tcp_synrcvd_reset", 210 srcs = ["tcp_synrcvd_reset_test.go"], 211 deps = [ 212 "//pkg/tcpip/header", 213 "//test/packetimpact/testbench", 214 "@org_golang_x_sys//unix:go_default_library", 215 ], 216 ) 217 218 packetimpact_testbench( 219 name = "tcp_network_unreachable", 220 srcs = ["tcp_network_unreachable_test.go"], 221 deps = [ 222 "//pkg/tcpip/header", 223 "//test/packetimpact/testbench", 224 "@org_golang_x_sys//unix:go_default_library", 225 ], 226 ) 227 228 packetimpact_testbench( 229 name = "tcp_cork_mss", 230 srcs = ["tcp_cork_mss_test.go"], 231 deps = [ 232 "//pkg/tcpip/header", 233 "//test/packetimpact/testbench", 234 "@org_golang_x_sys//unix:go_default_library", 235 ], 236 ) 237 238 packetimpact_testbench( 239 name = "tcp_handshake_window_size", 240 srcs = ["tcp_handshake_window_size_test.go"], 241 deps = [ 242 "//pkg/tcpip/header", 243 "//test/packetimpact/testbench", 244 "@org_golang_x_sys//unix:go_default_library", 245 ], 246 ) 247 248 packetimpact_testbench( 249 name = "tcp_timewait_reset", 250 srcs = ["tcp_timewait_reset_test.go"], 251 deps = [ 252 "//pkg/tcpip/header", 253 "//test/packetimpact/testbench", 254 "@org_golang_x_sys//unix:go_default_library", 255 ], 256 ) 257 258 packetimpact_testbench( 259 name = "icmpv6_param_problem", 260 srcs = ["icmpv6_param_problem_test.go"], 261 deps = [ 262 "//pkg/tcpip", 263 "//pkg/tcpip/header", 264 "//test/packetimpact/testbench", 265 "@org_golang_x_sys//unix:go_default_library", 266 ], 267 ) 268 269 packetimpact_testbench( 270 name = "ipv6_unknown_options_action", 271 srcs = ["ipv6_unknown_options_action_test.go"], 272 deps = [ 273 "//pkg/tcpip", 274 "//pkg/tcpip/header", 275 "//test/packetimpact/testbench", 276 "@org_golang_x_sys//unix:go_default_library", 277 ], 278 ) 279 280 packetimpact_testbench( 281 name = "ipv4_fragment_reassembly", 282 srcs = ["ipv4_fragment_reassembly_test.go"], 283 deps = [ 284 "//pkg/tcpip/checksum", 285 "//pkg/tcpip/header", 286 "//test/packetimpact/testbench", 287 "@com_github_google_go_cmp//cmp:go_default_library", 288 "@org_golang_x_sys//unix:go_default_library", 289 ], 290 ) 291 292 packetimpact_testbench( 293 name = "ipv6_fragment_reassembly", 294 srcs = ["ipv6_fragment_reassembly_test.go"], 295 deps = [ 296 "//pkg/tcpip", 297 "//pkg/tcpip/checksum", 298 "//pkg/tcpip/header", 299 "//test/packetimpact/testbench", 300 "@com_github_google_go_cmp//cmp:go_default_library", 301 "@org_golang_x_sys//unix:go_default_library", 302 ], 303 ) 304 305 packetimpact_testbench( 306 name = "ipv6_fragment_icmp_error", 307 srcs = ["ipv6_fragment_icmp_error_test.go"], 308 deps = [ 309 "//pkg/tcpip", 310 "//pkg/tcpip/checksum", 311 "//pkg/tcpip/header", 312 "//pkg/tcpip/network/ipv6", 313 "//test/packetimpact/testbench", 314 "@com_github_google_go_cmp//cmp:go_default_library", 315 "@org_golang_x_sys//unix:go_default_library", 316 ], 317 ) 318 319 packetimpact_testbench( 320 name = "tcp_linger", 321 srcs = ["tcp_linger_test.go"], 322 deps = [ 323 "//pkg/tcpip/header", 324 "//test/packetimpact/testbench", 325 "@org_golang_x_sys//unix:go_default_library", 326 ], 327 ) 328 329 packetimpact_testbench( 330 name = "tcp_rcv_buf_space", 331 srcs = ["tcp_rcv_buf_space_test.go"], 332 deps = [ 333 "//pkg/tcpip/header", 334 "//test/packetimpact/testbench", 335 "@org_golang_x_sys//unix:go_default_library", 336 ], 337 ) 338 339 packetimpact_testbench( 340 name = "tcp_zero_receive_window", 341 srcs = ["tcp_zero_receive_window_test.go"], 342 deps = [ 343 "//pkg/tcpip/header", 344 "//pkg/tcpip/transport/tcp", 345 "//test/packetimpact/testbench", 346 "@org_golang_x_sys//unix:go_default_library", 347 ], 348 ) 349 350 packetimpact_testbench( 351 name = "tcp_rack", 352 srcs = ["tcp_rack_test.go"], 353 deps = [ 354 "//pkg/abi/linux", 355 "//pkg/tcpip/header", 356 "//pkg/tcpip/seqnum", 357 "//test/packetimpact/testbench", 358 "@org_golang_x_sys//unix:go_default_library", 359 ], 360 ) 361 362 packetimpact_testbench( 363 name = "tcp_info", 364 srcs = ["tcp_info_test.go"], 365 deps = [ 366 "//pkg/abi/linux", 367 "//pkg/tcpip/header", 368 "//test/packetimpact/testbench", 369 "@org_golang_x_sys//unix:go_default_library", 370 ], 371 ) 372 373 packetimpact_testbench( 374 name = "tcp_fin_retransmission", 375 srcs = ["tcp_fin_retransmission_test.go"], 376 deps = [ 377 "//pkg/tcpip/header", 378 "//test/packetimpact/testbench", 379 "@org_golang_x_sys//unix:go_default_library", 380 ], 381 ) 382 383 packetimpact_testbench( 384 name = "tcp_listen_backlog", 385 srcs = ["tcp_listen_backlog_test.go"], 386 deps = [ 387 "//pkg/tcpip/header", 388 "//test/packetimpact/testbench", 389 "@org_golang_x_sys//unix:go_default_library", 390 ], 391 ) 392 393 packetimpact_testbench( 394 name = "tcp_syncookie", 395 srcs = ["tcp_syncookie_test.go"], 396 deps = [ 397 "//pkg/tcpip/header", 398 "//test/packetimpact/testbench", 399 "@com_github_google_go_cmp//cmp:go_default_library", 400 "@org_golang_x_sys//unix:go_default_library", 401 ], 402 ) 403 404 packetimpact_testbench( 405 name = "tcp_connect_icmp_error", 406 srcs = ["tcp_connect_icmp_error_test.go"], 407 deps = [ 408 "//pkg/tcpip/header", 409 "//test/packetimpact/testbench", 410 "@org_golang_x_sys//unix:go_default_library", 411 ], 412 ) 413 414 packetimpact_testbench( 415 name = "generic_dgram_socket_send_recv", 416 srcs = ["generic_dgram_socket_send_recv_test.go"], 417 deps = [ 418 "//pkg/tcpip", 419 "//pkg/tcpip/header", 420 "//test/packetimpact/testbench", 421 "@com_github_google_go_cmp//cmp:go_default_library", 422 "@org_golang_x_sys//unix:go_default_library", 423 ], 424 ) 425 426 validate_all_tests() 427 428 [packetimpact_go_test( 429 name = t.name, 430 timeout = t.timeout if hasattr(t, "timeout") else "moderate", 431 expect_netstack_failure = hasattr(t, "expect_netstack_failure"), 432 num_duts = t.num_duts if hasattr(t, "num_duts") else 1, 433 ) for t in ALL_TESTS] 434 435 test_suite( 436 name = "all_tests", 437 tags = [ 438 "manual", 439 "notap", 440 "packetimpact", 441 ], 442 tests = existing_rules(), 443 )