fuzz: Remove option --export_coverage from test_runner
The coverage statistics are not stable across clang versions
This commit is contained in:
parent
aaaa055ff7
commit
fa3fa27c45
1 changed files with 1 additions and 14 deletions
|
@ -29,11 +29,6 @@ def main():
|
||||||
default="INFO",
|
default="INFO",
|
||||||
help="log events at this level and higher to the console. Can be set to DEBUG, INFO, WARNING, ERROR or CRITICAL. Passing --loglevel DEBUG will output all logs to console.",
|
help="log events at this level and higher to the console. Can be set to DEBUG, INFO, WARNING, ERROR or CRITICAL. Passing --loglevel DEBUG will output all logs to console.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
'--export_coverage',
|
|
||||||
action='store_true',
|
|
||||||
help='If true, export coverage information to files in the seed corpus',
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--valgrind',
|
'--valgrind',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
@ -131,7 +126,6 @@ def main():
|
||||||
corpus=args.seed_dir,
|
corpus=args.seed_dir,
|
||||||
test_list=test_list_selection,
|
test_list=test_list_selection,
|
||||||
build_dir=config["environment"]["BUILDDIR"],
|
build_dir=config["environment"]["BUILDDIR"],
|
||||||
export_coverage=args.export_coverage,
|
|
||||||
use_valgrind=args.valgrind,
|
use_valgrind=args.valgrind,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -152,7 +146,7 @@ def merge_inputs(*, corpus, test_list, build_dir, merge_dir):
|
||||||
logging.debug('Output: {}'.format(output))
|
logging.debug('Output: {}'.format(output))
|
||||||
|
|
||||||
|
|
||||||
def run_once(*, corpus, test_list, build_dir, export_coverage, use_valgrind):
|
def run_once(*, corpus, test_list, build_dir, use_valgrind):
|
||||||
for t in test_list:
|
for t in test_list:
|
||||||
corpus_path = os.path.join(corpus, t)
|
corpus_path = os.path.join(corpus, t)
|
||||||
if t in FUZZERS_MISSING_CORPORA:
|
if t in FUZZERS_MISSING_CORPORA:
|
||||||
|
@ -177,13 +171,6 @@ def run_once(*, corpus, test_list, build_dir, export_coverage, use_valgrind):
|
||||||
logging.info(e.stderr)
|
logging.info(e.stderr)
|
||||||
logging.info("Target \"{}\" failed with exit code {}: {}".format(t, e.returncode, " ".join(args)))
|
logging.info("Target \"{}\" failed with exit code {}: {}".format(t, e.returncode, " ".join(args)))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if not export_coverage:
|
|
||||||
continue
|
|
||||||
for l in output.splitlines():
|
|
||||||
if 'INITED' in l:
|
|
||||||
with open(os.path.join(corpus, t + '_coverage'), 'w', encoding='utf-8') as cov_file:
|
|
||||||
cov_file.write(l)
|
|
||||||
break
|
|
||||||
|
|
||||||
|
|
||||||
def parse_test_list(makefile):
|
def parse_test_list(makefile):
|
||||||
|
|
Loading…
Reference in a new issue