Path: blob/main/cranelift/tests/logged-filetests.rs
1690 views
/// This test runs the filetests with logging enabled.1///2/// In order to avoid issues like [#10529] and similar, we re-run the filetests3/// with logging enabled. This pretty-prints instructions prior to register4/// allocation, when they may not have real HW registers assigned. Ideally this5/// test is temporary while we work out details in the `cranelift-assembler-x64`6/// crate (TODO).7///8/// [#10529]: https://github.com/bytecodealliance/wasmtime/issues/105299#[test]10fn logged_filetests() -> anyhow::Result<()> {11env_logger::Builder::new()12.filter_module(13"cranelift_codegen::machinst::lower",14log::LevelFilter::Trace,15)16.is_test(true)17.init();18cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()])?;19Ok(())20}212223