summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 939d8d278..5c2c37dcb 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -52,6 +52,10 @@ for t in sorted(os.listdir(os.path.join('test', 'print'))):
print ' ', ' '.join(cmd)
actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
open(os.path.join('test', 'print', wasm + '.txt'), 'w').write(actual)
+ cmd = [os.path.join('bin', 'binaryen-shell'), os.path.join('test', 'print', t), '--print-minified']
+ print ' ', ' '.join(cmd)
+ actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+ open(os.path.join('test', 'print', wasm + '.minified.txt'), 'w').write(actual)
for t in sorted(os.listdir(os.path.join('test', 'passes'))):
if t.endswith('.wast'):