summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/check.py b/check.py
index 6f6f23138..befb6f04e 100755
--- a/check.py
+++ b/check.py
@@ -106,6 +106,15 @@ for t in sorted(os.listdir(os.path.join(options.binaryen_test, 'passes'))):
fail_if_not_identical(actual, open(os.path.join('test', 'passes', passname + ('.bin' if binary else '') + '.txt'), 'rb').read())
+ if 'emit-js-wrapper' in t:
+ with open('a.js') as actual:
+ with open(t + '.js') as expected:
+ fail_if_not_identical(actual.read(), expected.read())
+ if 'emit-spec-wrapper' in t:
+ with open('a.wat') as actual:
+ with open(t + '.wat') as expected:
+ fail_if_not_identical(actual.read(), expected.read())
+
print '[ checking asm2wasm testcases... ]\n'
for asm in tests: