diff --git a/BUILD b/BUILD index 85adfb3..bce358b 100644 --- a/BUILD +++ b/BUILD @@ -10,41 +10,6 @@ java_test_suite( name = "junit-jupiter-starter-bazel-tests", size = "small", srcs = glob(["src/test/java/**/*.java"]), - # Used when fuzzing with `bazel run`. - data = [ - ":generated_corpus_base", - # Provide the inputs directory when fuzzing---all findings will be written here. - ":inputs_base", - ], - env = { - # Also use the generated corpus directory when regression testing. - "JAZZER_COVERAGE": "1", - # Continue fuzzing until 10 unique (deduplicated) crashes are found. - # Same as "-Djazzer.keep_going=10" jvm_flag below - # "JAZZER_KEEP_GOING": "10", - }, - jvm_flags = [ - "-Djazzer.keep_going=10", # Continue fuzzing until 10 unique (deduplicated) crashes are found. - # "-Djazzer.internal.basedir=$${PWD}", # In case we want to change Jazzer's basedir - - # Arguments to libFuzzer (active only in fuzzing mode). Have to be numbered starting from 0. - "-Djazzer.internal.arg.0=ignored", # Placeholder for the target class name. Must be present. Value is ignored. - "-Djazzer.internal.arg.1=-print_final_stats=1", # Prints libFuzzer stats when the process is terminated. - # "-Djazzer.internal.arg.2=-help=1", # Prints all arguments supported by libFuzzer and exits. - - # Disable regex sanitizers during fuzzing and regression. - "-Djazzer.disabled_hooks=com.code_intelligence.jazzer.sanitizers.RegexRoadblocks:com.code_intelligence.jazzer.sanitizers.RegexInjection", - ], - # Resources to be bundled into the test Jar. Only used when regression testing with Jazzer. - resources = glob( - [ - # Bundle the input directories (crash files) and other resources into the Jar when regression testing. - "src/test/resources/**", - # Bundle the generated corpus directory into the Jar when regression testing. - ".cifuzz-corpus/**", - ], - allow_empty = True, - ), runner = "junit5", test_suffixes = ["Tests.java"], runtime_deps = JUNIT5_DEPS, @@ -55,15 +20,3 @@ java_test_suite( artifact("com.code-intelligence:jazzer-junit"), ], ) - -filegroup( - name = "generated_corpus_base", - srcs = [".cifuzz-corpus"], - visibility = ["//visibility:public"], -) - -filegroup( - name = "inputs_base", - srcs = ["src/test/resources"], - visibility = ["//visibility:public"], -)