From 21d93d50b8eba98ca619897528fb707d1b15e265 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 25 May 2016 17:50:11 -0700 Subject: allow passes tests with more than one pass --- auto_update_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auto_update_tests.py') 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) -- cgit v1.2.3