1 # Copyright 2017 gRPC authors.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 licenses(["notice"]) # Apache v2
17 load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
20 name = "test/cpp/end2end",
21 visibility = "public",
22 ) # Allows external users to implement end2end tests.
25 name = "test_service_impl",
27 srcs = ["test_service_impl.cc"],
28 hdrs = ["test_service_impl.h"],
33 "//src/proto/grpc/testing:echo_proto",
34 "//test/cpp/util:test_util",
39 name = "test_health_check_service_impl",
41 srcs = ["test_health_check_service_impl.cc"],
42 hdrs = ["test_health_check_service_impl.h"],
46 "//src/proto/grpc/health/v1:health_proto",
51 name = "interceptors_util",
53 srcs = ["interceptors_util.cc"],
54 hdrs = ["interceptors_util.h"],
59 "//src/proto/grpc/testing:echo_proto",
60 "//test/cpp/util:test_util",
65 name = "async_end2end_test",
66 srcs = ["async_end2end_test.cc"],
74 "//src/proto/grpc/health/v1:health_proto",
75 "//src/proto/grpc/testing:echo_messages_proto",
76 "//src/proto/grpc/testing:echo_proto",
77 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
78 "//test/core/util:grpc_test_util",
79 "//test/cpp/util:test_util",
84 name = "time_change_test",
85 srcs = ["time_change_test.cc"],
87 ":client_crash_test_server",
97 "//src/proto/grpc/testing:echo_messages_proto",
98 "//src/proto/grpc/testing:echo_proto",
99 "//test/core/util:grpc_test_util",
100 "//test/cpp/util:test_util",
102 tags = ["no_windows"],
106 name = "client_crash_test",
107 srcs = ["client_crash_test.cc"],
109 ":client_crash_test_server",
118 "//src/proto/grpc/testing:echo_messages_proto",
119 "//src/proto/grpc/testing:echo_proto",
120 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
121 "//test/core/util:grpc_test_util",
122 "//test/cpp/util:test_util",
127 name = "client_crash_test_server",
129 srcs = ["client_crash_test_server.cc"],
135 ":test_service_impl",
139 "//src/proto/grpc/testing:echo_messages_proto",
140 "//src/proto/grpc/testing:echo_proto",
141 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
142 "//test/core/util:grpc_test_util",
143 "//test/cpp/util:test_util",
148 name = "client_callback_end2end_test",
149 srcs = ["client_callback_end2end_test.cc"],
154 ":interceptors_util",
155 ":test_service_impl",
159 "//src/proto/grpc/testing:echo_messages_proto",
160 "//src/proto/grpc/testing:echo_proto",
161 "//src/proto/grpc/testing:simple_messages_proto",
162 "//test/core/util:grpc_test_util",
163 "//test/cpp/util:test_util",
168 name = "client_interceptors_end2end_test",
169 srcs = ["client_interceptors_end2end_test.cc"],
174 ":interceptors_util",
175 ":test_service_impl",
179 "//src/proto/grpc/testing:echo_messages_proto",
180 "//src/proto/grpc/testing:echo_proto",
181 "//test/core/util:grpc_test_util",
182 "//test/cpp/util:test_util",
187 name = "end2end_test_lib",
189 srcs = ["end2end_test.cc"],
194 ":interceptors_util",
195 ":test_service_impl",
199 "//src/proto/grpc/testing:echo_messages_proto",
200 "//src/proto/grpc/testing:echo_proto",
201 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
202 "//test/core/util:grpc_test_util",
203 "//test/cpp/util:test_util",
208 name = "channelz_service_test",
209 srcs = ["channelz_service_test.cc"],
214 ":test_service_impl",
218 "//:grpcpp_channelz",
219 "//src/proto/grpc/channelz:channelz_proto",
220 "//src/proto/grpc/testing:echo_messages_proto",
221 "//src/proto/grpc/testing:echo_proto",
222 "//test/core/util:grpc_test_util",
223 "//test/cpp/util:test_util",
228 name = "server_early_return_test",
229 srcs = ["server_early_return_test.cc"],
237 "//src/proto/grpc/testing:echo_messages_proto",
238 "//src/proto/grpc/testing:echo_proto",
239 "//test/core/util:grpc_test_util",
240 "//test/cpp/util:test_util",
245 name = "end2end_test",
249 # DO NOT REMOVE THE grpc++ dependence below since the internal build
250 # system uses it to specialize targets
256 name = "exception_test",
257 srcs = ["exception_test.cc"],
265 "//src/proto/grpc/testing:echo_messages_proto",
266 "//src/proto/grpc/testing:echo_proto",
267 "//test/core/util:grpc_test_util",
268 "//test/cpp/util:test_util",
273 name = "filter_end2end_test",
274 srcs = ["filter_end2end_test.cc"],
282 "//src/proto/grpc/testing:echo_messages_proto",
283 "//src/proto/grpc/testing:echo_proto",
284 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
285 "//test/core/util:grpc_test_util",
286 "//test/cpp/util:test_util",
291 name = "generic_end2end_test",
292 srcs = ["generic_end2end_test.cc"],
300 "//src/proto/grpc/testing:echo_messages_proto",
301 "//src/proto/grpc/testing:echo_proto",
302 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
303 "//test/core/util:grpc_test_util",
304 "//test/cpp/util:test_util",
309 name = "health_service_end2end_test",
310 srcs = ["health_service_end2end_test.cc"],
315 ":test_health_check_service_impl",
316 ":test_service_impl",
320 "//src/proto/grpc/health/v1:health_proto",
321 "//src/proto/grpc/testing:echo_messages_proto",
322 "//src/proto/grpc/testing:echo_proto",
323 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
324 "//test/core/util:grpc_test_util",
325 "//test/cpp/util:test_util",
330 name = "hybrid_end2end_test",
331 srcs = ["hybrid_end2end_test.cc"],
336 ":test_service_impl",
340 "//src/proto/grpc/testing:echo_messages_proto",
341 "//src/proto/grpc/testing:echo_proto",
342 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
343 "//test/core/util:grpc_test_util",
344 "//test/cpp/util:test_util",
349 name = "raw_end2end_test",
350 srcs = ["raw_end2end_test.cc"],
355 ":test_service_impl",
359 "//src/proto/grpc/testing:echo_messages_proto",
360 "//src/proto/grpc/testing:echo_proto",
361 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
362 "//test/core/util:grpc_test_util",
363 "//test/cpp/util:test_util",
369 srcs = ["mock_test.cc"],
379 "//src/proto/grpc/testing:echo_messages_proto",
380 "//src/proto/grpc/testing:echo_proto",
381 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
382 "//test/core/util:grpc_test_util",
383 "//test/cpp/util:test_util",
388 name = "nonblocking_test",
389 srcs = ["nonblocking_test.cc"],
397 "//src/proto/grpc/testing:echo_messages_proto",
398 "//src/proto/grpc/testing:echo_proto",
399 "//test/core/util:grpc_test_util",
400 "//test/cpp/util:test_util",
405 name = "client_lb_end2end_test",
406 srcs = ["client_lb_end2end_test.cc"],
412 ":test_service_impl",
416 "//src/proto/grpc/testing:echo_messages_proto",
417 "//src/proto/grpc/testing:echo_proto",
418 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
419 "//test/core/util:grpc_test_util",
420 "//test/core/util:test_lb_policies",
421 "//test/cpp/util:test_util",
426 name = "grpclb_end2end_test",
427 srcs = ["grpclb_end2end_test.cc"],
433 ":test_service_impl",
437 "//:grpc_resolver_fake",
438 "//src/proto/grpc/lb/v1:load_balancer_proto",
439 "//src/proto/grpc/testing:echo_messages_proto",
440 "//src/proto/grpc/testing:echo_proto",
441 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
442 "//test/core/util:grpc_test_util",
443 "//test/cpp/util:test_util",
448 name = "xds_end2end_test",
449 srcs = ["xds_end2end_test.cc"],
455 ":test_service_impl",
459 "//:grpc_resolver_fake",
460 "//src/proto/grpc/lb/v1:load_balancer_proto",
461 "//src/proto/grpc/testing:echo_messages_proto",
462 "//src/proto/grpc/testing:echo_proto",
463 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
464 "//test/core/util:grpc_test_util",
465 "//test/cpp/util:test_util",
470 name = "proto_server_reflection_test",
471 srcs = ["proto_server_reflection_test.cc"],
477 ":test_service_impl",
481 "//:grpc++_reflection",
482 "//src/proto/grpc/testing:echo_messages_proto",
483 "//src/proto/grpc/testing:echo_proto",
484 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
485 "//test/core/util:grpc_test_util",
486 "//test/cpp/util:grpc++_proto_reflection_desc_db",
487 "//test/cpp/util:test_util",
492 name = "server_builder_plugin_test",
493 srcs = ["server_builder_plugin_test.cc"],
498 ":test_service_impl",
502 "//src/proto/grpc/testing:echo_messages_proto",
503 "//src/proto/grpc/testing:echo_proto",
504 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
505 "//test/core/util:grpc_test_util",
506 "//test/cpp/util:test_util",
511 name = "server_crash_test",
512 srcs = ["server_crash_test.cc"],
514 ":server_crash_test_client",
523 "//src/proto/grpc/testing:echo_messages_proto",
524 "//src/proto/grpc/testing:echo_proto",
525 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
526 "//test/core/util:grpc_test_util",
527 "//test/cpp/util:test_util",
532 name = "server_crash_test_client",
534 srcs = ["server_crash_test_client.cc"],
543 "//src/proto/grpc/testing:echo_messages_proto",
544 "//src/proto/grpc/testing:echo_proto",
545 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
546 "//test/core/util:grpc_test_util",
547 "//test/cpp/util:test_util",
552 name = "server_interceptors_end2end_test",
553 srcs = ["server_interceptors_end2end_test.cc"],
558 ":interceptors_util",
559 ":test_service_impl",
563 "//src/proto/grpc/testing:echo_messages_proto",
564 "//src/proto/grpc/testing:echo_proto",
565 "//test/core/util:grpc_test_util",
566 "//test/cpp/util:test_util",
571 name = "server_load_reporting_end2end_test",
572 srcs = ["server_load_reporting_end2end_test.cc"],
578 "//:grpcpp_server_load_reporting",
579 "//src/proto/grpc/testing:echo_proto",
580 "//test/cpp/util:test_util",
585 name = "flaky_network_test",
586 srcs = ["flaky_network_test.cc"],
592 ":test_service_impl",
596 "//src/proto/grpc/testing:echo_messages_proto",
597 "//src/proto/grpc/testing:echo_proto",
598 "//test/core/util:grpc_test_util",
599 "//test/cpp/util:test_util",
604 name = "shutdown_test",
605 srcs = ["shutdown_test.cc"],
613 "//src/proto/grpc/testing:echo_messages_proto",
614 "//src/proto/grpc/testing:echo_proto",
615 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
616 "//test/core/util:grpc_test_util",
617 "//test/cpp/util:test_util",
622 name = "streaming_throughput_test",
623 srcs = ["streaming_throughput_test.cc"],
631 "//src/proto/grpc/testing:echo_messages_proto",
632 "//src/proto/grpc/testing:echo_proto",
633 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
634 "//test/core/util:grpc_test_util",
635 "//test/cpp/util:test_util",
637 tags = ["no_windows"],
641 name = "thread_stress_test",
643 srcs = ["thread_stress_test.cc"],
651 "//src/proto/grpc/testing:echo_messages_proto",
652 "//src/proto/grpc/testing:echo_proto",
653 "//src/proto/grpc/testing/duplicate:echo_duplicate_proto",
654 "//test/core/util:grpc_test_util",
655 "//test/cpp/util:test_util",
660 name = "cfstream_test",
661 srcs = ["cfstream_test.cc"],
665 tags = ["manual"], # test requires root, won't work with bazel RBE
667 ":test_service_impl",
671 "//src/proto/grpc/testing:echo_messages_proto",
672 "//src/proto/grpc/testing:echo_proto",
673 "//src/proto/grpc/testing:simple_messages_proto",
674 "//test/core/util:grpc_test_util",
675 "//test/cpp/util:test_util",