Skip to content

Commit 2ff71cd

Browse files
authored
Update the upstream wasm spec test suite (#13043)
1 parent e920961 commit 2ff71cd

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

crates/test-util/src/wast.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ fn add_tests(tests: &mut Vec<WastTest>, path: &Path, config: &FindConfig) -> Res
9393
continue;
9494
}
9595

96+
// These tests use `*.wast` directives not yet supported by Wasmtime, so
97+
// wait for a `wasm-tools` update to ungate these.
98+
if path.ends_with("spec_testsuite/custom/custom_annot.wast")
99+
|| path.ends_with("spec_testsuite/custom/branch_hint.wast")
100+
|| path.ends_with("spec_testsuite/custom/name_annot.wast")
101+
{
102+
continue;
103+
}
104+
96105
let contents =
97106
fs::read_to_string(&path).with_context(|| format!("failed to read test: {path:?}"))?;
98107
let config = match config {
@@ -125,6 +134,7 @@ fn spec_test_config(test: &Path) -> TestConfig {
125134
ret.custom_page_sizes = Some(true);
126135
ret.multi_memory = Some(true);
127136
ret.memory64 = Some(true);
137+
ret.reference_types = Some(true);
128138

129139
// See commentary below in `wasm-3.0` case for why these "hog
130140
// memory"

0 commit comments

Comments
 (0)