summaryrefslogtreecommitdiffhomepage
path: root/pkg/test/testutil/BUILD
diff options
context:
space:
mode:
authorEtienne Perot <eperot@google.com>2021-01-08 14:49:23 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-08 14:51:50 -0800
commit11787a601e2aba4d022aadd468f729963b9a09e6 (patch)
treec9029299ee056c12505a9bfae592454d4aa3618e /pkg/test/testutil/BUILD
parent5c13c2152ecc313353b745bdfb82ee601e38a867 (diff)
Create console test library.
This creates a TTY pair and runs `/bin/sh` in interactive mode within it. It provides useful helper functions to interact with the shell and read the output of commands run within it. This is meant to be used for testing upcoming changes allowing `runsc exec` to work in `-detach=false -tty=true` mode. PiperOrigin-RevId: 350841006
Diffstat (limited to 'pkg/test/testutil/BUILD')
-rw-r--r--pkg/test/testutil/BUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/test/testutil/BUILD b/pkg/test/testutil/BUILD
index c4b131896..00600a2ad 100644
--- a/pkg/test/testutil/BUILD
+++ b/pkg/test/testutil/BUILD
@@ -6,6 +6,7 @@ go_library(
name = "testutil",
testonly = 1,
srcs = [
+ "sh.go",
"testutil.go",
"testutil_runfiles.go",
],
@@ -15,6 +16,7 @@ go_library(
"//runsc/config",
"//runsc/specutils",
"@com_github_cenkalti_backoff//:go_default_library",
+ "@com_github_kr_pty//:go_default_library",
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
],
)