summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-16 16:10:36 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-16 16:10:36 -0800
commitba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993 (patch)
treea4e5c9d454cfd19142d3d7be995383e1396c7b96
parent6457e86fe40f8b0ee5cfddd2685d537462ea24f9 (diff)
downloadbinaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.tar.gz
binaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.tar.bz2
binaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.zip
improve auto updater
-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! ]'