sapling/eden/scm/lib/dag/fuzz
Jun Wu 89570e223a dag: use non-master group in fuzz test
Summary:
Currently the fuzz test only uses the master group. Let it exercise non-master
group too.

Reviewed By: DurhamG

Differential Revision: D23214388

fbshipit-source-id: 7108a1055fbdda2b012f93c5948fb83ef3b9a96f
2020-08-26 15:32:24 -07:00
..
fuzz_targets dag: use non-master group in fuzz test 2020-08-26 15:32:24 -07:00
.gitignore dag: add a fuzz test about gca algorithm 2020-01-22 19:30:50 -08:00
Cargo.toml dag: add fuzz tests on the octopus DAG 2020-01-23 17:58:51 -08:00
README dag: fix fuzz tests 2020-08-21 13:00:45 -07:00

Steps to run the fuzz tests with OSS toolchain:

1. Install rustup.
2. `rustup install nightly` to install nightly toolchain.
3. From `eden/scm`, run `rustup override set nightly && make local` to use the nightly toolchain.
4. From `dag` (parent directory of `fuzz`), run `cargo fuzz run $TEST_NAME`. For example, `$TEST_NAME` can be `range_medium`.

`cargo fuzz` supports some options. For example:

    cargo fuzz run --release -j 16 gca -- -max_len=20

will build in release mode, fork into 16 processes, and generate at most 20-byte input.

See also https://rust-fuzz.github.io/book/cargo-fuzz.html.