Skip to content

Commit

Permalink
Prepare a temp OSS-Fuzz at the beginning of introspector.py (#26)
Browse files Browse the repository at this point in the history
This automatically clones a temporary `OSS-Fuzz` for users and prepares
it for `introspector.py`.
  • Loading branch information
DonggeLiu authored Jan 29, 2024
1 parent cde3ea2 commit 4e3a5ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data_prep/introspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

from data_prep import project_src
from experiment import benchmark as benchmarklib
from experiment import oss_fuzz_checkout

TIMEOUT = 10
INTROSPECTOR_ENDPOINT = 'https://introspector.oss-fuzz.com/api'
Expand Down Expand Up @@ -311,6 +312,8 @@ def get_project_funcs(project_name: str) -> Dict[str, List[Dict]]:
if len(sys.argv) > 2:
max_num_function = int(sys.argv[2])

oss_fuzz_checkout.clone_oss_fuzz()
oss_fuzz_checkout.postprocess_oss_fuzz()
benchmarks = populate_benchmarks_using_introspector(sys.argv[1],
max_num_function)
if benchmarks:
Expand Down

0 comments on commit 4e3a5ab

Please sign in to comment.