diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-11 17:56:22 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-11 17:56:22 -0500 |
commit | 8fe1dcbf33748b18d309cebe5f8b70e64e39a996 (patch) | |
tree | 74179cb821ade2b96fcd77bf4a836416fe152f7f /auto_update_tests.py | |
parent | 1ff97c6de3d8dcd67f85433d1142ade65c9f2360 (diff) | |
download | binaryen-8fe1dcbf33748b18d309cebe5f8b70e64e39a996.tar.gz binaryen-8fe1dcbf33748b18d309cebe5f8b70e64e39a996.tar.bz2 binaryen-8fe1dcbf33748b18d309cebe5f8b70e64e39a996.zip |
fix block handling in s2wasm
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 6f7229f5f..c423db6ab 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -32,5 +32,13 @@ for t in sorted(os.listdir('test')): open(t, 'w').write(actual) +for s in ['minimal.s', 'basics.s']: + print '..', s + wasm = s.replace('.s', '.wast') + actual, err = subprocess.Popen([os.path.join('bin', 's2wasm'), os.path.join('test', 'dot_s', s)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + assert err == '', 'bad err:' + err + expected_file = os.path.join('test', 'dot_s', wasm) + open(expected_file, 'w').write(actual) + print '\n[ success! ]' |