summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAbbas Mashayekh <martianboy2005@gmail.com>2021-02-08 21:30:31 +0330
committerGitHub <noreply@github.com>2021-02-08 10:00:31 -0800
commit3be78fdd2f8e673457d93f3c7bfb341f8074d298 (patch)
tree0bced15b8e84f7d6fe0a361ddf59383c61099b61 /scripts
parent51c8f2469f8fd05197b7694c65041b1567f2c6b5 (diff)
downloadbinaryen-3be78fdd2f8e673457d93f3c7bfb341f8074d298.tar.gz
binaryen-3be78fdd2f8e673457d93f3c7bfb341f8074d298.tar.bz2
binaryen-3be78fdd2f8e673457d93f3c7bfb341f8074d298.zip
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test/shared.py2
-rw-r--r--scripts/test/wasm_opt.py2
2 files changed, 2 insertions, 2 deletions
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')