WIP fuzz testing. Not super useful yet.
cargo install cargo-fuzz
Before first use:
cd fuzz
cargo run --bin=build_corpusTo fuzz stuff:
RUSTFLAGS='-C codegen-units=1' cargo +nightly fuzz run --release fuzz_sqllogictest -- -dict=fuzz/sql.dictFailing tests are added to ./fuzz/artifacts/fuzz_sqllogictest and can be rerun
with cargo test -p sqllogictest.
TODO(jamii): figure out why sqllogictest::test::fuzz_artifacts can't be run by name.
Before first use:
mkdir -p fuzz/corpus/fuzz_testdrive
cp -R test/* fuzz/corpus/fuzz_testdriveTo fuzz stuff:
RUSTFLAGS='-C codegen-units=1' cargo +nightly fuzz run --release fuzz_testdriveFailing tests are added to ./fuzz/artifacts/fuzz_testdrive and can be rerun
with cargo run --bin testdrive ./fuzz/artificats/fuzz_testdrive/<FAILING_TEST>.