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.
The test suite is run against Netstack3.
fx set core.x64 --with //third_party/gvisor_syscall_tests:testsfx test netstack-syscall-testshttps://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.