cargo fuzz integration (#306)

* added wip translate_module fuzzer

* use local binaryen-rs fork (with shim) for fuzzing

* minor doc cleanup

* check fuzzer integration via CI

* switch back to upstream binaryen-rs; add forgotten integration test directive
This commit is contained in:
Jonathan Foote
2018-05-14 15:31:27 -04:00
committed by Dan Gohman
parent 07c65bab11
commit 1924039713
5 changed files with 68 additions and 0 deletions

29
cranelift/fuzz/Cargo.toml Normal file
View File

@@ -0,0 +1,29 @@
[package]
name = "cton-wasm-fuzz"
version = "0.0.1"
authors = ["foote@fastly.com"]
publish = false
[package.metadata]
cargo-fuzz = true
[dependencies.cargo-fuzz]
version = "*"
[dependencies.binaryen]
git = "https://github.com/pepyakin/binaryen-rs.git"
version = "*"
[dependencies.libfuzzer-sys]
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
[dependencies.cretonne-wasm]
path = "../lib/wasm"
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]]
name = "fuzz_translate_module"
path = "fuzz_translate_module.rs"