mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 03:18:07 +00:00
Update the libfuzzer-with-options test to use fuzzing_target_options (#2565)
This currently causes the coverage task to time out, ensure that the `runs` parameter is only passed to the fuzzing task and not the coverage task.
This commit is contained in:
@ -76,6 +76,7 @@ class Integration(BaseModel):
|
|||||||
reboot_after_setup: Optional[bool] = Field(default=False)
|
reboot_after_setup: Optional[bool] = Field(default=False)
|
||||||
test_repro: Optional[bool] = Field(default=True)
|
test_repro: Optional[bool] = Field(default=True)
|
||||||
target_options: Optional[List[str]]
|
target_options: Optional[List[str]]
|
||||||
|
fuzzing_target_options: Optional[List[str]]
|
||||||
inject_fake_regression: bool = Field(default=False)
|
inject_fake_regression: bool = Field(default=False)
|
||||||
target_class: Optional[str]
|
target_class: Optional[str]
|
||||||
target_method: Optional[str]
|
target_method: Optional[str]
|
||||||
@ -114,7 +115,7 @@ TARGETS: Dict[str, Integration] = {
|
|||||||
ContainerType.inputs: 2,
|
ContainerType.inputs: 2,
|
||||||
},
|
},
|
||||||
reboot_after_setup=True,
|
reboot_after_setup=True,
|
||||||
target_options=["-runs=10000000"],
|
fuzzing_target_options=["-runs=10000000"],
|
||||||
),
|
),
|
||||||
"linux-libfuzzer-dlopen": Integration(
|
"linux-libfuzzer-dlopen": Integration(
|
||||||
template=TemplateType.libfuzzer,
|
template=TemplateType.libfuzzer,
|
||||||
@ -382,6 +383,7 @@ class TestOnefuzz:
|
|||||||
vm_count=1,
|
vm_count=1,
|
||||||
reboot_after_setup=config.reboot_after_setup or False,
|
reboot_after_setup=config.reboot_after_setup or False,
|
||||||
target_options=config.target_options,
|
target_options=config.target_options,
|
||||||
|
fuzzing_target_options=config.fuzzing_target_options,
|
||||||
)
|
)
|
||||||
elif config.template == TemplateType.libfuzzer_dotnet:
|
elif config.template == TemplateType.libfuzzer_dotnet:
|
||||||
if setup is None:
|
if setup is None:
|
||||||
|
Reference in New Issue
Block a user