diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-19 16:35:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-19 16:35:32 -0700 |
commit | e396635727ca7fd571aa4fd19ba310942767307e (patch) | |
tree | 7b9da5de9331ccc2f6084209e136701a80026138 /auto_update_tests.py | |
parent | 1f4d6d05d48cf60f6761525942815a8fefc92313 (diff) | |
parent | 579010855a134a78cab8ed129cbbbe52bd52a380 (diff) | |
download | binaryen-e396635727ca7fd571aa4fd19ba310942767307e.tar.gz binaryen-e396635727ca7fd571aa4fd19ba310942767307e.tar.bz2 binaryen-e396635727ca7fd571aa4fd19ba310942767307e.zip |
Merge pull request #528 from WebAssembly/vacuum-better
Vacuum improvements
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 378f511cc..6f86bc1fe 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -6,16 +6,20 @@ print '[ processing and updating testcases... ]\n' for asm in sorted(os.listdir('test')): if asm.endswith('.asm.js'): - wasm = asm.replace('.asm.js', '.fromasm') for precise in [1, 0]: - cmd = [os.path.join('bin', 'asm2wasm'), os.path.join('test', asm)] - if not precise: - cmd += ['--imprecise'] - wasm += '.imprecise' - print '..', asm, wasm - print ' ', ' '.join(cmd) - actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() - open(os.path.join('test', wasm), 'w').write(actual) + for opts in [1, 0]: + cmd = [os.path.join('bin', 'asm2wasm'), os.path.join('test', asm)] + wasm = asm.replace('.asm.js', '.fromasm') + if not precise: + cmd += ['--imprecise'] + wasm += '.imprecise' + if not opts: + cmd += ['--no-opts'] + wasm += '.no-opts' + print '..', asm, wasm + print ' ', ' '.join(cmd) + actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + open(os.path.join('test', wasm), 'w').write(actual) for dot_s_dir in ['dot_s', 'llvm_autogenerated']: for s in sorted(os.listdir(os.path.join('test', dot_s_dir))): |