def main(pool, conf): make_dir(conf.log_dir) js_list = [] for js in list_dir(conf.seed_dir): if (js.endswith('.js') and os.path.getsize(js) < 30 * 1024): # Excludes JS over 3KB js_list += [js] num_js = len(js_list) msg = 'Start executing %d JS files' % (num_js) print_msg(msg, 'INFO') pool_map(pool, exec_eng, js_list, conf=conf)
def main(pool, conf): """ Read from js-test-suite, process with the engine, and write stdout/stderr to data/log/* :param pool: :param conf: :return: """ make_dir(conf.log_dir) js_list = [] for js in list_dir(conf.seed_dir): if (js.endswith('.js') and os.path.getsize(js) < 30 * 1024): # Excludes JS over 3KB js_list += [js] num_js = len(js_list) msg = 'Start executing %d JS files' % (num_js) print_msg(msg, 'INFO') pool_map(pool, exec_eng, js_list, conf=conf)
def main(pool, conf): ast_list = list_dir(conf.ast_dir) ast_data = pool_map(pool, fragmentize, ast_list) return ast_data
def main(pool, conf): ast_list = list_dir(conf.ast_dir) ast_list = pool_map(pool, strip, ast_list, conf=conf)
def fuzz(conf): set_start_method('spawn') p = Pool(conf.num_proc, init_worker) pool_map(p, run, range(conf.num_proc), conf=conf)
def main(pool, conf): ast_list = list_dir(conf.ast_dir) pool_map(pool, normalize, ast_list)