diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2017-09-01 14:26:01 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-09-01 11:26:01 -0700 |
commit | b013f744e3d70effd9be348cbde7fb93f0a16c6a (patch) | |
tree | 3b122293005d3370c931175eed92ad61e9dfd851 /scripts/test/wasm2asm.py | |
parent | b1e8b1b515b2a1d0264975abc4de39c8044f7195 (diff) | |
download | binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.tar.gz binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.tar.bz2 binaryen-b013f744e3d70effd9be348cbde7fb93f0a16c6a.zip |
i64 to i32 lowering for wasm2asm (#1134)
Diffstat (limited to 'scripts/test/wasm2asm.py')
-rwxr-xr-x | scripts/test/wasm2asm.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/test/wasm2asm.py b/scripts/test/wasm2asm.py index 93f63fd05..fe22e4f83 100755 --- a/scripts/test/wasm2asm.py +++ b/scripts/test/wasm2asm.py @@ -7,15 +7,17 @@ from shared import (WASM2ASM, MOZJS, NODEJS, fail_if_not_identical, tests) # tests with i64s, invokes, etc. -blacklist = ['address.wast'] -spec_tests = [os.path.join('spec', t) for t in - sorted(os.listdir(os.path.join('test', 'spec')))] +spec_tests = [os.path.join('spec', t) + for t in sorted(os.listdir(os.path.join('test', 'spec'))) + if '.fail' not in t] +extra_tests = [os.path.join('wasm2asm', t) for t in + sorted(os.listdir(os.path.join('test', 'wasm2asm')))] assert_tests = ['wasm2asm.wast.asserts'] def test_wasm2asm_output(): - for wasm in tests + [w for w in spec_tests if '.fail' not in w]: - if not wasm.endswith('.wast') or os.path.basename(wasm) in blacklist: + for wasm in tests + spec_tests + extra_tests: + if not wasm.endswith('.wast'): continue asm = os.path.basename(wasm).replace('.wast', '.2asm.js') |