summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/check.py b/check.py
index d53bdfcb1..c9a44a4b0 100755
--- a/check.py
+++ b/check.py
@@ -295,6 +295,10 @@ for wast in tests:
if os.path.exists('a.wast'): os.unlink('a.wast')
subprocess.check_call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
assert os.path.exists('a.wast')
+ expected = open(os.path.join('test', wast + '.fromBinary')).read()
+ actual = open('a.wast').read()
+ if actual != expected:
+ fail(actual, expected)
print '\n[ checking example testcases... ]\n'