summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-26 17:31:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-26 17:31:11 -0800
commitd4fd9f214b888db359748b04c5a0dcb255448acd (patch)
tree133614162211e7b3d9cd1036f909c232e4457a89
parent787dbd34f57318d79cc1cf6011beafa601b72474 (diff)
downloadbinaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.tar.gz
binaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.tar.bz2
binaryen-d4fd9f214b888db359748b04c5a0dcb255448acd.zip
verify we can convert the spec tests to binary and back
-rwxr-xr-xcheck.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/check.py b/check.py
index f4f99a1dc..c1cbecbf6 100755
--- a/check.py
+++ b/check.py
@@ -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'