summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xauto_update_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 4b8602c7c..fd6e76119 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -17,5 +17,15 @@ 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 t in sorted(os.listdir('test')):
+ if t.endswith('.wast') and not t.startswith('spec'):
+ print '..', t
+ t = os.path.join('test', t)
+ actual, err = subprocess.Popen([os.path.join('bin', 'binaryen-shell'), t, '-print-before'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+ assert err == '', 'bad err:' + err
+ actual = actual.replace('printing before:\n', '')
+
+ open(t, 'w').write(actual)
+
print '\n[ success! ]'