summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-05-25 19:27:24 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-05-25 19:27:24 -0700
commit45618ddc8eee4f288a2d11d1afe763dbdeab8559 (patch)
tree39ef392e07a56bfd1d465315b24158110523c943 /auto_update_tests.py
parent948f6fe7c4d2a9256310c07c54724685f27874ac (diff)
parent5b6918ec2245a6e3c512dcee45766731b49805cc (diff)
downloadbinaryen-45618ddc8eee4f288a2d11d1afe763dbdeab8559.tar.gz
binaryen-45618ddc8eee4f288a2d11d1afe763dbdeab8559.tar.bz2
binaryen-45618ddc8eee4f288a2d11d1afe763dbdeab8559.zip
Merge pull request #543 from WebAssembly/fix-merge-blocks
Fix merge blocks on named blocks
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 6f86bc1fe..0a42d8357 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -67,7 +67,8 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))):
if t.endswith('.wast'):
print '..', t
passname = os.path.basename(t).replace('.wast', '')
- cmd = [os.path.join('bin', 'binaryen-shell'), ('--' + passname if passname != 'O' else '-O'), os.path.join('test', 'passes', t), '--print']
+ opts = ['-O'] if passname == 'O' else ['--' + p for p in passname.split('_')]
+ cmd = [os.path.join('bin', 'binaryen-shell')] + opts + [os.path.join('test', 'passes', t), '--print']
print ' ', ' '.join(cmd)
actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
open(os.path.join('test', 'passes', passname + '.txt'), 'w').write(actual)