diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-15 14:14:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-17 11:57:08 -0800 |
commit | 58be64a9b1f00d399383852a858df7e514d7b535 (patch) | |
tree | c36894cfd339026984394388d5c1634fa7214782 /check.py | |
parent | 2db4c1648bdf2f3382c8daba73665f50b18c6d9a (diff) | |
download | binaryen-58be64a9b1f00d399383852a858df7e514d7b535.tar.gz binaryen-58be64a9b1f00d399383852a858df7e514d7b535.tar.bz2 binaryen-58be64a9b1f00d399383852a858df7e514d7b535.zip |
print check.py warnings at the end, where they have a chance to be noticed
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -75,14 +75,16 @@ if len(requested) == 0: else: tests = requested[:] +warnings = [] + if not interpreter: - print 'warning: no interpreter provided (not testing spec interpreter validation)' + warnings.append('warning: no interpreter provided (not testing spec interpreter validation)') if not has_node: - print 'warning: no node found (not checking proper js form)' + warnings.append( 'warning: no node found (not checking proper js form)') if not has_mozjs: - print 'warning: no mozjs found (not checking asm.js validation)' + warnings.append( 'warning: no mozjs found (not checking asm.js validation)') if not has_emcc: - print 'warning: no emcc found (not checking emscripten/binaryen integration)' + warnings.append('warning: no emcc found (not checking emscripten/binaryen integration)') print '[ checking asm2wasm testcases... ]\n' @@ -432,3 +434,6 @@ if has_emcc: fail(out, expected) print '\n[ success! ]' + +if warnings: + print warnings |