From 3be78fdd2f8e673457d93f3c7bfb341f8074d298 Mon Sep 17 00:00:00 2001 From: Abbas Mashayekh Date: Mon, 8 Feb 2021 21:30:31 +0330 Subject: Add feature options to wasm-dis (#3548) This will allow .fromBinary tests be executed with the desired featurs so there will be no difference between those tests and .from-wast tests. Fixes #3545 --- scripts/test/shared.py | 2 +- scripts/test/wasm_opt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/test') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 670d41d30..b46a21175 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -466,7 +466,7 @@ def binary_format_check(wast, verify_final_result=True, wasm_as_args=['-g'], subprocess.check_call(cmd, stdout=subprocess.PIPE) assert os.path.exists('a.wasm') - cmd = WASM_DIS + ['a.wasm', '-o', 'ab.wast'] + cmd = WASM_DIS + ['a.wasm', '-o', 'ab.wast', '-all'] print(' ', ' '.join(cmd)) if os.path.exists('ab.wast'): os.unlink('ab.wast') diff --git a/scripts/test/wasm_opt.py b/scripts/test/wasm_opt.py index 588c79ab9..189a9978c 100644 --- a/scripts/test/wasm_opt.py +++ b/scripts/test/wasm_opt.py @@ -226,7 +226,7 @@ def update_wasm_opt_tests(): subprocess.check_call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) assert os.path.exists('a.wasm') - cmd = shared.WASM_DIS + ['a.wasm', '-o', 'a.wast'] + cmd = shared.WASM_DIS + ['a.wasm', '-o', 'a.wast', '-all'] print(' '.join(cmd)) if os.path.exists('a.wast'): os.unlink('a.wast') -- cgit v1.2.3