up
This commit is contained in:
@@ -24,7 +24,10 @@ SCHEMAS = {
|
|||||||
"case": ROOT / "schemas" / "case.schema.yaml",
|
"case": ROOT / "schemas" / "case.schema.yaml",
|
||||||
"entrypoints": ROOT / "schemas" / "entrypoints.schema.yaml",
|
"entrypoints": ROOT / "schemas" / "entrypoints.schema.yaml",
|
||||||
"truth": ROOT / "schemas" / "truth.schema.json",
|
"truth": ROOT / "schemas" / "truth.schema.json",
|
||||||
|
"coverage": ROOT / "schemas" / "coverage.schema.json",
|
||||||
|
"trace": ROOT / "schemas" / "trace.schema.json",
|
||||||
"submission": ROOT / "schemas" / "submission.schema.json",
|
"submission": ROOT / "schemas" / "submission.schema.json",
|
||||||
|
"manifest": ROOT / "benchmark" / "schemas" / "benchmark-manifest.schema.json",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,7 +63,10 @@ def collect_all(directory: Path) -> Iterable[Tuple[str, Path]]:
|
|||||||
"case": ("case",),
|
"case": ("case",),
|
||||||
"entrypoints": ("entrypoints", "entrypoint"),
|
"entrypoints": ("entrypoints", "entrypoint"),
|
||||||
"truth": ("truth",),
|
"truth": ("truth",),
|
||||||
|
"coverage": ("coverage",),
|
||||||
|
"trace": ("trace", "traces"),
|
||||||
"submission": ("submission",),
|
"submission": ("submission",),
|
||||||
|
"manifest": ("manifest",),
|
||||||
}
|
}
|
||||||
for path in sorted(directory.rglob("*")):
|
for path in sorted(directory.rglob("*")):
|
||||||
if not path.is_file():
|
if not path.is_file():
|
||||||
@@ -76,7 +82,16 @@ def parse_args():
|
|||||||
parser = argparse.ArgumentParser(description="Validate reachability benchmark files against schemas.")
|
parser = argparse.ArgumentParser(description="Validate reachability benchmark files against schemas.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"kind",
|
"kind",
|
||||||
choices=["case", "entrypoints", "truth", "submission", "all"],
|
choices=[
|
||||||
|
"case",
|
||||||
|
"entrypoints",
|
||||||
|
"truth",
|
||||||
|
"coverage",
|
||||||
|
"trace",
|
||||||
|
"submission",
|
||||||
|
"manifest",
|
||||||
|
"all",
|
||||||
|
],
|
||||||
help="Which schema to validate against or 'all' to auto-detect in a directory",
|
help="Which schema to validate against or 'all' to auto-detect in a directory",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user