summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/runtimes/BUILD
diff options
context:
space:
mode:
authorSamantha Sample <samsample@google.com>2019-07-22 13:18:27 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-22 13:19:50 -0700
commita0a86bbb8250311211161337c0f9530b945450a3 (patch)
tree130b930fc3cc070901f0286b23094139516f079c /runsc/test/runtimes/BUILD
parentfdac770f31cbe5150d57964be04c2884c68f0f8b (diff)
Prototype integration of runtime language tests for Node.js into gVisor.
This is the first version of a testing program to be used by gVisor for including language testing into their presubmits. It works when ran in the same manor the image and integration tests are ran in as described in their README file. PiperOrigin-RevId: 259392416
Diffstat (limited to 'runsc/test/runtimes/BUILD')
-rw-r--r--runsc/test/runtimes/BUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/runsc/test/runtimes/BUILD b/runsc/test/runtimes/BUILD
new file mode 100644
index 000000000..36d0a761e
--- /dev/null
+++ b/runsc/test/runtimes/BUILD
@@ -0,0 +1,50 @@
+# These packages are used to run language runtime tests inside gVisor sandboxes.
+
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+load("//runsc/test:build_defs.bzl", "runtime_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "runtimes",
+ srcs = ["runtimes.go"],
+ importpath = "gvisor.dev/gvisor/runsc/test/runtimes",
+)
+
+runtime_test(
+ name = "runtimes_test",
+ size = "small",
+ srcs = ["runtimes_test.go"],
+ embed = [":runtimes"],
+ tags = [
+ # Requires docker and runsc to be configured before the test runs.
+ "manual",
+ "local",
+ ],
+ deps = ["//runsc/test/testutil"],
+)
+
+go_binary(
+ name = "proctor-go",
+ srcs = ["proctor-go.go"],
+)
+
+go_binary(
+ name = "proctor-java",
+ srcs = ["proctor-java.go"],
+)
+
+go_binary(
+ name = "proctor-nodejs",
+ srcs = ["proctor-nodejs.go"],
+)
+
+go_binary(
+ name = "proctor-php",
+ srcs = ["proctor-php.go"],
+)
+
+go_binary(
+ name = "proctor-python",
+ srcs = ["proctor-python.go"],
+)