blob: 9e68f8a0e99a9e2515b105b5f604a6c316657961 [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",
34 hdrs = ["parse_json.h"],
35 srcs = ["parse_json.cc"],
36 deps = ["//:grpc++"],
37)
38
39cc_library(
40 name = "qps_worker_impl",
41 hdrs = ["client.h", "server.h", "qps_worker.h"],
42 srcs = ["client_async.cc", "client_sync.cc", "server_async.cc", "server_sync.cc", "qps_worker.cc"],
43 deps = ["//:grpc++",
44 "//:grpc",
45 "//test/core/util:grpc_test_util",
46 "//test/core/util:gpr_test_util",
47 "//src/proto/grpc/testing:services_proto",
48 "//src/proto/grpc/testing:payloads_proto",
49 "//src/proto/grpc/testing:control_proto",
50 "//external:gtest"],
51)
52
53cc_library(
54 name = "driver_impl",
55 hdrs = ["driver.h", "report.h"],
56 srcs = ["driver.cc", "report.cc"],
57 deps = ["//:grpc++"]
58)
59
60cc_library(
61 name = "histogram",
62 hdrs = ["histogram.h", "stats.h"],
63 deps = ["//:gpr"]
64)
65
66cc_library(
67 name = "interarrival",
68 hdrs = ["interarrival.h"],
69 deps = ["//:grpc++"]
70)
71
72cc_binary(
73 name = "json_run_localhost",
74 srcs = ["json_run_localhost.cc"],
75 deps = ["//:gpr", "//test/core/util:grpc_test_util", "//test/core/util:gpr_test_util", "//test/cpp/util:test_util"]
76)
77
78cc_test(
79 name = "qps_interarrival_test",
80 srcs = ["qps_interarrival_test.cc"],
81 deps = [":histogram", ":interarrival"]
82)
83
84cc_binary(
85 name = "qps_json_driver",
86 srcs = ["qps_json_driver.cc"],
Craig Tillerb32ffb92017-02-17 15:47:59 -080087 deps = ["//:grpc++", ":driver_impl"]
Craig Tiller3a488472017-02-17 14:35:26 -080088)
89
90cc_test(
91 name = "qps_openloop_test",
92 srcs = ["qps_openloop_test.cc"],
93 deps = [":qps_worker_impl", ":driver_impl"]
94)
95
96cc_test(
97 name = "secure_sync_unary_ping_pong_test",
98 srcs = ["secure_sync_unary_ping_pong_test.cc"],
99 deps = ["//:grpc++", ":driver_impl"]
100)
101
102cc_library(
103 name = "usage_timer",
104 srcs = ["usage_timer.cc"],
105 hdrs = ["usage_timer.h"],
106 deps = ["//:gpr"]
107)
108
109cc_binary(
110 name = "qps_worker",
111 srcs = ["worker.cc"],
112 deps = ["//:grpc++", ":qps_worker_impl", "//test/core/util:grpc_test_util", "//test/core/util:gpr_test_util", "//test/cpp/util:test_util", "//test/cpp/util:test_config"]
113)