aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Fahrzin Hemmati <fahhem@appliedintuition.com>2018-03-26 19:08:26 -0700
committerGravatar Fahrzin Hemmati <fahhem@appliedintuition.com>2018-05-07 15:40:31 -0700
commit0d68b29ac49e48519afbaeaaa14c82a9e086b691 (patch)
tree02660cf8b7133b31b734fe112fb615781201f3a6 /BUILD
parentd1403e58d82ff3a1024316ec2067fb98126e0659 (diff)
Add unittest build rules
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index d6fb85d8..a85b1bf9 100644
--- a/BUILD
+++ b/BUILD
@@ -913,3 +913,30 @@ objc_library(
non_arc_srcs = OBJC_SRCS,
visibility = ["//visibility:public"],
)
+
+################################################################################
+# Test generated proto support
+################################################################################
+
+genrule(
+ name = "generated_protos",
+ srcs = ["src/google/protobuf/unittest_import.proto"],
+ outs = ["unittest_gen.proto"],
+ cmd = "cat $(SRCS) | sed 's|google/|src/google/|' > $(OUTS)"
+)
+
+proto_library(
+ name = "generated_protos_proto",
+ srcs = ["unittest_gen.proto"],
+)
+
+
+py_proto_library(
+ name = "generated_protos_py",
+ srcs = [
+ "unittest_gen.proto",
+ "src/google/protobuf/unittest_import_public.proto",
+ ],
+ default_runtime = "",
+ protoc = ":protoc",
+)