From 4bcda1c61bf9d5138980db34b49a9ccf37d1fd09 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 14 Jan 2016 14:08:28 -0800 Subject: run s2wasm outputs from torture tests through binaryen-shell, to verify they parse --- check.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'check.py') 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) -- cgit v1.2.3