summaryrefslogtreecommitdiff
path: root/scripts/fuzz_passes_wast.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-13 12:25:22 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-10-13 12:34:00 -0700
commit98e7ff034aa0c5d370ce3dcca3f48c30eb470ad8 (patch)
treeaac6366de473d2c22fd7de28fbc0d43a8973fd34 /scripts/fuzz_passes_wast.py
parentff360121bf73d969af14ad4a8e42d7fe052df08a (diff)
downloadbinaryen-98e7ff034aa0c5d370ce3dcca3f48c30eb470ad8.tar.gz
binaryen-98e7ff034aa0c5d370ce3dcca3f48c30eb470ad8.tar.bz2
binaryen-98e7ff034aa0c5d370ce3dcca3f48c30eb470ad8.zip
pass/wast fuzzer improvements
Diffstat (limited to 'scripts/fuzz_passes_wast.py')
-rw-r--r--scripts/fuzz_passes_wast.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/fuzz_passes_wast.py b/scripts/fuzz_passes_wast.py
index 5ec032de1..7691cbbf5 100644
--- a/scripts/fuzz_passes_wast.py
+++ b/scripts/fuzz_passes_wast.py
@@ -53,10 +53,11 @@ args = sys.argv[2:]
def run():
try:
- print 'run', ['bin/wasm-opt', wast]
- subprocess.check_call(['bin/wasm-opt', wast])
+ cmd = ['bin/wasm-opt', wast]
+ print 'run', cmd
+ subprocess.check_call(cmd, stderr=open('/dev/null'))
except Exception, e:
- print ">>> !!! ", e, " !!!"
+ return ">>> !!! ", e, " !!!"
return 'ok'
original_wast = None
@@ -105,6 +106,7 @@ try:
tested = set()
def pick_passes():
+ # return '--waka'.split(' ')
ret = []
while 1:
str_ret = str(ret)