diff options
author | Etienne Perot <eperot@google.com> | 2021-06-24 17:45:51 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-24 17:49:09 -0700 |
commit | 4470caec4e2fea10f5d116894ca6b3fc9d78789b (patch) | |
tree | 80f38783a5c1f948663965b020ad6511e042c249 /test/syscalls | |
parent | 3e46b660b97ab3fc995ac3f838fc7ddf1bd96a1b (diff) |
Run `:socket_inet_loopback_isolated_test_linux` tests in a container.
This creates new user and network namespaces for all tests in
`:socket_inet_loopback_isolated_test_linux`.
PiperOrigin-RevId: 381374120
Diffstat (limited to 'test/syscalls')
-rw-r--r-- | test/syscalls/BUILD | 1 | ||||
-rw-r--r-- | test/syscalls/linux/BUILD | 2 | ||||
-rw-r--r-- | test/syscalls/linux/socket_inet_loopback_isolated.cc | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/test/syscalls/BUILD b/test/syscalls/BUILD index 8fc96d7ba..1257c0553 100644 --- a/test/syscalls/BUILD +++ b/test/syscalls/BUILD @@ -648,6 +648,7 @@ syscall_test( syscall_test( size = "large", shard_count = most_shards, + tags = ["container"], test = "//test/syscalls/linux:socket_inet_loopback_isolated_test", ) diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index c7991cfaa..2bf685524 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -3196,9 +3196,11 @@ cc_binary( linkstatic = 1, deps = [ ":socket_inet_loopback_test_params", + ":socket_netlink_util", ":socket_test_util", gtest, "//test/util:test_main", + "//test/util:test_util", "@com_google_absl//absl/time", ], ) diff --git a/test/syscalls/linux/socket_inet_loopback_isolated.cc b/test/syscalls/linux/socket_inet_loopback_isolated.cc index ccb016726..ab2259b55 100644 --- a/test/syscalls/linux/socket_inet_loopback_isolated.cc +++ b/test/syscalls/linux/socket_inet_loopback_isolated.cc @@ -19,6 +19,7 @@ #include "absl/time/time.h" #include "test/syscalls/linux/socket_inet_loopback_test_params.h" #include "test/syscalls/linux/socket_test_util.h" +#include "test/util/test_util.h" // Unit tests in this file will run in their own network namespace. |