diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-05 13:13:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-05 13:13:35 -0800 |
commit | 41ff4225d80f881f42fd9daf8cc7d5ba804238f2 (patch) | |
tree | 93f606040ed6e32359c003192fd5fb0df5581dcc /auto_update_tests.py | |
parent | dca96ba53339695ea4131d374cee00e916b0ac70 (diff) | |
download | binaryen-41ff4225d80f881f42fd9daf8cc7d5ba804238f2.tar.gz binaryen-41ff4225d80f881f42fd9daf8cc7d5ba804238f2.tar.bz2 binaryen-41ff4225d80f881f42fd9daf8cc7d5ba804238f2.zip |
add wasm2asm to auto_update_tests.py
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index e0c43df3b..6f7229f5f 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -16,6 +16,13 @@ for asm in sorted(os.listdir('test')): raise Exception('output .wast file does not exist') open(os.path.join('test', wasm), 'w').write(actual) +for wasm in sorted(os.listdir('test')): + if wasm.endswith('.wast'): + print '..', wasm + asm = wasm.replace('.wast', '.2asm.js') + actual, err = subprocess.Popen([os.path.join('bin', 'wasm2asm'), os.path.join('test', wasm)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + open(os.path.join('test', asm), 'w').write(actual) + for t in sorted(os.listdir('test')): if t.endswith('.wast') and not t.startswith('spec'): print '..', t |