diff options
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 2f8138749..65b825393 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -27,51 +27,6 @@ from scripts.test import wasm2js from scripts.test import wasm_opt -def update_asm_js_tests(): - print('[ processing and updating testcases... ]\n') - for asm in shared.get_tests(shared.options.binaryen_test, ['.asm.js']): - basename = os.path.basename(asm) - for precise in [0, 1, 2]: - for opts in [1, 0]: - cmd = shared.ASM2WASM + [asm] - if 'threads' in basename: - cmd += ['--enable-threads'] - wasm = asm.replace('.asm.js', '.fromasm') - if not precise: - cmd += ['--trap-mode=allow', '--ignore-implicit-traps'] - wasm += '.imprecise' - elif precise == 2: - cmd += ['--trap-mode=clamp'] - wasm += '.clamp' - if not opts: - wasm += '.no-opts' - if precise: - cmd += ['-O0'] # test that -O0 does nothing - else: - cmd += ['-O'] - if 'debugInfo' in basename: - cmd += ['-g'] - if 'noffi' in basename: - cmd += ['--no-legalize-javascript-ffi'] - if precise and opts: - # test mem init importing - open('a.mem', 'wb').write(bytes(basename, 'utf-8')) - cmd += ['--mem-init=a.mem'] - if basename[0] == 'e': - cmd += ['--mem-base=1024'] - if '4GB' in basename: - cmd += ['--mem-max=4294967296'] - if 'i64' in basename or 'wasm-only' in basename or 'noffi' in basename: - cmd += ['--wasm-only'] - print(' '.join(cmd)) - actual = support.run_command(cmd) - with open(os.path.join(shared.options.binaryen_test, wasm), 'w') as o: - o.write(actual) - if 'debugInfo' in basename: - cmd += ['--source-map', os.path.join(shared.options.binaryen_test, wasm + '.map'), '-o', 'a.wasm'] - support.run_command(cmd) - - def update_bin_fmt_tests(): print('\n[ checking binary format testcases... ]\n') for wast in shared.get_tests(shared.options.binaryen_test, ['.wast']): @@ -224,7 +179,6 @@ def update_spec_tests(): TEST_SUITES = OrderedDict([ ('wasm-opt', wasm_opt.update_wasm_opt_tests), - ('asm2wasm', update_asm_js_tests), ('wasm-dis', update_wasm_dis_tests), ('example', update_example_tests), ('ctor-eval', update_ctor_eval_tests), |