diff options
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 8e75ffb6b..6f87234f9 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -6,7 +6,7 @@ from scripts.test.support import run_command, split_wast, node_test_glue, node_h from scripts.test.shared import ( ASM2WASM, MOZJS, NODEJS, S2WASM, WASM_SHELL, WASM_OPT, WASM_AS, WASM_DIS, WASM_CTOR_EVAL, WASM_MERGE, WASM_REDUCE, WASM2ASM, WASM_METADCE, - WASM_LINK_METADATA, WASM_EMSCRIPTEN_FINALIZE, BINARYEN_INSTALL_DIR, + WASM_EMSCRIPTEN_FINALIZE, BINARYEN_INSTALL_DIR, files_with_pattern, has_shell_timeout) from scripts.test.wasm2asm import tests, spec_tests, extra_tests, assert_tests @@ -74,22 +74,6 @@ for dot_s_dir in ['dot_s', 'llvm_autogenerated']: with open(expected_file, 'w') as o: o.write(actual) -print '\n[ checking wasm-link-metadata testcases... ]\n' - -link_metadata_extension_arg_map = { - '.json': [], - '.jscall.json': ['--emscripten-reserved-function-pointers=3'], -} -for obj_path in files_with_pattern('test', 'lld', '*.o'): - print '..', obj_path - for ext, ext_args in link_metadata_extension_arg_map.items(): - json_path = obj_path.replace('.o', ext) - if ext != 'json' and not os.path.exists(json_path): - continue - cmd = WASM_LINK_METADATA + [obj_path] + ext_args - actual = run_command(cmd) - with open(json_path, 'w') as o: o.write(actual) - print '\n[ checking wasm-emscripten-finalize testcases... ]\n' emscripten_finalize_extension_arg_map = { @@ -102,7 +86,8 @@ for wast_path in files_with_pattern('test', 'lld', '*.wast'): out_path = wast_path + ext if ext != '.out' and not os.path.exists(out_path): continue - cmd = WASM_EMSCRIPTEN_FINALIZE + [wast_path, '-S'] + ext_args + cmd = (WASM_EMSCRIPTEN_FINALIZE + + [wast_path, '-S', '--global-base=568'] + ext_args) actual = run_command(cmd) with open(out_path, 'w') as o: o.write(actual) |