diff options
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 447340886..26c12e2c0 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -24,14 +24,12 @@ for asm in sorted(os.listdir('test')): cmd += ['--mem-init=a.mem'] print '..', asm, wasm print ' ', ' '.join(cmd) - actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + actual = run_command(cmd) with open(os.path.join('test', wasm), 'w') as o: o.write(actual) -''' 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 - if s in ['indirect-import.s', 'memops.s', 'byval.s', 'cfg-stackify.s', 'dead-vreg.s', 'i128.s', 'legalize.s', 'mem-intrinsics.s', 'offset.s', 'reg-stackify.s', 'store-results.s', 'userstack.s', 'varargs.s']: continue # tests with invalid drop() code (use return of store) print '..', s wasm = s.replace('.s', '.wast') full = os.path.join('test', dot_s_dir, s) @@ -39,12 +37,10 @@ for dot_s_dir in ['dot_s', 'llvm_autogenerated']: cmd = [os.path.join('bin', 's2wasm'), full, '--emscripten-glue'] + stack_alloc if s.startswith('start_'): cmd.append('--start') - actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() - assert err == '', 'bad err:' + err + actual = run_command(cmd, stderr=subprocess.PIPE, expected_err='') expected_file = os.path.join('test', dot_s_dir, wasm) with open(expected_file, 'w') as o: o.write(actual) -''' ''' for wasm in ['address.wast']:#os.listdir(os.path.join('test', 'spec')): |