blob: d818643bc3200ca87937b5682d70e33eb703d868 [file] [log] [blame]
Craig Tiller3a488472017-02-17 14:35:26 -08001# 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
30licenses(["notice"]) # 3-clause BSD
31
32cc_library(
33 name = "parse_json",
Craig Tiller3a488472017-02-17 14:35:26 -080034 srcs = ["parse_json.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010035 hdrs = ["parse_json.h"],
Craig Tiller3a488472017-02-17 14:35:26 -080036 deps = ["//:grpc++"],
37)
38
39cc_library(
40 name = "qps_worker_impl",
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010041 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 Tiller3a488472017-02-17 14:35:26 -080063)
64
65cc_library(
66 name = "driver_impl",
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010067 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 Tiller3a488472017-02-17 14:35:26 -080079)
80
81cc_library(
82 name = "histogram",
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010083 hdrs = [
84 "histogram.h",
85 "stats.h",
86 ],
87 deps = ["//:gpr"],
Craig Tiller3a488472017-02-17 14:35:26 -080088)
89
90cc_library(
91 name = "interarrival",
92 hdrs = ["interarrival.h"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010093 deps = ["//:grpc++"],
Craig Tiller3a488472017-02-17 14:35:26 -080094)
95
96cc_binary(
97 name = "json_run_localhost",
98 srcs = ["json_run_localhost.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +010099 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 Tiller3a488472017-02-17 14:35:26 -0800105)
106
107cc_test(
108 name = "qps_interarrival_test",
109 srcs = ["qps_interarrival_test.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100110 deps = [
111 ":histogram",
112 ":interarrival",
113 ],
Craig Tiller3a488472017-02-17 14:35:26 -0800114)
115
116cc_binary(
117 name = "qps_json_driver",
118 srcs = ["qps_json_driver.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100119 deps = [
120 ":driver_impl",
121 "//:grpc++",
122 ],
Craig Tiller3a488472017-02-17 14:35:26 -0800123)
124
125cc_test(
126 name = "qps_openloop_test",
127 srcs = ["qps_openloop_test.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100128 deps = [
129 ":driver_impl",
130 ":qps_worker_impl",
131 ],
Craig Tiller3a488472017-02-17 14:35:26 -0800132)
133
134cc_test(
135 name = "secure_sync_unary_ping_pong_test",
136 srcs = ["secure_sync_unary_ping_pong_test.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100137 deps = [
138 ":driver_impl",
139 "//:grpc++",
140 ],
Craig Tiller3a488472017-02-17 14:35:26 -0800141)
142
143cc_library(
144 name = "usage_timer",
145 srcs = ["usage_timer.cc"],
146 hdrs = ["usage_timer.h"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100147 deps = ["//:gpr"],
Craig Tiller3a488472017-02-17 14:35:26 -0800148)
149
150cc_binary(
151 name = "qps_worker",
152 srcs = ["worker.cc"],
Nicolas "Pixel" Noble0a6d30b2017-03-22 00:51:51 +0100153 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 Tiller3a488472017-02-17 14:35:26 -0800161)