e2e fuzzers

pull/9240/head
Craig Tiller 8 years ago
parent 31a1bbd4bc
commit d3e645f07d
  1. 9
      test/core/support/BUILD
  2. 1
      test/core/util/BUILD
  3. 5
      test/core/util/grpc_fuzzer.bzl

@ -182,3 +182,12 @@ grpc_fuzzer(
deps = ["//:gpr"],
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(
],
deps = [":gpr_test_util", "//:grpc"],
visibility = ["//test:__subpackages__"],
copts = ["-std=c99"],
)
cc_library(

@ -27,16 +27,17 @@
# (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 = []):
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]
data = [entry],
)

Loading…
Cancel
Save