diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-08-28 14:31:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 14:31:08 -0700 |
commit | e06fc1414bff1085047a559eca1a8b659a20a32e (patch) | |
tree | 3fe831746d886c1d5f973b6216c7742066fb2d12 /scripts/test | |
parent | cb0b31a2d185f18662814c9f3c9158b2eea74760 (diff) | |
download | binaryen-e06fc1414bff1085047a559eca1a8b659a20a32e.tar.gz binaryen-e06fc1414bff1085047a559eca1a8b659a20a32e.tar.bz2 binaryen-e06fc1414bff1085047a559eca1a8b659a20a32e.zip |
Allow all features on wasm2js and add atomic tests (#2311)
This adds `-all` argument to wasm2js testing and fixes wasm2js to
actually take that argument (currently it doesn't, when it takes a wast
file). This also adds a wasm2js test for `atomic.fence` instruction that
was added in #2307.
Diffstat (limited to 'scripts/test')
-rwxr-xr-x | scripts/test/wasm2js.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 2395778bd..3cb766bcd 100755 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -61,7 +61,7 @@ def test_wasm2js_output(): for module, asserts in split_wast(t): write_wast('split.wast', module, asserts) - cmd = WASM2JS + ['split.wast'] + cmd = WASM2JS + ['split.wast', '-all'] if opt: cmd += ['-O'] if 'emscripten' in wasm: @@ -110,7 +110,7 @@ def test_asserts_output(): traps_expected_file = os.path.join(options.binaryen_test, traps) wasm = os.path.join(wasm2js_dir, wasm) - cmd = WASM2JS + [wasm, '--allow-asserts'] + cmd = WASM2JS + [wasm, '--allow-asserts', '-all'] out = run_command(cmd) fail_if_not_identical_to_file(out, asserts_expected_file) @@ -157,7 +157,7 @@ def update_wasm2js_tests(): for module, asserts in split_wast(t): write_wast('split.wast', module, asserts) - cmd = WASM2JS + ['split.wast'] + cmd = WASM2JS + ['split.wast', '-all'] if opt: cmd += ['-O'] if 'emscripten' in wasm: @@ -176,7 +176,7 @@ def update_wasm2js_tests(): asserts_expected_file = os.path.join(options.binaryen_test, asserts) traps_expected_file = os.path.join(options.binaryen_test, traps) - cmd = WASM2JS + [os.path.join(wasm2js_dir, wasm), '--allow-asserts'] + cmd = WASM2JS + [os.path.join(wasm2js_dir, wasm), '--allow-asserts', '-all'] out = run_command(cmd) with open(asserts_expected_file, 'w') as o: o.write(out) |