diff options
author | Sam Clegg <sbc@chromium.org> | 2018-06-28 17:42:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 17:42:15 -0700 |
commit | 11047d8791eabf77114164b3643bc5f8cd1ee298 (patch) | |
tree | 8820fbab9f5437d01118d735be74b2dece9f3d95 /auto_update_tests.py | |
parent | 487cee5ac474ec5971fad94ecbd85075ba5dbc92 (diff) | |
download | binaryen-11047d8791eabf77114164b3643bc5f8cd1ee298.tar.gz binaryen-11047d8791eabf77114164b3643bc5f8cd1ee298.tar.bz2 binaryen-11047d8791eabf77114164b3643bc5f8cd1ee298.zip |
Remove s2wasm (#1607)
s2wasm is no longer used my emscripten and as far as I know now
as no other users.
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 33105bc3e..a1e687b6b 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -21,7 +21,7 @@ import sys from scripts.test.support import run_command, split_wast, node_test_glue, node_has_webassembly from scripts.test.shared import ( - ASM2WASM, MOZJS, NODEJS, S2WASM, WASM_OPT, WASM_AS, WASM_DIS, + ASM2WASM, MOZJS, NODEJS, WASM_OPT, WASM_AS, WASM_DIS, WASM_CTOR_EVAL, WASM_MERGE, WASM_REDUCE, WASM2ASM, WASM_METADCE, WASM_EMSCRIPTEN_FINALIZE, BINARYEN_INSTALL_DIR, files_with_pattern, has_shell_timeout) @@ -69,35 +69,6 @@ def update_asm_js_tests(): run_command(cmd) -def update_dot_s_tests(): - extension_arg_map = { - '.wast': [], - '.clamp.wast': ['--trap-mode=clamp'], - '.js.wast': ['--trap-mode=js'], - '.jscall.wast': ['--emscripten-reserved-function-pointers=3'], - } - for dot_s_dir in ['dot_s', 'llvm_autogenerated']: - for s in sorted(os.listdir(os.path.join('test', dot_s_dir))): - if not s.endswith('.s'): - continue - print '..', s - for ext, ext_args in extension_arg_map.iteritems(): - wasm = s.replace('.s', ext) - expected_file = os.path.join('test', dot_s_dir, wasm) - if ext != '.wast' and not os.path.exists(expected_file): - continue - - full = os.path.join('test', dot_s_dir, s) - stack_alloc = ['--allocate-stack=1024'] if dot_s_dir == 'llvm_autogenerated' else [] - cmd = S2WASM + [full, '--emscripten-glue'] + stack_alloc + ext_args - if s.startswith('start_'): - cmd.append('--start') - actual = run_command(cmd, stderr=subprocess.PIPE, expected_err='') - - with open(expected_file, 'w') as o: - o.write(actual) - - def update_lld_tests(): print '\n[ checking wasm-emscripten-finalize testcases... ]\n' @@ -435,7 +406,6 @@ def update_reduce_tests(): def main(): update_asm_js_tests() - update_dot_s_tests() update_lld_tests() update_wasm_opt_tests() update_bin_fmt_tests() |