summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-15 14:14:24 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-17 11:57:08 -0800
commit58be64a9b1f00d399383852a858df7e514d7b535 (patch)
treec36894cfd339026984394388d5c1634fa7214782 /check.py
parent2db4c1648bdf2f3382c8daba73665f50b18c6d9a (diff)
downloadbinaryen-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-xcheck.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/check.py b/check.py
index 15804b53e..acc4c926e 100755
--- a/check.py
+++ b/check.py
@@ -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