Addition of flag to enable end2end fuzzers

PiperOrigin-RevId: 640866680
pull/36834/head
Vishwanath Sastry 6 months ago committed by Copybara-Service
parent 8c6be41434
commit 60301d40e0
  1. 4
      test/core/end2end/fuzzers/BUILD
  2. 18
      test/core/test_util/grpc_fuzzer.bzl

@ -51,6 +51,7 @@ grpc_proto_fuzzer(
name = "api_fuzzer",
srcs = ["api_fuzzer.cc"],
corpus = "api_fuzzer_corpus",
end2end_fuzzer = True,
external_deps = ["absl/log:check"],
language = "C++",
proto = None,
@ -108,6 +109,7 @@ grpc_proto_fuzzer(
name = "client_fuzzer",
srcs = ["client_fuzzer.cc"],
corpus = "client_fuzzer_corpus",
end2end_fuzzer = True,
external_deps = ["absl/log:check"],
language = "C++",
proto = None,
@ -151,6 +153,7 @@ grpc_proto_fuzzer(
name = "server_fuzzer_chttp2",
srcs = ["server_fuzzer_chttp2.cc"],
corpus = "server_fuzzer_chttp2_corpus",
end2end_fuzzer = True,
language = "C++",
proto = None,
tags = [
@ -169,6 +172,7 @@ grpc_proto_fuzzer(
name = "server_fuzzer_chaotic_good",
srcs = ["server_fuzzer_chaotic_good.cc"],
corpus = "server_fuzzer_chaotic_good_corpus",
end2end_fuzzer = True,
external_deps = ["absl/log:check"],
language = "C++",
proto = None,

@ -54,7 +54,20 @@ def grpc_fuzzer(name, corpus, owner = "grpc", srcs = [], tags = [], external_dep
**kwargs
)
def grpc_proto_fuzzer(name, corpus, proto, owner = "grpc", proto_deps = [], external_deps = [], srcs = [], tags = [], deps = [], data = [], size = "large", **kwargs):
def grpc_proto_fuzzer(
name,
corpus,
proto,
owner = "grpc", # @unused
proto_deps = [],
external_deps = [],
srcs = [],
tags = [],
deps = [],
end2end_fuzzer = False, # @unused
data = [],
size = "large",
**kwargs):
"""Instantiates a protobuf mutator fuzzer test.
Args:
@ -72,8 +85,11 @@ def grpc_proto_fuzzer(name, corpus, proto, owner = "grpc", proto_deps = [], exte
size: The size of the test.
tags: The tags for the test.
owner: The owning team of the test (for auto-bug-filing).
end2end_fuzzer: Flag to enable end2end fuzzers.
This is currently False and ignored
**kwargs: Other arguments to supply to the test.
"""
CORPUS_DIR = native.package_name() + "/" + corpus
deps = deps + ["@com_google_libprotobuf_mutator//:libprotobuf_mutator"]

Loading…
Cancel
Save