blob: 2beed8148078173c5db6c345e1f0e9cf843b2b68 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001# Copyright 2017 gRPC authors.
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -07002#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003# 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
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -07006#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007# http://www.apache.org/licenses/LICENSE-2.0
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -07008#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009# 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.
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070014
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020015licenses(["notice"]) # Apache v2
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070016
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020017load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary")
18
Nicolas "Pixel" Nobleaf6c83f2017-05-19 00:38:10 +020019package(
20 features = [
21 "-layering_check",
22 "-parse_headers",
23 ],
24)
25
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020026grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070027 name = "server_helper_lib",
Craig Tillera7533712017-05-16 13:09:33 -070028 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070029 srcs = [
30 "server_helper.cc",
31 ],
32 hdrs = [
33 "server_helper.h",
34 ],
35 deps = [
36 "//test/cpp/util:test_util",
Craig Tillera7533712017-05-16 13:09:33 -070037 ],
38 external_deps = [
39 "gflags",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070040 ],
41)
42
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020043grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070044 name = "interop_server",
Craig Tillera7533712017-05-16 13:09:33 -070045 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070046 srcs = [
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070047 "interop_server_bootstrap.cc",
48 ],
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020049 language = "C++",
50 deps = [
51 "//:grpc++",
Nicolas "Pixel" Nobled1c72ee2017-05-25 04:26:01 +020052 ":interop_server_lib",
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020053 ],
54)
55
56grpc_cc_library(
57 name = "interop_server_lib",
58 srcs = [
59 "interop_server.cc",
60 ],
61 language = "C++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070062 deps = [
63 ":server_helper_lib",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070064 "//src/proto/grpc/testing:empty_proto",
65 "//src/proto/grpc/testing:messages_proto",
66 "//src/proto/grpc/testing:test_proto",
67 "//test/cpp/util:test_config",
68 ],
69)
70
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020071grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070072 name = "client_helper_lib",
Craig Tillera7533712017-05-16 13:09:33 -070073 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070074 srcs = [
75 "client_helper.cc",
76 "interop_client.cc",
77 ],
78 hdrs = [
79 "client_helper.h",
80 "interop_client.h",
81 ],
82 deps = [
83 "//test/cpp/util:test_util",
84 "//src/proto/grpc/testing:empty_proto",
85 "//src/proto/grpc/testing:messages_proto",
86 "//src/proto/grpc/testing:test_proto",
87 "//test/core/security:oauth2_utils",
Makarand Dharmapurikar6a8e2c22017-04-18 13:09:52 -070088 "//test/cpp/util:test_config",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070089 ],
90)
91
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020092grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070093 name = "interop_client",
94 srcs = [
95 "client.cc",
96 ],
97 deps = [
98 ":client_helper_lib",
Nicolas "Pixel" Noble3dedf652017-05-24 02:29:02 +020099 "//:grpc++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -0700100 ],
101)
Nicolas "Pixel" Nobled1c72ee2017-05-25 04:26:01 +0200102
103grpc_cc_binary(
104 name = "reconnect_interop_client",
105 srcs = [
106 "reconnect_interop_client.cc",
107 ],
108 deps = [
109 ":client_helper_lib",
110 "//:grpc++",
111 "//test/core/util:grpc_test_util",
112 ],
113)
114
115grpc_cc_binary(
116 name = "reconnect_interop_server",
117 srcs = [
118 "reconnect_interop_server.cc"
119 ],
120 language = "C++",
121 deps = [
Nicolas "Pixel" Nobled1c72ee2017-05-25 04:26:01 +0200122 ":interop_server_lib",
Nicolas "Pixel" Noble7e536472017-05-25 04:45:06 +0200123 "//:grpc++",
Nicolas "Pixel" Nobled1c72ee2017-05-25 04:26:01 +0200124 "//test/core/util:grpc_test_util",
125 ],
126)
Nicolas "Pixel" Noble7e536472017-05-25 04:45:06 +0200127
128grpc_cc_binary(
129 name = "stress_test",
130 srcs = [
131 "stress_test.cc",
132 "stress_interop_client.cc",
133 "stress_interop_client.h",
134 ],
135 deps = [
136 ":client_helper_lib",
137 "//:grpc++",
138 "//test/cpp/util:metrics_server_lib",
139 "//test/cpp/util:test_config",
Craig Tiller840931e2017-05-19 15:37:45 -0700140 name = "interop_client",
141 language = "c++",
142 deps = [
143 ":interop_client_main",
Nicolas "Pixel" Noble7e536472017-05-25 04:45:06 +0200144 ],
145)