Skip to content

Commit

Permalink
Run fuzz in release mode, with workaround for rust-lang/rust#53945
Browse files Browse the repository at this point in the history
  • Loading branch information
jamii committed Apr 25, 2019
1 parent 53b32c3 commit dbebeb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Before first use:
cd materialize
cargo install cargo-fuzz
cp -ar sqllogictest/test/ fuzz/corpus/fuzz_sqllogictest/
cargo +nightly fuzz cmin fuzz_sqllogictest
RUSTFLAGS='-C codegen-units=1' cargo +nightly fuzz cmin --release fuzz_sqllogictest
```

To fuzz stuff:

``` sh
cd materialize
cargo +nightly fuzz run fuzz_sqllogictest -- -workers=4
RUSTFLAGS='-C codegen-units=1' cargo +nightly fuzz run --release fuzz_sqllogictest -- -jobs=4
```

Failing tests are added to `./fuzz/artifacts/fuzz_sqllogictest` and can be rerun with `cargo test -p sqllogictest`.
Expand All @@ -36,7 +36,7 @@ To fuzz stuff:

``` sh
cd materialize
cargo +nightly fuzz run fuzz_testdriver
RUSTFLAGS='-C codegen-units=1' cargo +nightly fuzz --release run fuzz_testdriver
```

Failing tests are added to `./fuzz/artifacts/fuzz_testdrive` and can be rerun with `cargo run --bin testdrive ./fuzz/artificats/fuzz_testdrive/<FAILING_TEST>`.

0 comments on commit dbebeb7

Please sign in to comment.