summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/runner/BUILD
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2020-09-02 19:17:32 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-02 19:19:40 -0700
commit86c1ae095a95d2433b874d9b052ebcea6fab0e26 (patch)
tree31deeb446dfc35fdcb3f300f5a372f9894eb6923 /test/packetimpact/runner/BUILD
parentb69352245ab729cc01088c8258a3167f069bd684 (diff)
Add support to run packetimpact tests against Fuchsia
blaze test <test_name>_fuchsia_test will run the corresponding packetimpact test against fuchsia. PiperOrigin-RevId: 329835290
Diffstat (limited to 'test/packetimpact/runner/BUILD')
-rw-r--r--test/packetimpact/runner/BUILD26
1 files changed, 18 insertions, 8 deletions
diff --git a/test/packetimpact/runner/BUILD b/test/packetimpact/runner/BUILD
index ff2be9b30..605dd4972 100644
--- a/test/packetimpact/runner/BUILD
+++ b/test/packetimpact/runner/BUILD
@@ -1,4 +1,4 @@
-load("//tools:defs.bzl", "bzl_library", "go_test")
+load("//tools:defs.bzl", "bzl_library", "go_library", "go_test")
package(
default_visibility = ["//test/packetimpact:__subpackages__"],
@@ -7,21 +7,31 @@ package(
go_test(
name = "packetimpact_test",
- srcs = ["packetimpact_test.go"],
+ srcs = [
+ "packetimpact_test.go",
+ ],
tags = [
# Not intended to be run directly.
"local",
"manual",
],
- deps = [
- "//pkg/test/dockerutil",
- "//test/packetimpact/netdevs",
- "@com_github_docker_docker//api/types/mount:go_default_library",
- ],
+ deps = [":runner"],
)
bzl_library(
name = "defs_bzl",
srcs = ["defs.bzl"],
- visibility = ["//visibility:private"],
+ visibility = ["//test/packetimpact:__subpackages__"],
+)
+
+go_library(
+ name = "runner",
+ testonly = True,
+ srcs = ["dut.go"],
+ visibility = ["//test/packetimpact:__subpackages__"],
+ deps = [
+ "//pkg/test/dockerutil",
+ "//test/packetimpact/netdevs",
+ "@com_github_docker_docker//api/types/mount:go_default_library",
+ ],
)