Skip to content
Snippets Groups Projects
Commit d3e645f0 authored by Craig Tiller's avatar Craig Tiller
Browse files

e2e fuzzers

parent 31a1bbd4
Branches
Tags
No related merge requests found
...@@ -182,3 +182,12 @@ grpc_fuzzer( ...@@ -182,3 +182,12 @@ grpc_fuzzer(
deps = ["//:gpr"], deps = ["//:gpr"],
corpus = "percent_encode_corpus" corpus = "percent_encode_corpus"
) )
grpc_fuzzer(
name = "percent_decode_fuzzer",
srcs = ["percent_decode_fuzzer.c"],
deps = ["//:gpr"],
corpus = "percent_decode_corpus"
)
...@@ -41,6 +41,7 @@ cc_library( ...@@ -41,6 +41,7 @@ cc_library(
], ],
deps = [":gpr_test_util", "//:grpc"], deps = [":gpr_test_util", "//:grpc"],
visibility = ["//test:__subpackages__"], visibility = ["//test:__subpackages__"],
copts = ["-std=c99"],
) )
cc_library( cc_library(
......
...@@ -27,16 +27,17 @@ ...@@ -27,16 +27,17 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
def grpc_fuzzer(name, corpus, srcs = [], deps = []): def grpc_fuzzer(name, corpus, srcs = [], deps = [], **kwargs):
native.cc_library( native.cc_library(
name = "%s/one_entry" % name, name = "%s/one_entry" % name,
srcs = srcs, srcs = srcs,
deps = deps + ["//test/core/util:one_corpus_entry_fuzzer"], deps = deps + ["//test/core/util:one_corpus_entry_fuzzer"],
**kwargs
) )
for entry in native.glob(['%s/*' % corpus]): for entry in native.glob(['%s/*' % corpus]):
native.cc_test( native.cc_test(
name = '%s/one_entry/%s' % (name, entry), name = '%s/one_entry/%s' % (name, entry),
deps = [':%s/one_entry' % name], deps = [':%s/one_entry' % name],
args = ['$(location %s)' % entry], args = ['$(location %s)' % entry],
data = [entry] data = [entry],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment