mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 04:18:07 +00:00
Switch over to new coverage
task (#2741)
This commit is contained in:
@ -979,7 +979,9 @@ class Tasks(Endpoint):
|
||||
colocate: bool = False,
|
||||
report_list: Optional[List[str]] = None,
|
||||
minimized_stack_depth: Optional[int] = None,
|
||||
coverage_filter: Optional[str] = None,
|
||||
function_allowlist: Optional[str] = None,
|
||||
module_allowlist: Optional[str] = None,
|
||||
source_allowlist: Optional[str] = None,
|
||||
) -> models.Task:
|
||||
"""
|
||||
Create a task
|
||||
@ -1055,7 +1057,9 @@ class Tasks(Endpoint):
|
||||
report_list=report_list,
|
||||
preserve_existing_outputs=preserve_existing_outputs,
|
||||
minimized_stack_depth=minimized_stack_depth,
|
||||
coverage_filter=coverage_filter,
|
||||
function_allowlist=function_allowlist,
|
||||
module_allowlist=module_allowlist,
|
||||
source_allowlist=source_allowlist,
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -68,7 +68,9 @@ class Libfuzzer(Command):
|
||||
check_fuzzer_help: bool = True,
|
||||
expect_crash_on_failure: bool = False,
|
||||
minimized_stack_depth: Optional[int] = None,
|
||||
coverage_filter: Optional[str] = None,
|
||||
function_allowlist: Optional[str] = None,
|
||||
module_allowlist: Optional[str] = None,
|
||||
source_allowlist: Optional[str] = None,
|
||||
analyzer_exe: Optional[str] = None,
|
||||
analyzer_options: Optional[List[str]] = None,
|
||||
analyzer_env: Optional[Dict[str, str]] = None,
|
||||
@ -218,7 +220,9 @@ class Libfuzzer(Command):
|
||||
debug=debug,
|
||||
colocate=colocate_all_tasks or colocate_secondary_tasks,
|
||||
check_fuzzer_help=check_fuzzer_help,
|
||||
coverage_filter=coverage_filter,
|
||||
function_allowlist=function_allowlist,
|
||||
module_allowlist=module_allowlist,
|
||||
source_allowlist=source_allowlist,
|
||||
)
|
||||
|
||||
report_containers = [
|
||||
@ -323,7 +327,9 @@ class Libfuzzer(Command):
|
||||
check_fuzzer_help: bool = True,
|
||||
expect_crash_on_failure: bool = False,
|
||||
minimized_stack_depth: Optional[int] = None,
|
||||
coverage_filter: Optional[File] = None,
|
||||
function_allowlist: Optional[File] = None,
|
||||
module_allowlist: Optional[File] = None,
|
||||
source_allowlist: Optional[File] = None,
|
||||
analyzer_exe: Optional[str] = None,
|
||||
analyzer_options: Optional[List[str]] = None,
|
||||
analyzer_env: Optional[Dict[str, str]] = None,
|
||||
@ -396,12 +402,26 @@ class Libfuzzer(Command):
|
||||
|
||||
target_exe_blob_name = helper.setup_relative_blob_name(target_exe, setup_dir)
|
||||
|
||||
if coverage_filter:
|
||||
coverage_filter_blob_name: Optional[str] = helper.setup_relative_blob_name(
|
||||
coverage_filter, setup_dir
|
||||
if function_allowlist:
|
||||
function_allowlist_blob_name: Optional[
|
||||
str
|
||||
] = helper.setup_relative_blob_name(function_allowlist, setup_dir)
|
||||
else:
|
||||
function_allowlist_blob_name = None
|
||||
|
||||
if module_allowlist:
|
||||
module_allowlist_blob_name: Optional[str] = helper.setup_relative_blob_name(
|
||||
module_allowlist, setup_dir
|
||||
)
|
||||
else:
|
||||
coverage_filter_blob_name = None
|
||||
module_allowlist_blob_name = None
|
||||
|
||||
if source_allowlist:
|
||||
source_allowlist_blob_name: Optional[str] = helper.setup_relative_blob_name(
|
||||
source_allowlist, setup_dir
|
||||
)
|
||||
else:
|
||||
source_allowlist_blob_name = None
|
||||
|
||||
self._create_tasks(
|
||||
job=helper.job,
|
||||
@ -425,7 +445,9 @@ class Libfuzzer(Command):
|
||||
check_fuzzer_help=check_fuzzer_help,
|
||||
expect_crash_on_failure=expect_crash_on_failure,
|
||||
minimized_stack_depth=minimized_stack_depth,
|
||||
coverage_filter=coverage_filter_blob_name,
|
||||
function_allowlist=function_allowlist_blob_name,
|
||||
module_allowlist=module_allowlist_blob_name,
|
||||
source_allowlist=source_allowlist_blob_name,
|
||||
analyzer_exe=analyzer_exe,
|
||||
analyzer_options=analyzer_options,
|
||||
analyzer_env=analyzer_env,
|
||||
|
Reference in New Issue
Block a user