diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-13 20:21:16 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-13 20:21:16 -0800 |
commit | 514a7e8b88b727bfa0871b5df0ba362fa6b529fb (patch) | |
tree | 897aa646611880f180fc658fc144b4008ecfdb73 /check.py | |
parent | 06f34506dd1a190e3886097a528a9cdea7c834e1 (diff) | |
download | binaryen-514a7e8b88b727bfa0871b5df0ba362fa6b529fb.tar.gz binaryen-514a7e8b88b727bfa0871b5df0ba362fa6b529fb.tar.bz2 binaryen-514a7e8b88b727bfa0871b5df0ba362fa6b529fb.zip |
add descriptions to passes
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,7 @@ fail_if_not_contained(actual, 'options:') fail_if_not_contained(actual, 'passes:') fail_if_not_contained(actual, ' -lower-if-else') -print ' '.join([os.path.join('bin', 'binaryen-shell'), '-print-before', '-print-after', '-lower-if-else', os.path.join('test', 'if_else.wast')]) +print ' ', ' '.join([os.path.join('bin', 'binaryen-shell'), '-print-before', '-print-after', '-lower-if-else', os.path.join('test', 'if_else.wast')]) actual, err = subprocess.Popen([os.path.join('bin', 'binaryen-shell'), '-print-before', '-print-after', '-lower-if-else', os.path.join('test', 'if_else.wast')], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() fail_if_not_identical(actual, open(os.path.join('test', 'if_else.txt')).read()) @@ -92,6 +92,7 @@ for t in tests: t = os.path.join('test', t) 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 + actual = actual.replace('printing before:\n', '') expected = open(t).read() if actual != expected: |