summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-12 09:19:28 -0500
committerAlon Zakai <alonzakai@gmail.com>2015-12-12 09:19:28 -0500
commit54e70e4b391d87482024efcf0829e967e46da866 (patch)
tree9c90bec91a7b597f2384aec7ba06a673c67ca0ee /auto_update_tests.py
parenta6be5ae3d999d514359fdd4a2f5284555ade54a0 (diff)
downloadbinaryen-54e70e4b391d87482024efcf0829e967e46da866.tar.gz
binaryen-54e70e4b391d87482024efcf0829e967e46da866.tar.bz2
binaryen-54e70e4b391d87482024efcf0829e967e46da866.zip
add call.s
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index c423db6ab..c47d52f21 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -32,10 +32,13 @@ for t in sorted(os.listdir('test')):
open(t, 'w').write(actual)
-for s in ['minimal.s', 'basics.s']:
+for s in ['minimal.s', 'basics.s', 'call.s']:
print '..', s
wasm = s.replace('.s', '.wast')
- actual, err = subprocess.Popen([os.path.join('bin', 's2wasm'), os.path.join('test', 'dot_s', s)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+ full = os.path.join('test', 'dot_s', s)
+ if not os.path.exists(full):
+ full = os.path.join('test', 'experimental', 'prototype-wasmate', 'test', s)
+ actual, err = subprocess.Popen([os.path.join('bin', 's2wasm'), full], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
assert err == '', 'bad err:' + err
expected_file = os.path.join('test', 'dot_s', wasm)
open(expected_file, 'w').write(actual)