diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-21 13:34:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-21 13:35:00 -0800 |
commit | 20ffcb30b5d9d58de0a2be55c998610ae01cb45f (patch) | |
tree | f6e45efc12e874e28fb4f1c13fb8a19e5c2f099f | |
parent | bcfa3e8520d220ae274ffe98701a13b032da3cd7 (diff) | |
download | binaryen-20ffcb30b5d9d58de0a2be55c998610ae01cb45f.tar.gz binaryen-20ffcb30b5d9d58de0a2be55c998610ae01cb45f.tar.bz2 binaryen-20ffcb30b5d9d58de0a2be55c998610ae01cb45f.zip |
start to verify that experimental wasts parse ok
-rwxr-xr-x | check.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -212,6 +212,22 @@ for t in spec_tests: if actual != expected: fail(actual, expected) +print '\n[ checking binaryen-shell experimental testcases... ]\n' + +if len(requested) == 0: + BLACKLIST = ['call.wast', 'cfg-stackify.wast', 'inline-asm.wast', 'permute.wast', 'switch.wast', 'vtable.wast'] + experimental_tests = [os.path.join('experimental', 'prototype-wasmate', 'test', 'expected-output', t) for t in sorted(os.listdir(os.path.join('test', 'experimental', 'prototype-wasmate', 'test', 'expected-output'))) if t not in BLACKLIST] +else: + experimental_tests = requested[:] + +for t in experimental_tests: + if t.startswith('experimental') and t.endswith('.wast'): + print '..', t + wast = os.path.join('test', t) + proc = subprocess.Popen([os.path.join('bin', 'binaryen-shell'), wast], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + actual, err = proc.communicate() + assert proc.returncode == 0, err + print '\n[ checking .s testcases... ]\n' for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(os.path.join('test', 'experimental', 'prototype-wasmate', 'test'))): |