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/runner/setup_container/BUILD | |
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/runner/setup_container/BUILD')
-rw-r--r-- | test/runner/setup_container/BUILD | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/runner/setup_container/BUILD b/test/runner/setup_container/BUILD new file mode 100644 index 000000000..5b99d1de9 --- /dev/null +++ b/test/runner/setup_container/BUILD @@ -0,0 +1,19 @@ +# setup_container contains a shim binary that runs within the test container +# for syscall tests with container=True. + +load("//tools:defs.bzl", "cc_binary") + +package(licenses = ["notice"]) + +cc_binary( + name = "setup_container", + testonly = 1, + srcs = ["setup_container.cc"], + visibility = ["//test/runner:__subpackages__"], + deps = [ + "//test/syscalls/linux:socket_netlink_util", + "//test/syscalls/linux:socket_test_util", + "//test/util:capability_util", + "//test/util:posix_error", + ], +) |