Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 1 | # Copyright 2017, Google Inc. |
| 2 | # All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions are |
| 6 | # met: |
| 7 | # |
| 8 | # * Redistributions of source code must retain the above copyright |
| 9 | # notice, this list of conditions and the following disclaimer. |
| 10 | # * Redistributions in binary form must reproduce the above |
| 11 | # copyright notice, this list of conditions and the following disclaimer |
| 12 | # in the documentation and/or other materials provided with the |
| 13 | # distribution. |
| 14 | # * Neither the name of Google Inc. nor the names of its |
| 15 | # contributors may be used to endorse or promote products derived from |
| 16 | # this software without specific prior written permission. |
| 17 | # |
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | |
| 30 | licenses(["notice"]) # 3-clause BSD |
| 31 | |
| 32 | cc_library( |
| 33 | name = "parse_json", |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 34 | srcs = ["parse_json.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 35 | hdrs = ["parse_json.h"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 36 | deps = ["//:grpc++"], |
| 37 | ) |
| 38 | |
| 39 | cc_library( |
| 40 | name = "qps_worker_impl", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 41 | srcs = [ |
| 42 | "client_async.cc", |
| 43 | "client_sync.cc", |
| 44 | "qps_worker.cc", |
| 45 | "server_async.cc", |
| 46 | "server_sync.cc", |
| 47 | ], |
| 48 | hdrs = [ |
| 49 | "client.h", |
| 50 | "qps_worker.h", |
| 51 | "server.h", |
| 52 | ], |
| 53 | deps = [ |
| 54 | "//:grpc", |
| 55 | "//:grpc++", |
| 56 | "//external:gtest", |
| 57 | "//src/proto/grpc/testing:control_proto", |
| 58 | "//src/proto/grpc/testing:payloads_proto", |
| 59 | "//src/proto/grpc/testing:services_proto", |
| 60 | "//test/core/util:gpr_test_util", |
| 61 | "//test/core/util:grpc_test_util", |
| 62 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | cc_library( |
| 66 | name = "driver_impl", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 67 | srcs = [ |
| 68 | "driver.cc", |
| 69 | "report.cc", |
| 70 | ], |
| 71 | hdrs = [ |
| 72 | "driver.h", |
| 73 | "report.h", |
| 74 | ], |
| 75 | deps = [ |
| 76 | "//:grpc++", |
| 77 | "//src/proto/grpc/testing:control_proto", |
| 78 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 79 | ) |
| 80 | |
| 81 | cc_library( |
| 82 | name = "histogram", |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 83 | hdrs = [ |
| 84 | "histogram.h", |
| 85 | "stats.h", |
| 86 | ], |
| 87 | deps = ["//:gpr"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 88 | ) |
| 89 | |
| 90 | cc_library( |
| 91 | name = "interarrival", |
| 92 | hdrs = ["interarrival.h"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 93 | deps = ["//:grpc++"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 94 | ) |
| 95 | |
| 96 | cc_binary( |
| 97 | name = "json_run_localhost", |
| 98 | srcs = ["json_run_localhost.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 99 | deps = [ |
| 100 | "//:gpr", |
| 101 | "//test/core/util:gpr_test_util", |
| 102 | "//test/core/util:grpc_test_util", |
| 103 | "//test/cpp/util:test_util", |
| 104 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 105 | ) |
| 106 | |
| 107 | cc_test( |
| 108 | name = "qps_interarrival_test", |
| 109 | srcs = ["qps_interarrival_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 110 | deps = [ |
| 111 | ":histogram", |
| 112 | ":interarrival", |
| 113 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 114 | ) |
| 115 | |
| 116 | cc_binary( |
| 117 | name = "qps_json_driver", |
| 118 | srcs = ["qps_json_driver.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 119 | deps = [ |
| 120 | ":driver_impl", |
| 121 | "//:grpc++", |
| 122 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 123 | ) |
| 124 | |
| 125 | cc_test( |
| 126 | name = "qps_openloop_test", |
| 127 | srcs = ["qps_openloop_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 128 | deps = [ |
| 129 | ":driver_impl", |
| 130 | ":qps_worker_impl", |
| 131 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 132 | ) |
| 133 | |
| 134 | cc_test( |
| 135 | name = "secure_sync_unary_ping_pong_test", |
| 136 | srcs = ["secure_sync_unary_ping_pong_test.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 137 | deps = [ |
| 138 | ":driver_impl", |
| 139 | "//:grpc++", |
| 140 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 141 | ) |
| 142 | |
| 143 | cc_library( |
| 144 | name = "usage_timer", |
| 145 | srcs = ["usage_timer.cc"], |
| 146 | hdrs = ["usage_timer.h"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 147 | deps = ["//:gpr"], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 148 | ) |
| 149 | |
| 150 | cc_binary( |
| 151 | name = "qps_worker", |
| 152 | srcs = ["worker.cc"], |
Nicolas "Pixel" Noble | 0a6d30b | 2017-03-22 00:51:51 +0100 | [diff] [blame] | 153 | deps = [ |
| 154 | ":qps_worker_impl", |
| 155 | "//:grpc++", |
| 156 | "//test/core/util:gpr_test_util", |
| 157 | "//test/core/util:grpc_test_util", |
| 158 | "//test/cpp/util:test_config", |
| 159 | "//test/cpp/util:test_util", |
| 160 | ], |
Craig Tiller | 3a48847 | 2017-02-17 14:35:26 -0800 | [diff] [blame] | 161 | ) |