summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-14 16:42:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-14 16:42:38 -0800
commit2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1 (patch)
treebff578cb71ecc6ed4f74d282f58732a3992f24db /check.py
parent280289a07e706691dae64ea8579da91b0ffa350f (diff)
downloadbinaryen-2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1.tar.gz
binaryen-2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1.tar.bz2
binaryen-2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1.zip
add expected outputs from text->binary->text test
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'