MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / main

Function main

scripts/build_fuzzers.py:8–39  ·  view source on GitHub ↗

Build fuzzers idempotently in a given folder.

()

Source from the content-addressed store, hash-verified

6
7
8def main():
9 """Build fuzzers idempotently in a given folder."""
10 parser = argparse.ArgumentParser()
11 parser.add_argument("folder")
12 args = parser.parse_args()
13 folder = Path(args.folder)
14 if not folder.exists():
15 print(f"Cloning google/oss-fuzz into: {folder}")
16 folder.mkdir(parents=True)
17 subprocess.check_call(
18 [
19 "git",
20 "clone",
21 "--single-branch",
22 "https://github.com/google/oss-fuzz",
23 str(folder),
24 ]
25 )
26 else:
27 print(f"Using google/oss-fuzz in: {folder}")
28 if not (folder / "build").exists():
29 print(f"Building fuzzers in: {folder / 'build'}")
30 subprocess.check_call(
31 [
32 "python",
33 str(folder / "infra" / "helper.py"),
34 "build_fuzzers",
35 "markdown-it-py",
36 ]
37 )
38 else:
39 print(f"Using existing fuzzers in: {folder / 'build'}")
40
41
42if __name__ == "__main__":

Callers 1

build_fuzzers.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…