diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 16:10:36 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 16:10:36 -0800 |
commit | ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993 (patch) | |
tree | a4e5c9d454cfd19142d3d7be995383e1396c7b96 | |
parent | 6457e86fe40f8b0ee5cfddd2685d537462ea24f9 (diff) | |
download | binaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.tar.gz binaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.tar.bz2 binaryen-ba6c4700fd22e3c0ccfb9cb4f3bfe8af5e910993.zip |
improve auto updater
-rwxr-xr-x | auto_update_tests.py | 10 |
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! ]' |