summaryrefslogtreecommitdiffhomepage
path: root/pkg/procid/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/procid/BUILD')
-rw-r--r--pkg/procid/BUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/procid/BUILD b/pkg/procid/BUILD
new file mode 100644
index 000000000..697e7a2f4
--- /dev/null
+++ b/pkg/procid/BUILD
@@ -0,0 +1,33 @@
+load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "procid",
+ srcs = [
+ "procid.go",
+ "procid_amd64.s",
+ "procid_arm64.s",
+ ],
+ importpath = "gvisor.dev/gvisor/pkg/procid",
+ visibility = ["//visibility:public"],
+)
+
+go_test(
+ name = "procid_test",
+ size = "small",
+ srcs = [
+ "procid_test.go",
+ ],
+ embed = [":procid"],
+)
+
+go_test(
+ name = "procid_net_test",
+ size = "small",
+ srcs = [
+ "procid_net_test.go",
+ "procid_test.go",
+ ],
+ embed = [":procid"],
+)