summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/BUILD
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2020-07-16 14:35:39 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-16 14:37:13 -0700
commite6894cb99fe4c6e8599354bf5bc6a72a79b63fd3 (patch)
treef3a998132d1c89e45f7caf3eeb53f62e00aa5ca0 /test/runtimes/BUILD
parentc66991ad7de68fd629a1620acad0c8eec2744bac (diff)
Port runtime tests to use go_test
PiperOrigin-RevId: 321647645
Diffstat (limited to 'test/runtimes/BUILD')
-rw-r--r--test/runtimes/BUILD58
1 files changed, 51 insertions, 7 deletions
diff --git a/test/runtimes/BUILD b/test/runtimes/BUILD
index f98d02e00..aeefa8f56 100644
--- a/test/runtimes/BUILD
+++ b/test/runtimes/BUILD
@@ -1,38 +1,82 @@
-load("//test/runtimes:defs.bzl", "runtime_test")
+load("//test/runtimes:defs.bzl", "exclude_test", "runtime_test")
package(licenses = ["notice"])
+go_binary(
+ name = "runner",
+ testonly = 1,
+ srcs = ["runner.go"],
+ visibility = ["//test/runtimes:__pkg__"],
+ deps = [
+ "//pkg/log",
+ "//pkg/test/dockerutil",
+ "//pkg/test/testutil",
+ ],
+)
+
runtime_test(
name = "go1.12",
- exclude_file = "exclude_go1.12.csv",
+ exclude_file = "exclude/go1.12.csv",
lang = "go",
shard_count = 5,
)
runtime_test(
name = "java11",
- exclude_file = "exclude_java11.csv",
+ exclude_file = "exclude/java11.csv",
lang = "java",
- shard_count = 10,
+ shard_count = 5,
)
runtime_test(
name = "nodejs12.4.0",
- exclude_file = "exclude_nodejs12.4.0.csv",
+ exclude_file = "exclude/nodejs12.4.0.csv",
lang = "nodejs",
shard_count = 5,
)
runtime_test(
name = "php7.3.6",
- exclude_file = "exclude_php7.3.6.csv",
+ exclude_file = "exclude/php7.3.6.csv",
lang = "php",
shard_count = 5,
)
runtime_test(
name = "python3.7.3",
- exclude_file = "exclude_python3.7.3.csv",
+ exclude_file = "exclude/python3.7.3.csv",
lang = "python",
shard_count = 5,
)
+
+go_test(
+ name = "exclude_test",
+ size = "small",
+ srcs = ["exclude_test.go"],
+ library = ":runner",
+)
+
+exclude_test(
+ name = "go",
+ exclude_file = "exclude/go1.12.csv",
+)
+
+exclude_test(
+ name = "java",
+ exclude_file = "exclude/java11.csv",
+)
+
+exclude_test(
+ name = "nodejs",
+ exclude_file = "exclude/nodejs12.4.0.csv",
+)
+
+exclude_test(
+ name = "php",
+ exclude_file = "exclude/php7.3.6.csv",
+)
+
+exclude_test(
+ name = "python",
+ exclude_file = "exclude/python3.7.3.csv",
+)