diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-11 19:49:57 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-11 19:49:57 -0800 |
commit | dc5a2bf6f34b2eea26919b79e6ae9c020e750538 (patch) | |
tree | 6ba61f03b994e0ecd41c702c7170a55a38cccc6d | |
parent | 955995a59d6ddfebd09b73d727fc0795f81a5c96 (diff) | |
download | binaryen-dc5a2bf6f34b2eea26919b79e6ae9c020e750538.tar.gz binaryen-dc5a2bf6f34b2eea26919b79e6ae9c020e750538.tar.bz2 binaryen-dc5a2bf6f34b2eea26919b79e6ae9c020e750538.zip |
update check.py
-rwxr-xr-x | check.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -64,20 +64,20 @@ for asm in tests: raise Exception('wasm interpreter error: ' + err) # failed to pretty-print raise Exception('wasm interpreter error') -print '\n[ checking wasm-shell testcases... ]\n' +print '\n[ checking binaryen-shell testcases... ]\n' for t in tests: if t.endswith('.wast') and not t.startswith('spec'): print '..', t t = os.path.join('test', t) - actual, err = subprocess.Popen([os.path.join('bin', 'wasm-shell'), t, 'print-wasm'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + actual, err = subprocess.Popen([os.path.join('bin', 'binaryen-shell'), t, '--print-before'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() assert err == '', 'bad err:' + err expected = open(t).read() if actual != expected: fail(actual, expected) -print '\n[ checking wasm-shell spec testcases... ]\n' +print '\n[ checking binaryen-shell spec testcases... ]\n' if len(requested) == 0: BLACKLIST = [] @@ -89,7 +89,7 @@ for t in spec_tests: if t.startswith('spec') and t.endswith('.wast'): print '..', t wast = os.path.join('test', t) - proc = subprocess.Popen([os.path.join('bin', 'wasm-shell'), wast], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + 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 |