mirror of https://github.com/grpc/grpc.git
commit
3ca6019d39
49 changed files with 2465 additions and 3151 deletions
@ -0,0 +1,47 @@ |
||||
bind( |
||||
name = "nanopb", |
||||
actual = "//third_party/nanopb", |
||||
) |
||||
|
||||
bind( |
||||
name = "libssl", |
||||
actual = "@submodule_boringssl//:ssl", |
||||
) |
||||
|
||||
bind( |
||||
name = "zlib", |
||||
actual = "@submodule_zlib//:z", |
||||
) |
||||
|
||||
bind( |
||||
name = "protobuf", |
||||
actual = "@submodule_protobuf//:protobuf", |
||||
) |
||||
|
||||
bind( |
||||
name = "protobuf_clib", |
||||
actual = "@submodule_protobuf//:protoc_lib", |
||||
) |
||||
|
||||
bind( |
||||
name = "protocol_compiler", |
||||
actual = "@submodule_protobuf//:protoc", |
||||
) |
||||
|
||||
new_local_repository( |
||||
name = "submodule_boringssl", |
||||
path = "third_party/boringssl-with-bazel", |
||||
build_file = "third_party/boringssl-with-bazel/BUILD", |
||||
) |
||||
|
||||
new_local_repository( |
||||
name = "submodule_zlib", |
||||
path = "third_party/zlib", |
||||
build_file = "third_party/zlib.BUILD", |
||||
) |
||||
|
||||
new_local_repository( |
||||
name = "submodule_protobuf", |
||||
path = "third_party/protobuf", |
||||
build_file = "third_party/protobuf/BUILD", |
||||
) |
@ -0,0 +1,9 @@ |
||||
package(default_visibility = ["//:__subpackages__"]) |
||||
|
||||
load(":cc_grpc_library.bzl", "cc_grpc_library") |
||||
|
||||
cc_grpc_library( |
||||
name = "well_known_protos", |
||||
srcs = "@submodule_protobuf//:well_known_protos", |
||||
proto_only = True, |
||||
) |
@ -0,0 +1,62 @@ |
||||
"""Generates and compiles C++ grpc stubs from proto_library rules.""" |
||||
|
||||
load("//:bazel/generate_cc.bzl", "generate_cc") |
||||
|
||||
def cc_grpc_library(name, srcs, deps, proto_only, **kwargs): |
||||
"""Generates C++ grpc classes from a .proto file. |
||||
|
||||
Assumes the generated classes will be used in cc_api_version = 2. |
||||
|
||||
Arguments: |
||||
name: name of rule. |
||||
srcs: a single proto_library, which wraps the .proto files with services. |
||||
deps: a list of C++ proto_library (or cc_proto_library) which provides |
||||
the compiled code of any message that the services depend on. |
||||
**kwargs: rest of arguments, e.g., compatible_with and visibility. |
||||
""" |
||||
if len(srcs) > 1: |
||||
fail("Only one srcs value supported", "srcs") |
||||
|
||||
proto_target = "_" + name + "_only" |
||||
codegen_target = "_" + name + "_codegen" |
||||
codegen_grpc_target = "_" + name + "_grpc_codegen" |
||||
proto_deps = ["_" + dep + "_only" for dep in deps if dep.find(':') == -1] |
||||
proto_deps += [dep.split(':')[0] + ':' + "_" + dep.split(':')[1] + "_only" for dep in deps if dep.find(':') != -1] |
||||
|
||||
native.proto_library( |
||||
name = proto_target, |
||||
srcs = srcs, |
||||
deps = proto_deps, |
||||
**kwargs |
||||
) |
||||
|
||||
generate_cc( |
||||
name = codegen_target, |
||||
srcs = [proto_target], |
||||
**kwargs |
||||
) |
||||
|
||||
if not proto_only: |
||||
generate_cc( |
||||
name = codegen_grpc_target, |
||||
srcs = [proto_target], |
||||
plugin = "//:grpc_cpp_plugin", |
||||
**kwargs |
||||
) |
||||
|
||||
if not proto_only: |
||||
native.cc_library( |
||||
name = name, |
||||
srcs = [":" + codegen_grpc_target, ":" + codegen_target], |
||||
hdrs = [":" + codegen_grpc_target, ":" + codegen_target], |
||||
deps = deps + ["//:grpc++", "//:grpc++_codegen_proto", "//external:protobuf"], |
||||
**kwargs |
||||
) |
||||
else: |
||||
native.cc_library( |
||||
name = name, |
||||
srcs = [":" + codegen_target], |
||||
hdrs = [":" + codegen_target], |
||||
deps = deps + ["//external:protobuf"], |
||||
**kwargs |
||||
) |
@ -0,0 +1,66 @@ |
||||
"""Generates C++ grpc stubs from proto_library rules. |
||||
|
||||
This is an internal rule used by cc_grpc_library, and shouldn't be used |
||||
directly. |
||||
""" |
||||
|
||||
def generate_cc_impl(ctx): |
||||
"""Implementation of the generate_cc rule.""" |
||||
protos = [f for src in ctx.attr.srcs for f in src.proto.direct_sources] |
||||
includes = [f for src in ctx.attr.srcs for f in src.proto.transitive_imports] |
||||
outs = [] |
||||
if ctx.executable.plugin: |
||||
outs += [proto.basename[:-len(".proto")] + ".grpc.pb.h" for proto in protos] |
||||
outs += [proto.basename[:-len(".proto")] + ".grpc.pb.cc" for proto in protos] |
||||
else: |
||||
outs += [proto.basename[:-len(".proto")] + ".pb.h" for proto in protos] |
||||
outs += [proto.basename[:-len(".proto")] + ".pb.cc" for proto in protos] |
||||
out_files = [ctx.new_file(out) for out in outs] |
||||
# The following should be replaced with ctx.configuration.buildout |
||||
# whenever this is added to Skylark. |
||||
dir_out = out_files[0].dirname[:-len(protos[0].dirname)] |
||||
|
||||
arguments = [] |
||||
if ctx.executable.plugin: |
||||
arguments += ["--plugin=protoc-gen-PLUGIN=" + ctx.executable.plugin.path] |
||||
arguments += ["--PLUGIN_out=" + ",".join(ctx.attr.flags) + ":" + dir_out] |
||||
else: |
||||
arguments += ["--cpp_out=" + ",".join(ctx.attr.flags) + ":" + dir_out] |
||||
arguments += ["-I{0}={0}".format(include.path) for include in includes] |
||||
arguments += [proto.path for proto in protos] |
||||
|
||||
ctx.action( |
||||
inputs = protos + includes, |
||||
outputs = out_files, |
||||
executable = ctx.executable._protoc, |
||||
arguments = arguments, |
||||
) |
||||
|
||||
return struct(files=set(out_files)) |
||||
|
||||
generate_cc = rule( |
||||
attrs = { |
||||
"srcs": attr.label_list( |
||||
mandatory = True, |
||||
non_empty = True, |
||||
providers = ["proto"], |
||||
), |
||||
"plugin": attr.label( |
||||
executable = True, |
||||
providers = ["files_to_run"], |
||||
cfg = "host", |
||||
), |
||||
"flags": attr.string_list( |
||||
mandatory = False, |
||||
allow_empty = True, |
||||
), |
||||
"_protoc": attr.label( |
||||
default = Label("//external:protocol_compiler"), |
||||
executable = True, |
||||
cfg = "host", |
||||
), |
||||
}, |
||||
# We generate .h files, so we need to output to genfiles. |
||||
output_to_genfiles = True, |
||||
implementation = generate_cc_impl, |
||||
) |
@ -0,0 +1,68 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
# |
||||
# This is for the gRPC build system. This isn't intended to be used outsite of |
||||
# the BUILD file for gRPC. It contains the mapping for the template system we |
||||
# use to generate other platform's build system files. |
||||
# |
||||
|
||||
def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [], external_deps = [], deps = [], standalone = False, language = "C++"): |
||||
copts = [] |
||||
if language.upper() == "C": |
||||
copts = ["-std=c99"] |
||||
native.cc_library( |
||||
name = name, |
||||
srcs = srcs, |
||||
hdrs = hdrs + public_hdrs, |
||||
deps = deps + ["//external:" + dep for dep in external_deps], |
||||
copts = copts, |
||||
linkopts = ["-pthread"], |
||||
includes = [ |
||||
"include" |
||||
] |
||||
) |
||||
|
||||
def grpc_proto_plugin(name, srcs = [], deps = []): |
||||
native.cc_binary( |
||||
name = name, |
||||
srcs = srcs, |
||||
deps = deps, |
||||
) |
||||
|
||||
load("//:bazel/cc_grpc_library.bzl", "cc_grpc_library") |
||||
|
||||
def grpc_proto_library(name, srcs = [], deps = [], well_known_deps = [], has_services = True): |
||||
cc_grpc_library( |
||||
name = name, |
||||
srcs = srcs, |
||||
deps = deps, |
||||
proto_only = not has_services, |
||||
) |
||||
|
@ -0,0 +1,63 @@ |
||||
|
||||
package(default_visibility = ["//visibility:public"]) |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_proto_library") |
||||
|
||||
grpc_proto_library( |
||||
name = "compiler_test_proto", |
||||
srcs = ["compiler_test.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "control_proto", |
||||
srcs = ["control.proto"], |
||||
deps = ["payloads_proto", "stats_proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "echo_messages_proto", |
||||
srcs = ["echo_messages.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "echo_proto", |
||||
srcs = ["echo.proto"], |
||||
deps = ["echo_messages_proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "empty_proto", |
||||
srcs = ["empty.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "messages_proto", |
||||
srcs = ["messages.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "metrics_proto", |
||||
srcs = ["metrics.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "payloads_proto", |
||||
srcs = ["payloads.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "services_proto", |
||||
srcs = ["services.proto"], |
||||
deps = ["control_proto", "messages_proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "stats_proto", |
||||
srcs = ["stats.proto"], |
||||
) |
||||
|
||||
grpc_proto_library( |
||||
name = "test_proto", |
||||
srcs = ["test.proto"], |
||||
deps = ["empty_proto", "messages_proto"], |
||||
) |
@ -0,0 +1,10 @@ |
||||
|
||||
package(default_visibility = ["//visibility:public"]) |
||||
|
||||
load("//bazel:grpc_build_system.bzl", "grpc_proto_library") |
||||
|
||||
grpc_proto_library( |
||||
name = "echo_duplicate_proto", |
||||
srcs = ["echo_duplicate.proto"], |
||||
deps = ["//src/proto/grpc/testing:echo_messages_proto"], |
||||
) |
@ -1,256 +0,0 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# GRPC Bazel BUILD file. |
||||
# This currently builds C, C++ and Objective-C code. |
||||
# This file has been automatically generated from a template file. |
||||
# Please look at the templates directory instead. |
||||
# This file can be regenerated from the template by running |
||||
# tools/buildgen/generate_projects.sh |
||||
|
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
licenses(["notice"]) # 3-clause BSD |
||||
|
||||
exports_files(["LICENSE"]) |
||||
|
||||
package(default_visibility = ["//visibility:public"]) |
||||
|
||||
<%! |
||||
def get_deps(target_dict): |
||||
deps = [] |
||||
if target_dict.get('secure', False): |
||||
deps = [ |
||||
"//external:libssl", |
||||
] |
||||
if target_dict.get('build', None) == 'protoc': |
||||
deps.append("//external:protobuf_compiler") |
||||
if (target_dict['name'] == 'grpc++_unsecure' or |
||||
target_dict['name'] == 'grpc++' or |
||||
target_dict['name'] == 'grpc++_codegen_lib'): |
||||
deps.append("//external:protobuf_clib") |
||||
elif target_dict['name'] == 'grpc': |
||||
deps.append("//external:zlib") |
||||
for d in target_dict.get('deps', []): |
||||
if d.find('//') == 0 or d[0] == ':': |
||||
deps.append(d) |
||||
else: |
||||
deps.append(':%s' % (d)) |
||||
return deps |
||||
%> |
||||
|
||||
% for lib in libs: |
||||
% if lib.build in ("all", "protoc"): |
||||
${cc_library(lib)} |
||||
% endif |
||||
% endfor |
||||
|
||||
% for lib in libs: |
||||
% if lib.name in ("grpc", "gpr"): |
||||
${objc_library(lib)} |
||||
% endif |
||||
% endfor |
||||
|
||||
% for tgt in targets: |
||||
% if tgt.build == 'protoc': |
||||
${cc_binary(tgt)} |
||||
% endif |
||||
% endfor |
||||
|
||||
<%def name="cc_library(lib)"> |
||||
<% |
||||
lib_hdrs = lib.get("headers", []) |
||||
hdrs = [h for h in lib_hdrs if not h.startswith('third_party/nanopb')] |
||||
srcs = [s for s in lib.src if not s.startswith('third_party/nanopb')] |
||||
uses_nanopb = len(lib_hdrs) != len(hdrs) or len(srcs) != len(lib.src) |
||||
%> |
||||
cc_library( |
||||
name = "${lib.name}", |
||||
srcs = [ |
||||
% for hdr in hdrs: |
||||
"${hdr}", |
||||
% endfor |
||||
% for src in srcs: |
||||
"${src}", |
||||
% endfor |
||||
], |
||||
hdrs = [ |
||||
% for hdr in lib.get("public_headers", []): |
||||
"${hdr}", |
||||
% endfor |
||||
], |
||||
includes = [ |
||||
"include", |
||||
".", |
||||
], |
||||
deps = [ |
||||
% for dep in get_deps(lib): |
||||
"${dep}", |
||||
% endfor |
||||
% if uses_nanopb: |
||||
"//external:nanopb", |
||||
% endif |
||||
], |
||||
% if lib.name in ("grpc", "grpc_unsecure"): |
||||
copts = [ |
||||
"-std=gnu99", |
||||
], |
||||
% endif |
||||
) |
||||
</%def> |
||||
|
||||
<%def name="objc_library(lib)"> |
||||
<% |
||||
lib_hdrs = lib.get("headers", []) |
||||
hdrs = [h for h in lib_hdrs if not h.startswith('third_party/nanopb')] |
||||
srcs = [s for s in lib.src if not s.startswith('third_party/nanopb')] |
||||
uses_nanopb = len(lib_hdrs) != len(hdrs) or len(srcs) != len(lib.src) |
||||
%> |
||||
objc_library( |
||||
name = "${lib.name}_objc", |
||||
srcs = [ |
||||
% for src in srcs: |
||||
"${src}", |
||||
% endfor |
||||
], |
||||
hdrs = [ |
||||
% for hdr in lib.get("public_headers", []): |
||||
"${hdr}", |
||||
% endfor |
||||
% for hdr in hdrs: |
||||
"${hdr}", |
||||
% endfor |
||||
], |
||||
includes = [ |
||||
"include", |
||||
".", |
||||
], |
||||
deps = [ |
||||
% for dep in lib.get("deps", []): |
||||
":${dep}_objc", |
||||
% endfor |
||||
% if lib.get('secure', False): |
||||
"//external:libssl_objc", |
||||
% endif |
||||
% if uses_nanopb: |
||||
"//external:nanopb", |
||||
% endif |
||||
], |
||||
% if lib.get("baselib", false): |
||||
sdk_dylibs = ["libz"], |
||||
% endif |
||||
) |
||||
</%def> |
||||
|
||||
<%def name="cc_binary(tgt)"> |
||||
cc_binary( |
||||
name = "${tgt.name}", |
||||
srcs = [ |
||||
% for src in tgt.src: |
||||
"${src}", |
||||
% endfor |
||||
], |
||||
deps = [ |
||||
% for dep in get_deps(tgt): |
||||
"${dep}", |
||||
% endfor |
||||
], |
||||
) |
||||
</%def> |
||||
|
||||
objc_path = "src/objective-c" |
||||
|
||||
rx_library_path = objc_path + "/RxLibrary" |
||||
|
||||
objc_library( |
||||
name = "rx_library", |
||||
hdrs = glob([ |
||||
rx_library_path + "/*.h", |
||||
rx_library_path + "/transformations/*.h", |
||||
]), |
||||
srcs = glob([ |
||||
rx_library_path + "/*.m", |
||||
rx_library_path + "/transformations/*.m", |
||||
]), |
||||
includes = [objc_path], |
||||
deps = [ |
||||
":rx_library_private", |
||||
], |
||||
) |
||||
|
||||
objc_library( |
||||
name = "rx_library_private", |
||||
hdrs = glob([rx_library_path + "/private/*.h"]), |
||||
srcs = glob([rx_library_path + "/private/*.m"]), |
||||
visibility = ["//visibility:private"], |
||||
) |
||||
|
||||
objc_client_path = objc_path + "/GRPCClient" |
||||
|
||||
objc_library( |
||||
name = "grpc_client", |
||||
hdrs = glob([ |
||||
objc_client_path + "/*.h", |
||||
objc_client_path + "/private/*.h", |
||||
]), |
||||
srcs = glob([ |
||||
objc_client_path + "/*.m", |
||||
objc_client_path + "/private/*.m", |
||||
]), |
||||
includes = [objc_path], |
||||
bundles = [":gRPCCertificates"], |
||||
deps = [ |
||||
":grpc_objc", |
||||
":rx_library", |
||||
], |
||||
) |
||||
|
||||
objc_bundle_library( |
||||
# The choice of name is signicant here, since it determines the bundle name. |
||||
name = "gRPCCertificates", |
||||
resources = ["etc/roots.pem"], |
||||
) |
||||
|
||||
proto_objc_rpc_path = objc_path + "/ProtoRPC" |
||||
|
||||
objc_library( |
||||
name = "proto_objc_rpc", |
||||
hdrs = glob([ |
||||
proto_objc_rpc_path + "/*.h", |
||||
]), |
||||
srcs = glob([ |
||||
proto_objc_rpc_path + "/*.m", |
||||
]), |
||||
includes = [objc_path], |
||||
deps = [ |
||||
":grpc_client", |
||||
":rx_library", |
||||
"//external:protobuf_objc", |
||||
], |
||||
) |
@ -0,0 +1,32 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load(":generate_tests.bzl", "grpc_bad_client_tests") |
||||
|
||||
grpc_bad_client_tests() |
@ -0,0 +1,68 @@ |
||||
#!/usr/bin/env python2.7 |
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
|
||||
"""Generates the appropriate build.json data for all the bad_client tests.""" |
||||
|
||||
|
||||
def test_options(): |
||||
return struct() |
||||
|
||||
|
||||
# maps test names to options |
||||
BAD_CLIENT_TESTS = { |
||||
'badreq': test_options(), |
||||
'connection_prefix': test_options(), |
||||
'headers': test_options(), |
||||
'initial_settings_frame': test_options(), |
||||
'head_of_line_blocking': test_options(), |
||||
'large_metadata': test_options(), |
||||
'server_registered_method': test_options(), |
||||
'simple_request': test_options(), |
||||
'window_overflow': test_options(), |
||||
'unknown_frame': test_options(), |
||||
} |
||||
|
||||
def grpc_bad_client_tests(): |
||||
native.cc_library( |
||||
name = 'bad_client_test', |
||||
srcs = ['bad_client.c'], |
||||
hdrs = ['bad_client.h'], |
||||
copts = ['-std=c99'], |
||||
deps = ['//test/core/util:grpc_test_util', '//:grpc', '//:gpr', '//test/core/end2end:cq_verifier'] |
||||
) |
||||
for t, topt in BAD_CLIENT_TESTS.items(): |
||||
native.cc_test( |
||||
name = '%s_bad_client_test' % t, |
||||
srcs = ['tests/%s.c' % t], |
||||
deps = [':bad_client_test'], |
||||
copts = ['-std=c99'], |
||||
) |
||||
|
@ -0,0 +1,32 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load(":generate_tests.bzl", "grpc_bad_ssl_tests") |
||||
|
||||
grpc_bad_ssl_tests() |
@ -0,0 +1,52 @@ |
||||
#!/usr/bin/env python2.7 |
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
|
||||
def test_options(): |
||||
return struct() |
||||
|
||||
|
||||
# maps test names to options |
||||
BAD_SSL_TESTS = ['cert', 'alpn'] |
||||
|
||||
def grpc_bad_ssl_tests(): |
||||
native.cc_library( |
||||
name = 'bad_ssl_test_server', |
||||
srcs = ['server_common.c'], |
||||
hdrs = ['server_common.h'], |
||||
deps = ['//test/core/util:grpc_test_util', '//:grpc', '//test/core/end2end:ssl_test_data'] |
||||
) |
||||
for t in BAD_SSL_TESTS: |
||||
native.cc_test( |
||||
name = 'bad_ssl_%s_server' % t, |
||||
srcs = ['servers/%s.c' % t], |
||||
deps = [':bad_ssl_test_server'], |
||||
) |
||||
|
@ -0,0 +1,78 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load(":generate_tests.bzl", "grpc_end2end_tests") |
||||
|
||||
cc_library( |
||||
name = 'cq_verifier', |
||||
srcs = ['cq_verifier.c'], |
||||
hdrs = ['cq_verifier.h'], |
||||
deps = ['//:gpr', '//:grpc', '//test/core/util:grpc_test_util'], |
||||
copts = ['-std=c99'], |
||||
visibility = ["//test:__subpackages__"], |
||||
) |
||||
|
||||
cc_library( |
||||
name = 'ssl_test_data', |
||||
visibility = ["//test:__subpackages__"], |
||||
hdrs = ['data/ssl_test_data.h'], |
||||
copts = ['-std=c99'], |
||||
srcs = [ |
||||
"data/client_certs.c", |
||||
"data/server1_cert.c", |
||||
"data/server1_key.c", |
||||
"data/test_root_cert.c", |
||||
] |
||||
) |
||||
|
||||
cc_library( |
||||
name = 'fake_resolver', |
||||
hdrs = ['fake_resolver.h'], |
||||
srcs = ['fake_resolver.c'], |
||||
copts = ['-std=c99'], |
||||
deps = ['//:gpr', '//:grpc', '//test/core/util:grpc_test_util'] |
||||
) |
||||
|
||||
cc_library( |
||||
name = 'http_proxy', |
||||
hdrs = ['fixtures/http_proxy.h'], |
||||
srcs = ['fixtures/http_proxy.c'], |
||||
copts = ['-std=c99'], |
||||
deps = ['//:gpr', '//:grpc', '//test/core/util:grpc_test_util'] |
||||
) |
||||
|
||||
cc_library( |
||||
name = 'proxy', |
||||
hdrs = ['fixtures/proxy.h'], |
||||
srcs = ['fixtures/proxy.c'], |
||||
copts = ['-std=c99'], |
||||
deps = ['//:gpr', '//:grpc', '//test/core/util:grpc_test_util'] |
||||
) |
||||
|
||||
grpc_end2end_tests() |
@ -0,0 +1,55 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
grpc_fuzzer( |
||||
name = "api_fuzzer", |
||||
srcs = ["api_fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "api_fuzzer_corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
||||
grpc_fuzzer( |
||||
name = "client_fuzzer", |
||||
srcs = ["client_fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "client_fuzzer_corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
||||
grpc_fuzzer( |
||||
name = "server_fuzzer", |
||||
srcs = ["server_fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "server_fuzzer_corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
@ -0,0 +1,189 @@ |
||||
#!/usr/bin/env python2.7 |
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
|
||||
"""Generates the appropriate build.json data for all the end2end tests.""" |
||||
|
||||
|
||||
def fixture_options(fullstack=True, includes_proxy=False, dns_resolver=True, |
||||
secure=True, tracing=False, |
||||
platforms=['windows', 'linux', 'mac', 'posix']): |
||||
return struct( |
||||
fullstack=fullstack, |
||||
includes_proxy=includes_proxy, |
||||
dns_resolver=dns_resolver, |
||||
secure=secure, |
||||
tracing=tracing, |
||||
#platforms=platforms |
||||
) |
||||
|
||||
|
||||
# maps fixture name to whether it requires the security library |
||||
END2END_FIXTURES = { |
||||
'h2_compress': fixture_options(), |
||||
'h2_census': fixture_options(), |
||||
'h2_load_reporting': fixture_options(), |
||||
'h2_fakesec': fixture_options(), |
||||
'h2_fake_resolver': fixture_options(), |
||||
'h2_fd': fixture_options(dns_resolver=False, fullstack=False, |
||||
platforms=['linux', 'mac', 'posix']), |
||||
'h2_full': fixture_options(), |
||||
'h2_full+pipe': fixture_options(platforms=['linux']), |
||||
'h2_full+trace': fixture_options(tracing=True), |
||||
'h2_http_proxy': fixture_options(), |
||||
'h2_oauth2': fixture_options(), |
||||
'h2_proxy': fixture_options(includes_proxy=True), |
||||
'h2_sockpair_1byte': fixture_options(fullstack=False, dns_resolver=False), |
||||
'h2_sockpair': fixture_options(fullstack=False, dns_resolver=False), |
||||
'h2_sockpair+trace': fixture_options(fullstack=False, dns_resolver=False, |
||||
tracing=True), |
||||
'h2_ssl': fixture_options(secure=True), |
||||
'h2_ssl_cert': fixture_options(secure=True), |
||||
'h2_ssl_proxy': fixture_options(secure=True), |
||||
'h2_uds': fixture_options(dns_resolver=False, |
||||
platforms=['linux', 'mac', 'posix']), |
||||
} |
||||
|
||||
|
||||
def test_options(needs_fullstack=False, needs_dns=False, proxyable=True, |
||||
secure=False, traceable=False): |
||||
return struct( |
||||
needs_fullstack=needs_fullstack, |
||||
needs_dns=needs_dns, |
||||
proxyable=proxyable, |
||||
secure=secure, |
||||
traceable=traceable |
||||
) |
||||
|
||||
|
||||
# maps test names to options |
||||
END2END_TESTS = { |
||||
'bad_hostname': test_options(), |
||||
'binary_metadata': test_options(), |
||||
'call_creds': test_options(secure=True), |
||||
'cancel_after_accept': test_options(), |
||||
'cancel_after_client_done': test_options(), |
||||
'cancel_after_invoke': test_options(), |
||||
'cancel_before_invoke': test_options(), |
||||
'cancel_in_a_vacuum': test_options(), |
||||
'cancel_with_status': test_options(), |
||||
'compressed_payload': test_options(), |
||||
'connectivity': test_options(needs_fullstack=True, proxyable=False), |
||||
'default_host': test_options(needs_fullstack=True, needs_dns=True), |
||||
'disappearing_server': test_options(needs_fullstack=True), |
||||
'empty_batch': test_options(), |
||||
'filter_causes_close': test_options(), |
||||
'filter_call_init_fails': test_options(), |
||||
'graceful_server_shutdown': test_options(), |
||||
'hpack_size': test_options(proxyable=False, traceable=False), |
||||
'high_initial_seqno': test_options(), |
||||
'idempotent_request': test_options(), |
||||
'invoke_large_request': test_options(), |
||||
'large_metadata': test_options(), |
||||
'max_concurrent_streams': test_options(proxyable=False), |
||||
'max_message_length': test_options(), |
||||
'negative_deadline': test_options(), |
||||
'network_status_change': test_options(), |
||||
'no_logging': test_options(traceable=False), |
||||
'no_op': test_options(), |
||||
'payload': test_options(), |
||||
'load_reporting_hook': test_options(), |
||||
'ping_pong_streaming': test_options(), |
||||
'ping': test_options(proxyable=False), |
||||
'registered_call': test_options(), |
||||
'request_with_flags': test_options(proxyable=False), |
||||
'request_with_payload': test_options(), |
||||
'server_finishes_request': test_options(), |
||||
'shutdown_finishes_calls': test_options(), |
||||
'shutdown_finishes_tags': test_options(), |
||||
'simple_cacheable_request': test_options(), |
||||
'simple_delayed_request': test_options(needs_fullstack=True), |
||||
'simple_metadata': test_options(), |
||||
'simple_request': test_options(), |
||||
'streaming_error_response': test_options(), |
||||
'trailing_metadata': test_options(), |
||||
} |
||||
|
||||
|
||||
def compatible(fopt, topt): |
||||
if topt.needs_fullstack: |
||||
if not fopt.fullstack: |
||||
return False |
||||
if topt.needs_dns: |
||||
if not fopt.dns_resolver: |
||||
return False |
||||
if not topt.proxyable: |
||||
if fopt.includes_proxy: |
||||
return False |
||||
if not topt.traceable: |
||||
if fopt.tracing: |
||||
return False |
||||
return True |
||||
|
||||
|
||||
def grpc_end2end_tests(): |
||||
native.cc_library( |
||||
name = 'end2end_tests', |
||||
srcs = ['end2end_tests.c'] + [ |
||||
'tests/%s.c' % t |
||||
for t in sorted(END2END_TESTS.keys())], |
||||
hdrs = [ |
||||
'tests/cancel_test_helpers.h', |
||||
'end2end_tests.h' |
||||
], |
||||
copts = ['-std=c99'], |
||||
deps = [ |
||||
':cq_verifier', |
||||
':ssl_test_data', |
||||
':fake_resolver', |
||||
':http_proxy', |
||||
':proxy', |
||||
'//test/core/util:grpc_test_util', |
||||
'//:grpc', |
||||
'//test/core/util:gpr_test_util', |
||||
'//:gpr', |
||||
] |
||||
) |
||||
|
||||
for f, fopt in END2END_FIXTURES.items(): |
||||
native.cc_library( |
||||
name = '%s_test_lib' % f, |
||||
srcs = ['fixtures/%s.c' % f], |
||||
copts = ['-std=c99'], |
||||
deps = [':end2end_tests'] |
||||
) |
||||
for t, topt in END2END_TESTS.items(): |
||||
#print(compatible(fopt, topt), f, t, fopt, topt) |
||||
if not compatible(fopt, topt): continue |
||||
native.cc_test( |
||||
name = '%s_test@%s' % (f, t), |
||||
args = [t], |
||||
deps = [':%s_test_lib' % f], |
||||
) |
@ -0,0 +1,47 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
grpc_fuzzer( |
||||
name = "response_fuzzer", |
||||
srcs = ["response_fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "response_corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
||||
grpc_fuzzer( |
||||
name = "request_fuzzer", |
||||
srcs = ["request_fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "request_corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
@ -0,0 +1,39 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
grpc_fuzzer( |
||||
name = "json_fuzzer", |
||||
srcs = ["fuzzer.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "corpus", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
@ -0,0 +1,47 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
grpc_fuzzer( |
||||
name = "fuzzer_response", |
||||
srcs = ["fuzzer_response.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "corpus_response", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
||||
grpc_fuzzer( |
||||
name = "fuzzer_serverlist", |
||||
srcs = ["fuzzer_serverlist.c"], |
||||
deps = ["//:gpr", "//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "corpus_serverlist", |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
@ -0,0 +1,156 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
cc_test( |
||||
name = "alloc_test", |
||||
srcs = ["alloc_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "avl_test", |
||||
srcs = ["avl_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "backoff_test", |
||||
srcs = ["backoff_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "cmdline_test", |
||||
srcs = ["cmdline_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "cpu_test", |
||||
srcs = ["cpu_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "env_test", |
||||
srcs = ["env_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "histogram_test", |
||||
srcs = ["histogram_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "host_port_test", |
||||
srcs = ["host_port_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "log_test", |
||||
srcs = ["log_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "mpscq_test", |
||||
srcs = ["mpscq_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "murmur_hash_test", |
||||
srcs = ["murmur_hash_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "stack_lockfree_test", |
||||
srcs = ["stack_lockfree_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "string_test", |
||||
srcs = ["string_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "sync_test", |
||||
srcs = ["sync_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "thd_test", |
||||
srcs = ["thd_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "time_test", |
||||
srcs = ["time_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "tls_test", |
||||
srcs = ["tls_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
||||
|
||||
cc_test( |
||||
name = "useful_test", |
||||
srcs = ["useful_test.c"], |
||||
deps = ["//:gpr", "//test/core/util:gpr_test_util"], |
||||
copts = ['-std=c99'] |
||||
) |
@ -0,0 +1,38 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") |
||||
|
||||
grpc_fuzzer( |
||||
name = "hpack_parser_fuzzer", |
||||
srcs = ["hpack_parser_fuzzer_test.c"], |
||||
deps = ["//:grpc", "//test/core/util:grpc_test_util"], |
||||
corpus = "hpack_parser_corpus" |
||||
) |
||||
|
@ -0,0 +1,52 @@ |
||||
|
||||
|
||||
cc_library( |
||||
name = "gpr_test_util", |
||||
srcs = [ |
||||
"test_config.c", |
||||
"memory_counters.c", |
||||
], |
||||
hdrs = [ |
||||
"test_config.h", |
||||
"memory_counters.h", |
||||
], |
||||
deps = ["//:gpr"], |
||||
visibility = ["//:__subpackages__"], |
||||
) |
||||
|
||||
cc_library( |
||||
name = "grpc_test_util", |
||||
srcs = [ |
||||
"grpc_profiler.c", |
||||
"mock_endpoint.c", |
||||
"parse_hexstring.c", |
||||
"passthru_endpoint.c", |
||||
"port_posix.c", |
||||
"port_server_client.c", |
||||
"port_windows.c", |
||||
"reconnect_server.c", |
||||
"slice_splitter.c", |
||||
"test_tcp_server.c", |
||||
], |
||||
hdrs = [ |
||||
"grpc_profiler.h", |
||||
"mock_endpoint.h", |
||||
"parse_hexstring.h", |
||||
"passthru_endpoint.h", |
||||
"port.h", |
||||
"port_server_client.h", |
||||
"reconnect_server.h", |
||||
"slice_splitter.h", |
||||
"test_tcp_server.h", |
||||
], |
||||
deps = [":gpr_test_util", "//:grpc"], |
||||
visibility = ["//test:__subpackages__"], |
||||
copts = ["-std=c99"], |
||||
) |
||||
|
||||
cc_library( |
||||
name = "one_corpus_entry_fuzzer", |
||||
srcs = ["one_corpus_entry_fuzzer.c"], |
||||
deps = [":gpr_test_util", "//:grpc"], |
||||
visibility = ["//test:__subpackages__"], |
||||
) |
@ -0,0 +1,43 @@ |
||||
# Copyright 2016, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs): |
||||
native.cc_library( |
||||
name = "%s/one_entry" % name, |
||||
srcs = srcs, |
||||
deps = deps + ["//test/core/util:one_corpus_entry_fuzzer"], |
||||
**kwargs |
||||
) |
||||
for entry in native.glob(['%s/*' % corpus]): |
||||
native.cc_test( |
||||
name = '%s/one_entry/%s' % (name, entry), |
||||
deps = [':%s/one_entry' % name], |
||||
args = ['$(location %s)' % entry], |
||||
data = [entry], |
||||
) |
@ -0,0 +1 @@ |
||||
Subproject commit 886e7d75368e3f4fab3f4d0d3584e4abfc557755 |
@ -0,0 +1,36 @@ |
||||
cc_library( |
||||
name = "z", |
||||
srcs = [ |
||||
"adler32.c", |
||||
"compress.c", |
||||
"crc32.c", |
||||
"deflate.c", |
||||
"infback.c", |
||||
"inffast.c", |
||||
"inflate.c", |
||||
"inftrees.c", |
||||
"trees.c", |
||||
"uncompr.c", |
||||
"zutil.c", |
||||
], |
||||
hdrs = [ |
||||
"crc32.h", |
||||
"deflate.h", |
||||
"gzguts.h", |
||||
"inffast.h", |
||||
"inffixed.h", |
||||
"inflate.h", |
||||
"inftrees.h", |
||||
"trees.h", |
||||
"zconf.h", |
||||
"zlib.h", |
||||
"zutil.h", |
||||
], |
||||
includes = [ |
||||
"include", |
||||
], |
||||
linkstatic = 1, |
||||
visibility = [ |
||||
"//visibility:public", |
||||
], |
||||
) |
Loading…
Reference in new issue