diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 16:42:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 16:42:38 -0800 |
commit | 2c4a72b3148700d2a5175c6af5cbe3f9378b3dc1 (patch) | |
tree | bff578cb71ecc6ed4f74d282f58732a3992f24db /check.py | |
parent | 280289a07e706691dae64ea8579da91b0ffa350f (diff) | |
download | binaryen-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-x | check.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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' |