diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 14:08:28 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 14:08:28 -0800 |
commit | 4bcda1c61bf9d5138980db34b49a9ccf37d1fd09 (patch) | |
tree | 9b8a710ee75b531613bd436b35707f1756c41de4 | |
parent | 6431ed05813b76d583a7ca98bf193c66c834b993 (diff) | |
download | binaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.tar.gz binaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.tar.bz2 binaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.zip |
run s2wasm outputs from torture tests through binaryen-shell, to verify they parse
-rwxr-xr-x | check.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -276,6 +276,10 @@ if torture: fails=os.path.abspath(os.path.join('test', 's2wasm_known_gcc_test_failures.txt')), out=s2wasm_torture_out) assert os.path.isdir(s2wasm_torture_out), 'Expected output directory %s' % s2wasm_torture_out + for wast in sorted(os.listdir(s2wasm_torture_out)): + cmd = [os.path.join('bin', 'binaryen-shell'), os.path.join(s2wasm_torture_out, wast)] + print cmd + subprocess.check_call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) shutil.rmtree(s2wasm_torture_out) if unexpected_result_count: fail(unexpected_result_count, 0) |