The gVisor syscall suite contains a large number of tests that validate POSIX behaviors on loopback sockets. The Netstack team relies heavily on this suite to prevent regressions and iterate on new functionality.
Test suites are available for three versions of the Netstack:
fx set core.qemu-x64 --with //third_party/gvisor_syscall_tests:tests
fx test netstack{3,2-with-fast-udp,2-with-sync-udp}-syscall-tests
https://github.com/google/gvisor/tree/master/test/syscalls/linux
and insert the names of any newly added test sources into TEST_SRC_FILENAMES.txt
.update.sh
to vendor the latest version of the gVisor test sources intree.BUILD.gn
.gvisor/test/util/
, add the new filename to TEST_UTILS_FILENAMES.txt
and rerun update.sh
.<linux/capability.h>
), submit a gVisor change that adds an appropriate ifdef
and rerun update.sh
.