summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/check.py b/check.py
index 94cd663d9..1395a306c 100755
--- a/check.py
+++ b/check.py
@@ -278,6 +278,16 @@ if torture:
if unexpected_result_count:
fail(unexpected_result_count, 0)
+print '\n[ checking wasm-as testcases... ]\n'
+
+for wast in tests:
+ if wast.endswith('.wast'):
+ cmd = [os.path.join('bin', 'wasm-as'), os.path.join('test', wast), '-o', 'a.wasm']
+ print cmd
+ if os.path.exists('a.wasm'): os.unlink('a.wasm')
+ subprocess.check_call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ assert os.path.exists('a.wasm')
+
print '\n[ checking example testcases... ]\n'
cmd = [os.environ.get('CXX') or 'g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g', '-lsupport', '-Llib/.']