Skip to content

Commit

Permalink
Re-enable component model *.wast tests (bytecodealliance#4577)
Browse files Browse the repository at this point in the history
* Re-enable component model `*.wast` tests

These accidentally stopped running as part of bytecodealliance#4556 on CI since I forgot
one more location to touch a feature gate.

* Enable logging in component tests

This is a small convenience to get log messages during testing for
components by default.
  • Loading branch information
alexcrichton authored Aug 2, 2022
1 parent 43125aa commit ee5b192
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ wat = "1.0.47"
once_cell = "1.9.0"
rayon = "1.5.0"
component-macro-test = { path = "crates/misc/component-macro-test" }
wasmtime-wast = { path = "crates/wast", version = "=0.40.0", features = ['component-model'] }

[target.'cfg(windows)'.dev-dependencies]
windows-sys = { version = "0.36.0", features = ["Win32_System_Memory"] }
Expand Down
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ fn main() -> anyhow::Result<()> {
test_directory_module(out, "tests/misc_testsuite/simd", strategy)?;
test_directory_module(out, "tests/misc_testsuite/threads", strategy)?;
test_directory_module(out, "tests/misc_testsuite/memory64", strategy)?;
if cfg!(feature = "component-model") {
test_directory_module(out, "tests/misc_testsuite/component-model", strategy)?;
}
test_directory_module(out, "tests/misc_testsuite/component-model", strategy)?;
Ok(())
})?;

Expand Down
2 changes: 2 additions & 0 deletions tests/all/component_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ const REALLOC_AND_FREE: &str = r#"
"#;

fn engine() -> Engine {
drop(env_logger::try_init());

let mut config = Config::new();
config.wasm_component_model(true);

Expand Down

0 comments on commit ee5b192

Please sign in to comment.