From 41ff4225d80f881f42fd9daf8cc7d5ba804238f2 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Dec 2015 13:13:35 -0800 Subject: add wasm2asm to auto_update_tests.py --- auto_update_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'auto_update_tests.py') diff --git a/auto_update_tests.py b/auto_update_tests.py index e0c43df3b..6f7229f5f 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -16,6 +16,13 @@ for asm in sorted(os.listdir('test')): raise Exception('output .wast file does not exist') open(os.path.join('test', wasm), 'w').write(actual) +for wasm in sorted(os.listdir('test')): + if wasm.endswith('.wast'): + print '..', wasm + asm = wasm.replace('.wast', '.2asm.js') + actual, err = subprocess.Popen([os.path.join('bin', 'wasm2asm'), os.path.join('test', wasm)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + open(os.path.join('test', asm), 'w').write(actual) + for t in sorted(os.listdir('test')): if t.endswith('.wast') and not t.startswith('spec'): print '..', t -- cgit v1.2.3