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