diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-26 17:31:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-26 17:31:11 -0800 |
commit | d4fd9f214b888db359748b04c5a0dcb255448acd (patch) | |
tree | 133614162211e7b3d9cd1036f909c232e4457a89 | |
parent | 787dbd34f57318d79cc1cf6011beafa601b72474 (diff) | |
download | binaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.tar.gz binaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.tar.bz2 binaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.zip |
verify we can convert the spec tests to binary and back
-rwxr-xr-x | check.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -291,12 +291,14 @@ for t in spec_tests: return '(' + t + '.const ' + v + ')' expected = '\n'.join(map(fix, expected.split('\n'))) print ' (using expected output)' - else: - continue - actual = actual.strip() - expected = expected.strip() - if actual != expected: - fail(actual, expected) + actual = actual.strip() + expected = expected.strip() + if actual != expected: + fail(actual, expected) + + # check binary format. here we can verify execution of the final result, no need for an output verification + if os.path.basename(wast) not in ['has_feature.wast']: # avoid some tests with things still in spec tests, but likely to be taken out soon + binary_format_check(wast, verify_final_result=False) print '\n[ checking wasm2asm testcases... ]\n' |