summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-05 13:13:35 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-05 13:13:35 -0800
commit41ff4225d80f881f42fd9daf8cc7d5ba804238f2 (patch)
tree93f606040ed6e32359c003192fd5fb0df5581dcc /auto_update_tests.py
parentdca96ba53339695ea4131d374cee00e916b0ac70 (diff)
downloadbinaryen-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-xauto_update_tests.py7
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