summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-13 18:02:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-13 18:02:37 -0800
commitcca4d2b10054906d1603c6a4b7fba91bd495fb50 (patch)
tree2efb9d236fdd39ae956411a24b64a9061fe7236e /check.py
parent3334c090c73f861a1b94145dd6105255d7d21a6b (diff)
downloadbinaryen-cca4d2b10054906d1603c6a4b7fba91bd495fb50.tar.gz
binaryen-cca4d2b10054906d1603c6a4b7fba91bd495fb50.tar.bz2
binaryen-cca4d2b10054906d1603c6a4b7fba91bd495fb50.zip
more testing prep
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/check.py b/check.py
index ba2400978..7ed6afa63 100755
--- a/check.py
+++ b/check.py
@@ -285,11 +285,17 @@ print '\n[ checking binary format testcases... ]\n'
for wast in tests:
if wast.endswith('.wast') and not wast in ['unit.wast']: # blacklist some known failures
cmd = [os.path.join('bin', 'wasm-as'), os.path.join('test', wast), '-o', 'a.wasm']
- print cmd
+ print ' '.join(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')
+ #cmd = [os.path.join('bin', 'wasm-dis'), 'a.wasm', '-o', 'a.wast']
+ #print ' '.join(cmd)
+ #if os.path.exists('a.wast'): os.unlink('a.wast')
+ #subprocess.check_call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ #assert os.path.exists('a.wast')
+
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/.']