summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-14 14:08:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-14 14:08:28 -0800
commit4bcda1c61bf9d5138980db34b49a9ccf37d1fd09 (patch)
tree9b8a710ee75b531613bd436b35707f1756c41de4 /check.py
parent6431ed05813b76d583a7ca98bf193c66c834b993 (diff)
downloadbinaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.tar.gz
binaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.tar.bz2
binaryen-4bcda1c61bf9d5138980db34b49a9ccf37d1fd09.zip
run s2wasm outputs from torture tests through binaryen-shell, to verify they parse
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/check.py b/check.py
index b11445bf4..fb22da3d9 100755
--- a/check.py
+++ b/check.py
@@ -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)