From 1afe9d4374f6920981be132e1538f63b8f053c02 Mon Sep 17 00:00:00 2001 From: Abbas Mashayekh Date: Wed, 21 Apr 2021 02:58:11 +0430 Subject: Run spec test all at once after binary transform (#3817) #3792 added support for module linking and (register command to wasm-shell, but forgot about three problems: - Splitting spec tests prevents linking test modules together. - Registered modules may still be used in assertions or an invoke - Modules may re-export imported objects This PR appends transformed modules after binary checks to a spec.wast file, plus assertion tests and register commands. Then runs wasm-shell on the whole file. It also keeps both the module name and its registered name available in wasm-shell for use in shell commands and linked modules. Furthermore, it correctly finds the module where an object is defined even if it is imported and re-exported several times. The updated version of imports.wast spec test is enabled to verify the fixes. --- scripts/test/shared.py | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts/test/shared.py') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 54c7c861d..d3af99455 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -424,7 +424,6 @@ SPEC_TESTS_TO_SKIP = [ 'utf8-invalid-encoding.wast', # 'register' command - 'imports.wast', 'linking.wast', # Misc. unsupported constructs -- cgit v1.2.3