Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 1 | # Copyright 2017 gRPC authors. |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 2 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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 |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 6 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 8 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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. |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 14 | |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 15 | licenses(["notice"]) # Apache v2 |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 16 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 17 | load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_cc_library", "grpc_cc_binary") |
| 18 | |
| 19 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 20 | name = "parse_json", |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 21 | srcs = ["parse_json.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 22 | hdrs = ["parse_json.h"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 23 | deps = ["//:grpc++"], |
Nicolas "Pixel" Noble | 78f8ce3 | 2017-05-11 00:42:55 +0200 | [diff] [blame] | 24 | external_deps = ["protobuf"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 25 | ) |
| 26 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 27 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 28 | name = "qps_worker_impl", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 29 | srcs = [ |
| 30 | "client_async.cc", |
| 31 | "client_sync.cc", |
| 32 | "qps_worker.cc", |
| 33 | "server_async.cc", |
| 34 | "server_sync.cc", |
| 35 | ], |
| 36 | hdrs = [ |
| 37 | "client.h", |
| 38 | "qps_worker.h", |
| 39 | "server.h", |
| 40 | ], |
| 41 | deps = [ |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 42 | ":histogram", |
| 43 | ":interarrival", |
| 44 | ":usage_timer", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 45 | "//:grpc", |
| 46 | "//:grpc++", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 47 | "//src/proto/grpc/testing:control_proto", |
| 48 | "//src/proto/grpc/testing:payloads_proto", |
| 49 | "//src/proto/grpc/testing:services_proto", |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 50 | "//test/core/end2end:ssl_test_data", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 51 | "//test/core/util:gpr_test_util", |
| 52 | "//test/core/util:grpc_test_util", |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 53 | "//test/cpp/util:test_util", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 54 | ], |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 55 | external_deps = [ |
| 56 | "gtest", |
| 57 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 58 | ) |
| 59 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 60 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 61 | name = "driver_impl", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 62 | srcs = [ |
| 63 | "driver.cc", |
| 64 | "report.cc", |
| 65 | ], |
| 66 | hdrs = [ |
| 67 | "driver.h", |
| 68 | "report.h", |
| 69 | ], |
| 70 | deps = [ |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 71 | ":histogram", |
| 72 | ":parse_json", |
| 73 | ":qps_worker_impl", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 74 | "//:grpc++", |
| 75 | "//src/proto/grpc/testing:control_proto", |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 76 | "//src/proto/grpc/testing:messages_proto", |
| 77 | "//src/proto/grpc/testing:services_proto", |
| 78 | "//test/core/util:gpr_test_util", |
| 79 | "//test/core/util:grpc_test_util", |
Guantao Liu | abe3cf5 | 2017-07-12 17:36:30 -0700 | [diff] [blame^] | 80 | "//test/cpp/util:test_util", |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 81 | ], |
| 82 | ) |
| 83 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 84 | grpc_cc_library( |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 85 | name = "benchmark_config", |
| 86 | srcs = [ |
| 87 | "benchmark_config.cc", |
| 88 | ], |
| 89 | hdrs = [ |
| 90 | "benchmark_config.h", |
| 91 | ], |
| 92 | deps = [ |
| 93 | ":driver_impl", |
| 94 | ":histogram", |
| 95 | "//:grpc++", |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 96 | "//src/proto/grpc/testing:control_proto", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 97 | ], |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 98 | external_deps = [ |
| 99 | "gflags", |
| 100 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 101 | ) |
| 102 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 103 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 104 | name = "histogram", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 105 | hdrs = [ |
| 106 | "histogram.h", |
| 107 | "stats.h", |
| 108 | ], |
| 109 | deps = ["//:gpr"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 110 | ) |
| 111 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 112 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 113 | name = "interarrival", |
| 114 | hdrs = ["interarrival.h"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 115 | deps = ["//:grpc++"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 116 | ) |
| 117 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 118 | grpc_cc_binary( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 119 | name = "json_run_localhost", |
| 120 | srcs = ["json_run_localhost.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 121 | deps = [ |
| 122 | "//:gpr", |
| 123 | "//test/core/util:gpr_test_util", |
| 124 | "//test/core/util:grpc_test_util", |
| 125 | "//test/cpp/util:test_util", |
| 126 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 127 | ) |
| 128 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 129 | grpc_cc_test( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 130 | name = "qps_interarrival_test", |
| 131 | srcs = ["qps_interarrival_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 132 | deps = [ |
| 133 | ":histogram", |
| 134 | ":interarrival", |
| 135 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 136 | ) |
| 137 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 138 | grpc_cc_binary( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 139 | name = "qps_json_driver", |
| 140 | srcs = ["qps_json_driver.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 141 | deps = [ |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 142 | ":benchmark_config", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 143 | ":driver_impl", |
| 144 | "//:grpc++", |
Guantao Liu | abe3cf5 | 2017-07-12 17:36:30 -0700 | [diff] [blame^] | 145 | "//test/cpp/util:test_config", |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 146 | ], |
| 147 | external_deps = [ |
| 148 | "gflags", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 149 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 150 | ) |
| 151 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 152 | grpc_cc_test( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 153 | name = "qps_openloop_test", |
| 154 | srcs = ["qps_openloop_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 155 | deps = [ |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 156 | ":benchmark_config", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 157 | ":driver_impl", |
| 158 | ":qps_worker_impl", |
| 159 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 160 | ) |
| 161 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 162 | grpc_cc_test( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 163 | name = "secure_sync_unary_ping_pong_test", |
| 164 | srcs = ["secure_sync_unary_ping_pong_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 165 | deps = [ |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 166 | ":benchmark_config", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 167 | ":driver_impl", |
| 168 | "//:grpc++", |
| 169 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 170 | ) |
| 171 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 172 | grpc_cc_library( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 173 | name = "usage_timer", |
| 174 | srcs = ["usage_timer.cc"], |
| 175 | hdrs = ["usage_timer.h"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 176 | deps = ["//:gpr"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 177 | ) |
| 178 | |
Nicolas "Pixel" Noble | 7c26eed | 2017-04-13 01:40:54 +0200 | [diff] [blame] | 179 | grpc_cc_binary( |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 180 | name = "qps_worker", |
| 181 | srcs = ["worker.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 182 | deps = [ |
| 183 | ":qps_worker_impl", |
| 184 | "//:grpc++", |
| 185 | "//test/core/util:gpr_test_util", |
| 186 | "//test/core/util:grpc_test_util", |
| 187 | "//test/cpp/util:test_config", |
| 188 | "//test/cpp/util:test_util", |
| 189 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 190 | ) |