diff options
author | apolcyn <apolcyn@google.com> | 2018-03-10 12:40:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 12:40:34 -0800 |
commit | 12136821220a671bb9d6443b69817babf2f5c254 (patch) | |
tree | 4bbc3e19f7d673b18bc2972276295e682ed7c092 /test/cpp/codegen/BUILD | |
parent | a7f52a62baa9f9008e7a217f24006c10ce81ed9c (diff) | |
parent | f1332596174c45bd4b0b0d80a9a05827b01cfa0f (diff) |
Merge pull request #14662 from apolcyn/fix_broken_file_test_under_bazel
Fix a broken bazel test
Diffstat (limited to 'test/cpp/codegen/BUILD')
-rw-r--r-- | test/cpp/codegen/BUILD | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/cpp/codegen/BUILD b/test/cpp/codegen/BUILD index 1388dbc650..12712a3e6c 100644 --- a/test/cpp/codegen/BUILD +++ b/test/cpp/codegen/BUILD @@ -61,7 +61,6 @@ grpc_cc_binary( srcs = ["golden_file_test.cc"], deps = [ "//:grpc++", - "//src/proto/grpc/testing:compiler_test_proto", "//test/core/util:gpr_test_util", ], external_deps = [ @@ -70,6 +69,20 @@ grpc_cc_binary( ], ) +genrule( + name = "copy_compiler_test_grpc_pb_h", + srcs = ["//src/proto/grpc/testing:_compiler_test_proto_grpc_codegen"], + cmd = "cat $(GENDIR)/src/proto/grpc/testing/compiler_test.grpc.pb.h > $@", + outs = ["compiler_test.grpc.pb.h"], +) + +genrule( + name = "copy_compiler_test_mock_grpc_pb_h", + srcs = ["//src/proto/grpc/testing:_compiler_test_proto_grpc_codegen"], + cmd = "cat $(GENDIR)/src/proto/grpc/testing/compiler_test_mock.grpc.pb.h > $@", + outs = ["compiler_test_mock.grpc.pb.h"], +) + grpc_sh_test( name = "run_golden_file_test", srcs = ["run_golden_file_test.sh"], @@ -77,6 +90,7 @@ grpc_sh_test( ":golden_file_test", ":compiler_test_golden", ":compiler_test_mock_golden", - "//src/proto/grpc/testing:_compiler_test_proto_grpc_codegen", + ":compiler_test.grpc.pb.h", + ":compiler_test_mock.grpc.pb.h", ], ) |