diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-22 15:39:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-22 15:39:06 -0800 |
commit | f5beae2835377e452c95c5b64a90a75b97b3234e (patch) | |
tree | 9c5a35534f31ca8fd6f4b5d262ccaba869d2bb56 /check.py | |
parent | 45a011e1071ba511b3deee134219dd2f9eb6c8aa (diff) | |
download | binaryen-f5beae2835377e452c95c5b64a90a75b97b3234e.tar.gz binaryen-f5beae2835377e452c95c5b64a90a75b97b3234e.tar.bz2 binaryen-f5beae2835377e452c95c5b64a90a75b97b3234e.zip |
emit constants instead of callImport when there is a type necessary
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -89,7 +89,9 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))): if t.endswith('.wast'): print '..', t passname = os.path.basename(t).replace('.wast', '') - actual, err = subprocess.Popen([os.path.join('bin', 'binaryen-shell'), '-print-before', '-print-after', '-' + passname, os.path.join('test', 'passes', t)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + cmd = [os.path.join('bin', 'binaryen-shell'), '-print-before', '-print-after', '-' + passname, os.path.join('test', 'passes', t)] + print ' ', ' '.join(cmd) + actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() fail_if_not_identical(actual, open(os.path.join('test', 'passes', passname + '.txt')).read()) print '\n[ checking binaryen-shell testcases... ]\n' |