Browse Source
* Run all `*.wast` tests in fuzzing Currently we have a `spectest` fuzzer which uses fuzz input to generate an arbitrary configuration for Wasmtime and then executes the spec test. This ensures that no matter the configuration Wasmtime can pass spec tests. This commit expands this testing to include all `*.wast` tests we have in this repository. While we don't have a ton we still have some significant ones like in #8118 which will only reproduce when turning knobs on CPU features. * Fix CLI build * Fix wast testingpull/8124/head
Alex Crichton
8 months ago
committed by
GitHub
13 changed files with 122 additions and 60 deletions
@ -1,9 +0,0 @@ |
|||
#![no_main] |
|||
|
|||
use libfuzzer_sys::fuzz_target; |
|||
use wasmtime_fuzzing::generators::{Config, SpecTest}; |
|||
|
|||
fuzz_target!(|pair: (Config, SpecTest)| { |
|||
let (config, test) = pair; |
|||
wasmtime_fuzzing::oracles::spectest(config, test); |
|||
}); |
@ -0,0 +1,9 @@ |
|||
#![no_main] |
|||
|
|||
use libfuzzer_sys::fuzz_target; |
|||
use wasmtime_fuzzing::generators::{Config, WastTest}; |
|||
|
|||
fuzz_target!(|pair: (Config, WastTest)| { |
|||
let (config, test) = pair; |
|||
wasmtime_fuzzing::oracles::wast_test(config, test); |
|||
}); |
Loading…
Reference in new issue