summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
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