bazelbuild / rules_fuzzing

Bazel Starlark extensions for defining fuzz tests in Bazel projects
Apache License 2.0
81 stars 19 forks source link

Supplying arguments to jazzer #203

Open r00tdaemon opened 2 years ago

r00tdaemon commented 2 years ago

How can we supply fuzzer args like -use_value_profile=1 to java_fuzz_test?

fmeum commented 2 years ago

The engine-agnostic launcher doesn't support passing through fuzzer-specific flags atm, but in order to run e.g. the target //examples/java:FuzzTest, you could try:

bazel run //examples/java:FuzzTest_bin -- -use_value_profile=1

Note the _bin which exposes the "raw" fuzz target rather.