From 5b315375b5a98c2b57454e3b062f85ea99c80747 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 21 Sep 2016 15:31:09 -0700 Subject: update spec tests and check.py's handling of them --- check.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'check.py') diff --git a/check.py b/check.py index b94819ea5..0989cc9d4 100755 --- a/check.py +++ b/check.py @@ -376,14 +376,14 @@ for t in spec_tests: print '..', t wast = os.path.join('test', t) + # skip checks for some tests + if os.path.basename(wast) in ['linking.wast', 'nop.wast', 'stack.wast', 'typecheck.wast']: # FIXME + continue + def run_spec_test(wast): cmd = [os.path.join('bin', 'wasm-shell'), wast] # we must skip the stack machine portions of spec tests or apply other extra args extra = { - 'call.wast': ['--skip=207'], - 'call_indirect.wast': ['--skip=302'], - 'nop.wast': ['--skip=3'], - 'stack.wast': ['--skip=0'], } cmd = cmd + (extra.get(os.path.basename(wast)) or []) return run_command(cmd, stderr=subprocess.PIPE) @@ -419,12 +419,12 @@ for t in spec_tests: check_expected(actual, expected) + # skip binary checks for tests that reuse previous modules by name, as that's a wast-only feature + if os.path.basename(wast) in ['exports.wast']: # FIXME + continue + # we must ignore some binary format splits splits_to_skip = { - 'call.wast': [1], - 'call_indirect.wast': [1], - 'nop.wast': [0], - 'stack.wast': [0], } # check binary format. here we can verify execution of the final result, no need for an output verification -- cgit v1.2.3