A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Update the upstream wasm spec test suite (#13043)
Alex Crichton2ff71cd511c1
diff --git a/crates/test-util/src/wast.rs b/crates/test-util/src/wast.rsindex ee046a824f..e7116d3880 100644--- a/crates/test-util/src/wast.rs+++ b/crates/test-util/src/wast.rs@@ -93,6 +93,15 @@ fn add_tests(tests: &mut Vec<WastTest>, path: &Path, config: &FindConfig) -> Rescontinue;}+ // These tests use `*.wast` directives not yet supported by Wasmtime, so+ // wait for a `wasm-tools` update to ungate these.+ if path.ends_with("spec_testsuite/custom/custom_annot.wast")+ || path.ends_with("spec_testsuite/custom/branch_hint.wast")+ || path.ends_with("spec_testsuite/custom/name_annot.wast")+ {+ continue;+ }+let contents =fs::read_to_string(&path).with_context(|| format!("failed to read test: {path:?}"))?;let config = match config {@@ -125,6 +134,7 @@ fn spec_test_config(test: &Path) -> TestConfig {ret.custom_page_sizes = Some(true);ret.multi_memory = Some(true);ret.memory64 = Some(true);+ ret.reference_types = Some(true);// See commentary below in `wasm-3.0` case for why these "hog// memory"diff --git a/tests/spec_testsuite b/tests/spec_testsuiteindex 345367358f..51279a9d02 160000--- a/tests/spec_testsuite+++ b/tests/spec_testsuite@@ -1 +1 @@-Subproject commit 345367358f065375524498749470720d9cdd1418+Subproject commit 51279a9d02cbba193cb25142d115388d7b83299c