gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/test/syscalls/BUILD (about) 1 load("//test/runner:defs.bzl", "syscall_test") 2 load("//tools:defs.bzl", "more_shards", "most_shards") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 # Please keep syscall tests ordered alphabetically by name. 10 11 syscall_test( 12 test = "//test/syscalls/linux:32bit_test", 13 ) 14 15 syscall_test( 16 add_hostinet = True, 17 test = "//test/syscalls/linux:accept_bind_stream_test", 18 ) 19 20 syscall_test( 21 size = "large", 22 add_hostinet = True, 23 shard_count = most_shards, 24 test = "//test/syscalls/linux:accept_bind_test", 25 ) 26 27 syscall_test( 28 add_fusefs = True, 29 add_overlay = True, 30 test = "//test/syscalls/linux:access_test", 31 ) 32 33 syscall_test( 34 test = "//test/syscalls/linux:affinity_test", 35 ) 36 37 syscall_test( 38 add_overlay = True, 39 test = "//test/syscalls/linux:aio_test", 40 ) 41 42 syscall_test( 43 size = "medium", 44 shard_count = more_shards, 45 test = "//test/syscalls/linux:alarm_test", 46 ) 47 48 syscall_test( 49 test = "//test/syscalls/linux:arch_prctl_test", 50 ) 51 52 syscall_test( 53 test = "//test/syscalls/linux:bad_test", 54 ) 55 56 syscall_test( 57 size = "large", 58 add_hostinet = True, 59 add_overlay = True, 60 test = "//test/syscalls/linux:bind_test", 61 ) 62 63 syscall_test( 64 test = "//test/syscalls/linux:brk_test", 65 ) 66 67 syscall_test( 68 one_sandbox = False, 69 test = "//test/syscalls/linux:cgroup_test", 70 ) 71 72 syscall_test( 73 add_fusefs = True, 74 add_overlay = True, 75 test = "//test/syscalls/linux:chdir_test", 76 ) 77 78 syscall_test( 79 add_fusefs = True, 80 add_overlay = True, 81 test = "//test/syscalls/linux:chmod_test", 82 ) 83 84 syscall_test( 85 size = "medium", 86 add_fusefs = True, 87 add_overlay = True, 88 test = "//test/syscalls/linux:chown_test", 89 use_tmpfs = True, # chown tests require gofer to be running as root. 90 ) 91 92 syscall_test( 93 add_fusefs = True, 94 add_overlay = True, 95 # FIXME(b/323000153): Flaky with fuse + S/R. 96 save = False, 97 test = "//test/syscalls/linux:chroot_test", 98 ) 99 100 syscall_test( 101 add_fusefs = True, 102 add_overlay = True, 103 # FIXME(b/323000153): Flaky with fuse + S/R. 104 save = False, 105 test = "//test/syscalls/linux:pivot_root_test", 106 use_tmpfs = True, 107 ) 108 109 syscall_test( 110 test = "//test/syscalls/linux:clock_getres_test", 111 ) 112 113 syscall_test( 114 size = "medium", 115 test = "//test/syscalls/linux:clock_gettime_test", 116 ) 117 118 syscall_test( 119 test = "//test/syscalls/linux:clock_nanosleep_test", 120 ) 121 122 syscall_test( 123 test = "//test/syscalls/linux:concurrency_test", 124 ) 125 126 syscall_test( 127 add_host_connector = True, 128 add_hostinet = True, 129 # TODO(b/318948806): lisafs.BoundSocketFD is leaked. 130 leak_check = False, 131 one_sandbox = False, 132 # Takes too long to run with S/R. 133 save = False, 134 test = "//test/syscalls/linux:bind_external_test", 135 # Shared mode tests replace /tmp which hides the files created for 136 # add_host_connector. use_tmpfs makes shared mode be skipped. 137 use_tmpfs = True, 138 ) 139 140 syscall_test( 141 add_host_uds = True, 142 add_hostinet = True, 143 # TODO(b/318948806): lisafs.BoundSocketFD is leaked. 144 leak_check = False, 145 one_sandbox = False, 146 # Takes too long to run with S/R. 147 save = False, 148 test = "//test/syscalls/linux:connect_external_test", 149 # Shared mode tests replace /tmp which hides the files created for 150 # add_host_uds. use_tmpfs makes shared mode be skipped. 151 use_tmpfs = True, 152 ) 153 154 syscall_test( 155 add_host_fifo = True, 156 one_sandbox = False, 157 # Takes too long to run with S/R. 158 save = False, 159 test = "//test/syscalls/linux:pipe_external_test", 160 # Shared mode tests replace /tmp which hides the files created for 161 # add_host_fifo. use_tmpfs makes shared mode be skipped. 162 use_tmpfs = True, 163 ) 164 165 syscall_test( 166 add_fusefs = True, 167 add_overlay = True, 168 test = "//test/syscalls/linux:creat_test", 169 ) 170 171 syscall_test( 172 allow_native = False, 173 test = "//test/syscalls/linux:dev_test", 174 ) 175 176 syscall_test( 177 add_fusefs = True, 178 add_overlay = True, 179 test = "//test/syscalls/linux:dup_test", 180 ) 181 182 syscall_test( 183 test = "//test/syscalls/linux:epoll_test", 184 ) 185 186 syscall_test( 187 test = "//test/syscalls/linux:eventfd_test", 188 ) 189 190 syscall_test( 191 test = "//test/syscalls/linux:exceptions_test", 192 ) 193 194 syscall_test( 195 size = "medium", 196 add_overlay = True, 197 test = "//test/syscalls/linux:exec_test", 198 ) 199 200 syscall_test( 201 size = "medium", 202 add_overlay = True, 203 test = "//test/syscalls/linux:exec_binary_test", 204 ) 205 206 syscall_test( 207 test = "//test/syscalls/linux:exit_test", 208 ) 209 210 syscall_test( 211 add_overlay = True, 212 test = "//test/syscalls/linux:fadvise64_test", 213 ) 214 215 syscall_test( 216 add_fusefs = True, 217 add_overlay = True, 218 test = "//test/syscalls/linux:fallocate_test", 219 ) 220 221 syscall_test( 222 test = "//test/syscalls/linux:fault_test", 223 ) 224 225 syscall_test( 226 add_fusefs = True, 227 add_overlay = True, 228 test = "//test/syscalls/linux:fchdir_test", 229 ) 230 231 syscall_test( 232 size = "medium", 233 test = "//test/syscalls/linux:fcntl_test", 234 ) 235 236 syscall_test( 237 size = "medium", 238 add_overlay = True, 239 test = "//test/syscalls/linux:flock_test", 240 ) 241 242 syscall_test( 243 test = "//test/syscalls/linux:fork_test", 244 ) 245 246 syscall_test( 247 test = "//test/syscalls/linux:fpsig_fork_test", 248 ) 249 250 syscall_test( 251 test = "//test/syscalls/linux:fpsig_mut_test", 252 ) 253 254 syscall_test( 255 test = "//test/syscalls/linux:fpsig_nested_test", 256 ) 257 258 syscall_test( 259 add_fusefs = True, 260 add_overlay = True, 261 test = "//test/syscalls/linux:fsync_test", 262 ) 263 264 syscall_test( 265 size = "medium", 266 shard_count = more_shards, 267 test = "//test/syscalls/linux:futex_test", 268 ) 269 270 syscall_test( 271 add_fusefs = True, 272 test = "//test/syscalls/linux:fuse_test", 273 ) 274 275 syscall_test( 276 test = "//test/syscalls/linux:getcpu_host_test", 277 ) 278 279 syscall_test( 280 test = "//test/syscalls/linux:getcpu_test", 281 ) 282 283 syscall_test( 284 add_overlay = True, 285 shard_count = most_shards, 286 test = "//test/syscalls/linux:getdents_test", 287 ) 288 289 syscall_test( 290 test = "//test/syscalls/linux:getrandom_test", 291 ) 292 293 syscall_test( 294 test = "//test/syscalls/linux:getrusage_test", 295 ) 296 297 syscall_test( 298 size = "medium", 299 add_overlay = True, 300 test = "//test/syscalls/linux:inotify_test", 301 ) 302 303 syscall_test( 304 size = "medium", 305 add_hostinet = True, 306 add_overlay = True, 307 test = "//test/syscalls/linux:ioctl_test", 308 ) 309 310 syscall_test( 311 iouring = True, 312 # Temporarily added due to intermittent ENOMEM failures. See b/216213621. 313 tags = ["notap"], 314 test = "//test/syscalls/linux:iouring_test", 315 ) 316 317 syscall_test( 318 test = "//test/syscalls/linux:iptables_test", 319 ) 320 321 syscall_test( 322 test = "//test/syscalls/linux:ip6tables_test", 323 ) 324 325 syscall_test( 326 size = "large", 327 shard_count = more_shards, 328 test = "//test/syscalls/linux:itimer_test", 329 ) 330 331 syscall_test( 332 test = "//test/syscalls/linux:kcov_test", 333 ) 334 335 syscall_test( 336 test = "//test/syscalls/linux:keys_test", 337 ) 338 339 syscall_test( 340 test = "//test/syscalls/linux:kill_test", 341 ) 342 343 syscall_test( 344 add_fusefs = True, 345 add_overlay = True, 346 test = "//test/syscalls/linux:link_test", 347 # TODO(gvisor.dev/issue/6739): Remove use_tmpfs=True once gofer filesystem 348 # supports hard links correctly. 349 use_tmpfs = True, 350 ) 351 352 syscall_test( 353 add_fusefs = True, 354 add_overlay = True, 355 test = "//test/syscalls/linux:lseek_test", 356 ) 357 358 syscall_test( 359 test = "//test/syscalls/linux:madvise_test", 360 ) 361 362 syscall_test( 363 test = "//test/syscalls/linux:membarrier_test", 364 ) 365 366 syscall_test( 367 test = "//test/syscalls/linux:memory_accounting_test", 368 ) 369 370 syscall_test( 371 test = "//test/syscalls/linux:mempolicy_test", 372 ) 373 374 syscall_test( 375 test = "//test/syscalls/linux:mincore_test", 376 ) 377 378 syscall_test( 379 add_fusefs = True, 380 add_overlay = True, 381 test = "//test/syscalls/linux:mkdir_test", 382 ) 383 384 syscall_test( 385 add_fusefs = True, 386 add_overlay = True, 387 test = "//test/syscalls/linux:mknod_test", 388 ) 389 390 syscall_test( 391 add_overlay = True, 392 test = "//test/syscalls/linux:fifo_test", 393 ) 394 395 syscall_test( 396 test = "//test/syscalls/linux:mlock_test", 397 ) 398 399 syscall_test( 400 size = "medium", 401 shard_count = more_shards, 402 test = "//test/syscalls/linux:mmap_test", 403 ) 404 405 syscall_test( 406 add_overlay = True, 407 # TODO(b/323000153): Enable S/R only for the overlay variant. 408 save = False, 409 test = "//test/syscalls/linux:mount_test", 410 ) 411 412 syscall_test( 413 test = "//test/syscalls/linux:mq_test", 414 ) 415 416 syscall_test( 417 size = "medium", 418 test = "//test/syscalls/linux:mremap_test", 419 ) 420 421 syscall_test( 422 test = "//test/syscalls/linux:msgqueue_test", 423 ) 424 425 syscall_test( 426 size = "medium", 427 test = "//test/syscalls/linux:msync_test", 428 ) 429 430 syscall_test( 431 test = "//test/syscalls/linux:munmap_test", 432 ) 433 434 syscall_test( 435 add_hostinet = True, 436 test = "//test/syscalls/linux:network_namespace_test", 437 ) 438 439 syscall_test( 440 add_fusefs = True, 441 add_overlay = True, 442 test = "//test/syscalls/linux:open_create_test", 443 ) 444 445 syscall_test( 446 add_fusefs = True, 447 add_overlay = True, 448 shard_count = more_shards, 449 test = "//test/syscalls/linux:open_test", 450 ) 451 452 syscall_test( 453 add_hostinet = True, 454 test = "//test/syscalls/linux:packet_socket_dgram_test", 455 ) 456 457 syscall_test( 458 add_hostinet = True, 459 test = "//test/syscalls/linux:packet_socket_raw_test", 460 ) 461 462 syscall_test( 463 add_hostinet = True, 464 test = "//test/syscalls/linux:packet_socket_test", 465 ) 466 467 syscall_test( 468 add_hostinet = True, 469 test = "//test/syscalls/linux:partial_bad_buffer_test", 470 ) 471 472 syscall_test( 473 test = "//test/syscalls/linux:pause_test", 474 ) 475 476 syscall_test( 477 size = "medium", 478 add_hostinet = True, 479 # Takes too long under gotsan to run. 480 tags = ["nogotsan"], 481 test = "//test/syscalls/linux:ping_socket_test", 482 ) 483 484 syscall_test( 485 size = "large", 486 add_overlay = True, 487 shard_count = more_shards, 488 test = "//test/syscalls/linux:pipe_test", 489 ) 490 491 syscall_test( 492 test = "//test/syscalls/linux:poll_test", 493 ) 494 495 syscall_test( 496 size = "medium", 497 test = "//test/syscalls/linux:ppoll_test", 498 ) 499 500 syscall_test( 501 test = "//test/syscalls/linux:prctl_setuid_test", 502 ) 503 504 syscall_test( 505 test = "//test/syscalls/linux:prctl_test", 506 ) 507 508 syscall_test( 509 add_fusefs = True, 510 add_overlay = True, 511 test = "//test/syscalls/linux:pread64_test", 512 ) 513 514 syscall_test( 515 add_fusefs = True, 516 add_overlay = True, 517 test = "//test/syscalls/linux:preadv_test", 518 ) 519 520 syscall_test( 521 add_fusefs = True, 522 add_overlay = True, 523 test = "//test/syscalls/linux:preadv2_test", 524 ) 525 526 syscall_test( 527 test = "//test/syscalls/linux:priority_test", 528 ) 529 530 syscall_test( 531 size = "medium", 532 shard_count = most_shards, 533 test = "//test/syscalls/linux:proc_test", 534 ) 535 536 syscall_test( 537 container = True, 538 one_sandbox = False, 539 test = "//test/syscalls/linux:proc_isolated_test", 540 ) 541 542 syscall_test( 543 add_hostinet = True, 544 test = "//test/syscalls/linux:proc_net_test", 545 ) 546 547 syscall_test( 548 test = "//test/syscalls/linux:proc_pid_oomscore_test", 549 ) 550 551 syscall_test( 552 test = "//test/syscalls/linux:proc_pid_smaps_test", 553 ) 554 555 syscall_test( 556 test = "//test/syscalls/linux:proc_pid_uid_gid_map_test", 557 ) 558 559 syscall_test( 560 size = "medium", 561 test = "//test/syscalls/linux:pselect_test", 562 ) 563 564 syscall_test( 565 test = "//test/syscalls/linux:ptrace_test", 566 ) 567 568 syscall_test( 569 size = "medium", 570 shard_count = more_shards, 571 test = "//test/syscalls/linux:pty_test", 572 ) 573 574 syscall_test( 575 test = "//test/syscalls/linux:pty_root_test", 576 ) 577 578 syscall_test( 579 add_fusefs = True, 580 add_overlay = True, 581 test = "//test/syscalls/linux:pwritev2_test", 582 ) 583 584 syscall_test( 585 add_fusefs = True, 586 add_overlay = True, 587 test = "//test/syscalls/linux:pwrite64_test", 588 ) 589 590 syscall_test( 591 add_hostinet = True, 592 test = "//test/syscalls/linux:raw_socket_hdrincl_test", 593 ) 594 595 syscall_test( 596 add_hostinet = True, 597 test = "//test/syscalls/linux:raw_socket_icmp_test", 598 ) 599 600 syscall_test( 601 add_hostinet = True, 602 shard_count = more_shards, 603 test = "//test/syscalls/linux:raw_socket_test", 604 ) 605 606 syscall_test( 607 add_fusefs = True, 608 add_overlay = True, 609 test = "//test/syscalls/linux:read_test", 610 ) 611 612 syscall_test( 613 add_overlay = True, 614 test = "//test/syscalls/linux:readahead_test", 615 ) 616 617 syscall_test( 618 size = "medium", 619 add_hostinet = True, 620 shard_count = more_shards, 621 test = "//test/syscalls/linux:readv_socket_test", 622 ) 623 624 syscall_test( 625 size = "medium", 626 add_fusefs = True, 627 add_overlay = True, 628 test = "//test/syscalls/linux:readv_test", 629 ) 630 631 syscall_test( 632 size = "medium", 633 add_fusefs = True, 634 add_overlay = True, 635 test = "//test/syscalls/linux:rename_test", 636 ) 637 638 syscall_test( 639 test = "//test/syscalls/linux:rlimits_test", 640 ) 641 642 syscall_test( 643 test = "//test/syscalls/linux:rseq_test", 644 ) 645 646 syscall_test( 647 test = "//test/syscalls/linux:rtsignal_test", 648 ) 649 650 syscall_test( 651 test = "//test/syscalls/linux:signalfd_test", 652 ) 653 654 syscall_test( 655 test = "//test/syscalls/linux:sched_test", 656 ) 657 658 syscall_test( 659 test = "//test/syscalls/linux:sched_yield_test", 660 ) 661 662 syscall_test( 663 test = "//test/syscalls/linux:seccomp_test", 664 ) 665 666 syscall_test( 667 test = "//test/syscalls/linux:select_test", 668 ) 669 670 syscall_test( 671 shard_count = more_shards, 672 test = "//test/syscalls/linux:semaphore_test", 673 ) 674 675 syscall_test( 676 add_hostinet = True, 677 add_overlay = True, 678 test = "//test/syscalls/linux:sendfile_socket_test", 679 ) 680 681 syscall_test( 682 add_overlay = True, 683 test = "//test/syscalls/linux:sendfile_test", 684 ) 685 686 syscall_test( 687 add_overlay = True, 688 test = "//test/syscalls/linux:setgid_test", 689 # setgid tests require the gofer's user namespace to have multiple groups, 690 # but bazel only provides one. 691 use_tmpfs = True, 692 ) 693 694 syscall_test( 695 test = "//test/syscalls/linux:setns_test", 696 ) 697 698 syscall_test( 699 add_overlay = True, 700 test = "//test/syscalls/linux:splice_test", 701 ) 702 703 syscall_test( 704 test = "//test/syscalls/linux:sigaction_test", 705 ) 706 707 # TODO(b/119826902): Enable once the test passes in runsc. 708 # syscall_test(test = "//test/syscalls/linux:sigaltstack_test") 709 710 syscall_test( 711 test = "//test/syscalls/linux:sigreturn_test", 712 ) 713 714 syscall_test( 715 test = "//test/syscalls/linux:sigprocmask_test", 716 ) 717 718 syscall_test( 719 size = "medium", 720 test = "//test/syscalls/linux:sigstop_test", 721 ) 722 723 syscall_test( 724 test = "//test/syscalls/linux:sigtimedwait_test", 725 ) 726 727 syscall_test( 728 size = "medium", 729 test = "//test/syscalls/linux:shm_test", 730 ) 731 732 syscall_test( 733 size = "medium", 734 test = "//test/syscalls/linux:socket_abstract_non_blocking_test", 735 ) 736 737 syscall_test( 738 size = "large", 739 # Takes too long to run with S/R. 740 save = False, 741 shard_count = most_shards, 742 test = "//test/syscalls/linux:socket_abstract_test", 743 ) 744 745 syscall_test( 746 test = "//test/syscalls/linux:socket_capability_test", 747 ) 748 749 syscall_test( 750 size = "medium", 751 test = "//test/syscalls/linux:socket_domain_non_blocking_test", 752 ) 753 754 syscall_test( 755 size = "large", 756 shard_count = most_shards, 757 test = "//test/syscalls/linux:socket_domain_test", 758 ) 759 760 syscall_test( 761 size = "medium", 762 add_overlay = True, 763 test = "//test/syscalls/linux:socket_filesystem_non_blocking_test", 764 ) 765 766 syscall_test( 767 size = "large", 768 add_overlay = True, 769 # Takes too long to run with S/R. 770 save = False, 771 shard_count = most_shards, 772 test = "//test/syscalls/linux:socket_filesystem_test", 773 ) 774 775 syscall_test( 776 size = "large", 777 add_hostinet = True, 778 # Takes too long to run with S/R. 779 save = False, 780 shard_count = most_shards, 781 test = "//test/syscalls/linux:socket_inet_loopback_test", 782 ) 783 784 syscall_test( 785 size = "large", 786 add_hostinet = True, 787 container = True, 788 one_sandbox = False, 789 shard_count = most_shards, 790 test = "//test/syscalls/linux:socket_inet_loopback_isolated_test", 791 ) 792 793 syscall_test( 794 size = "large", 795 add_hostinet = True, 796 shard_count = most_shards, 797 # Takes too long for TSAN. Creates a lot of TCP sockets. 798 tags = ["nogotsan"], 799 test = "//test/syscalls/linux:socket_inet_loopback_nogotsan_test", 800 ) 801 802 syscall_test( 803 add_hostinet = True, 804 test = "//test/syscalls/linux:socket_ipv4_udp_unbound_external_networking_test", 805 ) 806 807 syscall_test( 808 size = "large", 809 add_hostinet = True, 810 shard_count = most_shards, 811 test = "//test/syscalls/linux:socket_ip_tcp_generic_loopback_test", 812 ) 813 814 syscall_test( 815 size = "medium", 816 add_hostinet = True, 817 # Takes too long to run with S/R. 818 save = False, 819 shard_count = most_shards, 820 test = "//test/syscalls/linux:socket_ip_tcp_loopback_non_blocking_test", 821 ) 822 823 syscall_test( 824 size = "large", 825 add_hostinet = True, 826 shard_count = most_shards, 827 test = "//test/syscalls/linux:socket_ip_tcp_loopback_test", 828 ) 829 830 syscall_test( 831 size = "medium", 832 add_hostinet = True, 833 # Takes too long to run with S/R. 834 save = False, 835 shard_count = most_shards, 836 test = "//test/syscalls/linux:socket_ip_tcp_udp_generic_loopback_test", 837 ) 838 839 syscall_test( 840 size = "medium", 841 add_hostinet = True, 842 test = "//test/syscalls/linux:socket_ip_udp_loopback_non_blocking_test", 843 ) 844 845 syscall_test( 846 size = "large", 847 add_hostinet = True, 848 shard_count = most_shards, 849 test = "//test/syscalls/linux:socket_ip_udp_loopback_test", 850 ) 851 852 syscall_test( 853 size = "medium", 854 add_hostinet = True, 855 test = "//test/syscalls/linux:socket_ipv4_datagram_based_socket_unbound_loopback_test", 856 ) 857 858 syscall_test( 859 size = "medium", 860 add_hostinet = True, 861 # Takes too long to run with S/R. 862 save = False, 863 test = "//test/syscalls/linux:socket_ipv4_udp_unbound_loopback_test", 864 ) 865 866 syscall_test( 867 size = "medium", 868 add_hostinet = True, 869 test = "//test/syscalls/linux:socket_ipv6_udp_unbound_loopback_test", 870 ) 871 872 syscall_test( 873 size = "medium", 874 add_hostinet = True, 875 shard_count = more_shards, 876 # Takes too long under gotsan to run. 877 tags = ["nogotsan"], 878 test = "//test/syscalls/linux:socket_ipv4_udp_unbound_loopback_nogotsan_test", 879 ) 880 881 syscall_test( 882 add_hostinet = True, 883 # FIXME(b/323000153): These tests fail with S/R, fix them and then enable. 884 save = False, 885 test = "//test/syscalls/linux:socket_ipv4_udp_unbound_loopback_netlink_test", 886 ) 887 888 syscall_test( 889 add_hostinet = True, 890 test = "//test/syscalls/linux:socket_ipv6_udp_unbound_loopback_netlink_test", 891 ) 892 893 syscall_test( 894 # TODO(b/275742272): IP_TOS behaves strange on some new kernels, causing 895 # this to be very flaky on hostinet. Enable this once the strangeness is 896 # resolved.. 897 # add_hostinet = True, 898 shard_count = more_shards, 899 test = "//test/syscalls/linux:socket_ip_unbound_test", 900 ) 901 902 syscall_test( 903 add_hostinet = True, 904 shard_count = more_shards, 905 test = "//test/syscalls/linux:socket_ipv6_unbound_test", 906 ) 907 908 syscall_test( 909 add_hostinet = True, 910 test = "//test/syscalls/linux:socket_ip_unbound_netlink_test", 911 ) 912 913 syscall_test( 914 add_hostinet = True, 915 test = "//test/syscalls/linux:socket_netdevice_test", 916 ) 917 918 syscall_test( 919 add_hostinet = True, 920 test = "//test/syscalls/linux:socket_netlink_test", 921 ) 922 923 syscall_test( 924 add_hostinet = True, 925 test = "//test/syscalls/linux:socket_netlink_route_test", 926 ) 927 928 syscall_test( 929 add_hostinet = True, 930 test = "//test/syscalls/linux:socket_netlink_uevent_test", 931 ) 932 933 syscall_test( 934 add_hostinet = True, 935 test = "//test/syscalls/linux:socket_blocking_local_test", 936 ) 937 938 syscall_test( 939 add_hostinet = True, 940 test = "//test/syscalls/linux:socket_blocking_ip_test", 941 ) 942 943 syscall_test( 944 add_hostinet = True, 945 test = "//test/syscalls/linux:socket_non_stream_blocking_local_test", 946 ) 947 948 syscall_test( 949 add_hostinet = True, 950 test = "//test/syscalls/linux:socket_non_stream_blocking_udp_test", 951 ) 952 953 syscall_test( 954 size = "large", 955 add_hostinet = True, 956 test = "//test/syscalls/linux:socket_stream_blocking_local_test", 957 ) 958 959 syscall_test( 960 size = "large", 961 test = "//test/syscalls/linux:socket_stream_blocking_tcp_test", 962 ) 963 964 syscall_test( 965 size = "medium", 966 add_hostinet = True, 967 test = "//test/syscalls/linux:socket_stream_local_test", 968 ) 969 970 syscall_test( 971 size = "medium", 972 add_hostinet = True, 973 test = "//test/syscalls/linux:socket_stream_nonblock_local_test", 974 ) 975 976 syscall_test( 977 size = "large", 978 add_hostinet = True, 979 # Takes too long to run with S/R. 980 save = False, 981 shard_count = most_shards, 982 test = "//test/syscalls/linux:socket_stress_test", 983 ) 984 985 syscall_test( 986 add_hostinet = True, 987 test = "//test/syscalls/linux:socket_test", 988 ) 989 990 syscall_test( 991 flaky = 1, # NOTE(b/116636318): Large sendmsg may stall a long time. 992 # Takes too long to run with S/R. 993 save = False, 994 shard_count = more_shards, 995 test = "//test/syscalls/linux:socket_unix_dgram_local_test", 996 ) 997 998 syscall_test( 999 size = "medium", 1000 test = "//test/syscalls/linux:socket_unix_dgram_non_blocking_test", 1001 ) 1002 1003 syscall_test( 1004 size = "large", 1005 add_overlay = True, 1006 shard_count = most_shards, 1007 test = "//test/syscalls/linux:socket_unix_pair_test", 1008 ) 1009 1010 syscall_test( 1011 flaky = 1, # NOTE(b/116636318): Large sendmsg may stall a long time. 1012 # Takes too long to run with S/R. 1013 save = False, 1014 shard_count = more_shards, 1015 test = "//test/syscalls/linux:socket_unix_seqpacket_local_test", 1016 ) 1017 1018 syscall_test( 1019 size = "medium", 1020 shard_count = most_shards, 1021 test = "//test/syscalls/linux:socket_unix_stream_test", 1022 ) 1023 1024 syscall_test( 1025 size = "medium", 1026 # TODO(b/323000153): Test fails with S/R enabled during restore of abstract 1027 # sockets. Fix this and then enable S/R. 1028 save = False, 1029 test = "//test/syscalls/linux:socket_unix_unbound_abstract_test", 1030 ) 1031 1032 syscall_test( 1033 size = "medium", 1034 test = "//test/syscalls/linux:socket_unix_unbound_dgram_test", 1035 ) 1036 1037 syscall_test( 1038 size = "medium", 1039 test = "//test/syscalls/linux:socket_unix_unbound_filesystem_test", 1040 ) 1041 1042 syscall_test( 1043 size = "medium", 1044 shard_count = more_shards, 1045 test = "//test/syscalls/linux:socket_unix_unbound_seqpacket_test", 1046 ) 1047 1048 syscall_test( 1049 size = "large", 1050 shard_count = most_shards, 1051 test = "//test/syscalls/linux:socket_unix_unbound_stream_test", 1052 ) 1053 1054 syscall_test( 1055 add_fusefs = True, 1056 add_overlay = True, 1057 test = "//test/syscalls/linux:statfs_test", 1058 use_tmpfs = True, # Test specifically relies on TEST_TMPDIR to be tmpfs. 1059 ) 1060 1061 syscall_test( 1062 add_fusefs = True, 1063 add_overlay = True, 1064 # TODO(b/323000153): Enable S/R only for the overlay variant. 1065 save = False, 1066 test = "//test/syscalls/linux:stat_test", 1067 ) 1068 1069 syscall_test( 1070 add_fusefs = True, 1071 add_overlay = True, 1072 test = "//test/syscalls/linux:stat_times_test", 1073 ) 1074 1075 syscall_test( 1076 add_overlay = True, 1077 save = False, 1078 test = "//test/syscalls/linux:sticky_test", 1079 ) 1080 1081 syscall_test( 1082 add_fusefs = True, 1083 add_overlay = True, 1084 test = "//test/syscalls/linux:symlink_test", 1085 ) 1086 1087 syscall_test( 1088 add_fusefs = True, 1089 add_overlay = True, 1090 test = "//test/syscalls/linux:sync_test", 1091 ) 1092 1093 syscall_test( 1094 add_fusefs = True, 1095 add_overlay = True, 1096 test = "//test/syscalls/linux:sync_file_range_test", 1097 ) 1098 1099 syscall_test( 1100 test = "//test/syscalls/linux:sysinfo_test", 1101 ) 1102 1103 syscall_test( 1104 test = "//test/syscalls/linux:syslog_test", 1105 ) 1106 1107 syscall_test( 1108 test = "//test/syscalls/linux:sysret_test", 1109 ) 1110 1111 syscall_test( 1112 size = "medium", 1113 add_hostinet = True, 1114 # Takes too long to run with S/R. 1115 save = False, 1116 shard_count = more_shards, 1117 test = "//test/syscalls/linux:tcp_socket_test", 1118 ) 1119 1120 syscall_test( 1121 test = "//test/syscalls/linux:tgkill_test", 1122 ) 1123 1124 syscall_test( 1125 shard_count = more_shards, 1126 test = "//test/syscalls/linux:timerfd_test", 1127 ) 1128 1129 syscall_test( 1130 test = "//test/syscalls/linux:timers_test", 1131 ) 1132 1133 syscall_test( 1134 test = "//test/syscalls/linux:time_test", 1135 ) 1136 1137 syscall_test( 1138 test = "//test/syscalls/linux:tkill_test", 1139 ) 1140 1141 syscall_test( 1142 add_fusefs = True, 1143 add_overlay = True, 1144 test = "//test/syscalls/linux:truncate_test", 1145 ) 1146 1147 syscall_test( 1148 # TODO(b/318948806): tun.tunEndpoint is leaked. 1149 leak_check = False, 1150 # TODO(b/110961832): /dev/net/tun does not support S/R. 1151 save = False, 1152 test = "//test/syscalls/linux:tuntap_test", 1153 ) 1154 1155 syscall_test( 1156 add_hostinet = True, 1157 test = "//test/syscalls/linux:tuntap_hostinet_test", 1158 ) 1159 1160 syscall_test( 1161 add_hostinet = True, 1162 test = "//test/syscalls/linux:udp_bind_test", 1163 ) 1164 1165 syscall_test( 1166 size = "medium", 1167 add_hostinet = True, 1168 shard_count = more_shards, 1169 test = "//test/syscalls/linux:udp_socket_test", 1170 ) 1171 1172 syscall_test( 1173 add_hostinet = True, 1174 test = "//test/syscalls/linux:udp_raw_socket_test", 1175 ) 1176 1177 syscall_test( 1178 test = "//test/syscalls/linux:uidgid_test", 1179 ) 1180 1181 syscall_test( 1182 test = "//test/syscalls/linux:uname_test", 1183 ) 1184 1185 syscall_test( 1186 add_fusefs = True, 1187 add_overlay = True, 1188 test = "//test/syscalls/linux:unlink_test", 1189 ) 1190 1191 syscall_test( 1192 test = "//test/syscalls/linux:unshare_test", 1193 ) 1194 1195 syscall_test( 1196 test = "//test/syscalls/linux:utimes_test", 1197 ) 1198 1199 syscall_test( 1200 size = "medium", 1201 test = "//test/syscalls/linux:vdso_clock_gettime_test", 1202 ) 1203 1204 syscall_test( 1205 test = "//test/syscalls/linux:vdso_test", 1206 ) 1207 1208 syscall_test( 1209 test = "//test/syscalls/linux:vsyscall_test", 1210 ) 1211 1212 syscall_test( 1213 test = "//test/syscalls/linux:vfork_test", 1214 ) 1215 1216 syscall_test( 1217 size = "medium", 1218 shard_count = more_shards, 1219 test = "//test/syscalls/linux:wait_test", 1220 ) 1221 1222 syscall_test( 1223 add_fusefs = True, 1224 add_overlay = True, 1225 test = "//test/syscalls/linux:write_test", 1226 ) 1227 1228 syscall_test( 1229 test = "//test/syscalls/linux:proc_net_unix_test", 1230 ) 1231 1232 syscall_test( 1233 add_hostinet = True, 1234 test = "//test/syscalls/linux:proc_net_tcp_test", 1235 ) 1236 1237 syscall_test( 1238 test = "//test/syscalls/linux:proc_net_udp_test", 1239 ) 1240 1241 syscall_test( 1242 test = "//test/syscalls/linux:processes_test", 1243 ) 1244 1245 syscall_test( 1246 test = "//test/syscalls/linux:process_vm_read_write_test", 1247 ) 1248 1249 syscall_test( 1250 save = False, 1251 test = "//test/syscalls/linux:deleted_test", 1252 ) 1253 1254 syscall_test( 1255 size = "small", 1256 # FIXME(b/323000153): These tests fail with S/R, fix them and then enable. 1257 save = False, 1258 test = "//test/syscalls/linux:close_range_test", 1259 )