From e06fc1414bff1085047a559eca1a8b659a20a32e Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 28 Aug 2019 14:31:08 -0700 Subject: 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. --- scripts/test/wasm2js.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/test') 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) -- cgit v1.2.3