From 2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 14 Jan 2016 16:42:38 -0800 Subject: add expected outputs from text->binary->text test --- check.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'check.py') 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' -- cgit v1.2.3