aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFabian Meumertzheim <fabian@meumertzhe.im>2021-10-13 12:06:15 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-10-19 11:07:51 +0200
commit8ffc98fe44236a542127395c60253e980f8970a6 (patch)
tree80b45a6753f14b56931072c9cb27ffa5468f712a /examples
parent7f7f6b1d40fa80e9d32da27a3366735e2c38ca38 (diff)
downloadjazzer-api-8ffc98fe44236a542127395c60253e980f8970a6.tar.gz
Implement --autofuzz option in the driver
Diffstat (limited to 'examples')
-rw-r--r--examples/BUILD.bazel12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel
index 3e1c1f33..0d5f6bc4 100644
--- a/examples/BUILD.bazel
+++ b/examples/BUILD.bazel
@@ -4,6 +4,18 @@ load("//bazel:compat.bzl", "SKIP_ON_MACOS", "SKIP_ON_WINDOWS")
load("//bazel:fuzz_target.bzl", "java_fuzz_target_test")
java_fuzz_target_test(
+ name = "Autofuzz",
+ fuzzer_args = [
+ "--autofuzz=com.google.json.JsonSanitizer::sanitize",
+ # Exit after the first finding for testing purposes.
+ "--keep_going=1",
+ ],
+ runtime_deps = [
+ "@maven//:com_mikesamuel_json_sanitizer",
+ ],
+)
+
+java_fuzz_target_test(
name = "ExampleFuzzer",
srcs = [
"src/main/java/com/example/ExampleFuzzer.java",