summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 1ecbb7a40..447340886 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -18,14 +18,20 @@ for asm in sorted(os.listdir('test')):
if not opts:
cmd += ['--no-opts']
wasm += '.no-opts'
+ if precise and opts:
+ # test mem init importing
+ open('a.mem', 'wb').write(asm)
+ cmd += ['--mem-init=a.mem']
print '..', asm, wasm
print ' ', ' '.join(cmd)
actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
with open(os.path.join('test', wasm), 'w') as o: o.write(actual)
+'''
for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
for s in sorted(os.listdir(os.path.join('test', dot_s_dir))):
if not s.endswith('.s'): continue
+ if s in ['indirect-import.s', 'memops.s', 'byval.s', 'cfg-stackify.s', 'dead-vreg.s', 'i128.s', 'legalize.s', 'mem-intrinsics.s', 'offset.s', 'reg-stackify.s', 'store-results.s', 'userstack.s', 'varargs.s']: continue # tests with invalid drop() code (use return of store)
print '..', s
wasm = s.replace('.s', '.wast')
full = os.path.join('test', dot_s_dir, s)
@@ -38,6 +44,7 @@ for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
expected_file = os.path.join('test', dot_s_dir, wasm)
with open(expected_file, 'w') as o: o.write(actual)
+'''
'''
for wasm in ['address.wast']:#os.listdir(os.path.join('test', 'spec')):