summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-05 21:02:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-05 21:02:49 -0800
commitd17aaea3ddf73369af3c7fad3f42a23928d4009d (patch)
tree6ee2d517aebb45c07fe68baf38d338e35a9bd5ef /check.py
parentb78563b607f3a851dee9495ad21307b23e2c2666 (diff)
downloadbinaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.tar.gz
binaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.tar.bz2
binaryen-d17aaea3ddf73369af3c7fad3f42a23928d4009d.zip
fix print, and add imports test
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/check.py b/check.py
index 2e5252715..dd507d038 100755
--- a/check.py
+++ b/check.py
@@ -83,7 +83,7 @@ if len(requested) == 0:
#spec_tests = [] # XXX [os.path.join('spec', t) for t in sorted(os.listdir(os.path.join('test', 'spec')))]
# 'address' : filed issue, test looks invalid
# 'exports' : has a "return" https://github.com/WebAssembly/spec/issues/164
- spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32']]
+ spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32', 'i64', 'imports']]
else:
spec_tests = requested[:]
@@ -103,6 +103,7 @@ for t in spec_tests:
x = x.strip()
if not x: return x
v, t = x.split(' : ')
+ if v.endswith('.'): v = v[:-1] # remove trailing '.'
return '(' + t + '.const ' + v + ')'
expected = '\n'.join(map(fix, expected.split('\n')))
else: