diff options
| author | d7ommy <abnalstlll@gmail.com> | 2026-11-24 14:48:39 +0300 |
|---|---|---|
| committer | d7ommy <abnalstlll@gmail.com> | 2026-11-26 00:38:46 +0300 |
| commit | bd6afab9e8b955c57f484896f57acedb5fa06642 (patch) | |
| tree | 6cc599f612572c40eacdd8985e7d005a7a278ad5 /scripts/dev.py | |
| parent | e34ff17e9ade2fb435e98f18b0a8a15a1d99d5f2 (diff) | |
tools: provide one-command synthetic source-only smoke suite (DX-07)
Diffstat (limited to 'scripts/dev.py')
| -rw-r--r-- | scripts/dev.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dev.py b/scripts/dev.py index fada30da4..4170aac63 100644 --- a/scripts/dev.py +++ b/scripts/dev.py | |||
| @@ -13,6 +13,7 @@ from pathlib import Path | |||
| 13 | ROOT = Path(__file__).resolve().parents[1] | 13 | ROOT = Path(__file__).resolve().parents[1] |
| 14 | BOOT_TRACE = "tools/boot_trace.py" | 14 | BOOT_TRACE = "tools/boot_trace.py" |
| 15 | GUEST_SCENE = "scripts/run_guest_scene.py" | 15 | GUEST_SCENE = "scripts/run_guest_scene.py" |
| 16 | SMOKE = "scripts/smoke.py" | ||
| 16 | TOOLS = ( | 17 | TOOLS = ( |
| 17 | ( | 18 | ( |
| 18 | "boot-trace", | 19 | "boot-trace", |
| @@ -29,6 +30,14 @@ TOOLS = ( | |||
| 29 | "Wine when running the Windows loader outside Windows", | 30 | "Wine when running the Windows loader outside Windows", |
| 30 | ), | 31 | ), |
| 31 | ), | 32 | ), |
| 33 | ( | ||
| 34 | "smoke", | ||
| 35 | SMOKE, | ||
| 36 | ( | ||
| 37 | "Python 3.10+", | ||
| 38 | "Synthetic source-only smoke suite (compilation, clean-room, CLI help, fast tests)", | ||
| 39 | ), | ||
| 40 | ), | ||
| 32 | ) | 41 | ) |
| 33 | 42 | ||
| 34 | 43 | ||
| @@ -94,6 +103,8 @@ def main() -> int: | |||
| 94 | return run_producer(BOOT_TRACE, argv[1:]) | 103 | return run_producer(BOOT_TRACE, argv[1:]) |
| 95 | if argv[:1] == ["guest-scene"]: | 104 | if argv[:1] == ["guest-scene"]: |
| 96 | return guest_scene(argv[1:]) | 105 | return guest_scene(argv[1:]) |
| 106 | if argv[:1] == ["smoke"]: | ||
| 107 | return run_producer(SMOKE, argv[1:]) | ||
| 97 | 108 | ||
| 98 | parser = argparse.ArgumentParser(description=__doc__) | 109 | parser = argparse.ArgumentParser(description=__doc__) |
| 99 | commands = parser.add_subparsers(dest="command", required=True) | 110 | commands = parser.add_subparsers(dest="command", required=True) |
| @@ -101,6 +112,7 @@ def main() -> int: | |||
| 101 | inventory.add_argument("--json", action="store_true", help="write a JSON inventory to stdout") | 112 | inventory.add_argument("--json", action="store_true", help="write a JSON inventory to stdout") |
| 102 | commands.add_parser("boot-trace", help="summarize startup and D3D12 boot traces") | 113 | commands.add_parser("boot-trace", help="summarize startup and D3D12 boot traces") |
| 103 | commands.add_parser("guest-scene", help="run the synthetic guest scene with a required --out") | 114 | commands.add_parser("guest-scene", help="run the synthetic guest scene with a required --out") |
| 115 | commands.add_parser("smoke", help="run the synthetic source-only smoke suite (DX-07)") | ||
| 104 | args = parser.parse_args(argv) | 116 | args = parser.parse_args(argv) |
| 105 | 117 | ||
| 106 | result = discover() | 118 | result = discover() |