summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-13 17:16:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-03-13 17:16:01 -0700
commitcf04149b2dfa51093c6ad0676171cf7c8c506238 (patch)
tree22ad147f015e37a41ef8d9b7d17de7ff701ebc3d
parentf41c310f8da01d082e776112a643d6483757999f (diff)
downloadbinaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.tar.gz
binaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.tar.bz2
binaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.zip
test wasm-binary method on wasm.js testcases
-rwxr-xr-xcheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/check.py b/check.py
index 34f3f4e4c..0bff81000 100755
--- a/check.py
+++ b/check.py
@@ -656,11 +656,11 @@ if has_emcc:
extra = json.loads(open(emcc).read())
if os.path.exists('a.normal.js'): os.unlink('a.normal.js')
for opts in [[], ['-O1'], ['-O2'], ['-O3'], ['-Oz']]:
- for method in ['asm2wasm', 'wasm-s-parser', 'just-asm']:
+ for method in ['asm2wasm', 'wasm-s-parser', 'just-asm', 'wasm-binary']:
command = ['emcc', '-o', 'a.wasm.js', '-s', 'BINARYEN=1', os.path.join('test', c)] + opts + extra
command += ['-s', 'BINARYEN_METHOD="' + method + '"']
- subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print '....' + ' '.join(command)
+ subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if post:
open('a.wasm.js', 'a').write(post)
else: