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 /docs/testing.md | |
| parent | e34ff17e9ade2fb435e98f18b0a8a15a1d99d5f2 (diff) | |
tools: provide one-command synthetic source-only smoke suite (DX-07)
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 671c5548c..aee2c6f5e 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -55,6 +55,32 @@ This page collects the setup steps and the problems testers have run into so far | |||
| 55 | - macOS: `brew install llvm molten-vk vulkan-headers vulkan-loader spirv-tools vulkan-tools`. The test programs | 55 | - macOS: `brew install llvm molten-vk vulkan-headers vulkan-loader spirv-tools vulkan-tools`. The test programs |
| 56 | load MoltenVK directly; set `LEONIDA_VULKAN_LOADER` to use the Vulkan loader instead. | 56 | load MoltenVK directly; set `LEONIDA_VULKAN_LOADER` to use the Vulkan loader instead. |
| 57 | 57 | ||
| 58 | ## Source-only smoke verification (DX-07) | ||
| 59 | |||
| 60 | To verify a checkout quickly on any platform without game files, retail binaries, or hardware prerequisites: | ||
| 61 | |||
| 62 | ```bash | ||
| 63 | # Standard-library sanity and toolchain discovery (Windows, Linux, macOS) | ||
| 64 | python -I scripts/smoke.py --prereqs-only | ||
| 65 | |||
| 66 | # Fast source-only smoke suite (< 1 second) | ||
| 67 | python -I scripts/smoke.py --quick | ||
| 68 | |||
| 69 | # Full synthetic smoke validation (compileall, no-game-data, CLI help, unit tests) | ||
| 70 | python -I scripts/smoke.py | ||
| 71 | |||
| 72 | # Machine-readable output for scripts and CI | ||
| 73 | python -I scripts/smoke.py --json | ||
| 74 | |||
| 75 | # Also available through the unified developer entry point | ||
| 76 | python -I scripts/dev.py smoke --quick | ||
| 77 | ``` | ||
| 78 | |||
| 79 | Exit codes: | ||
| 80 | - `0`: all requested synthetic checks passed. | ||
| 81 | - `1`: one or more synthetic checks or tests failed. | ||
| 82 | - `2`: required environment prerequisites missing (e.g., Python < 3.10) or invalid options. | ||
| 83 | |||
| 58 | ## Build the test programs | 84 | ## Build the test programs |
| 59 | 85 | ||
| 60 | On a Windows runtime build with Vulkan enabled, CMake only registers `d3d12_translated_draw`, `d3d12_rect_list`, | 86 | On a Windows runtime build with Vulkan enabled, CMake only registers `d3d12_translated_draw`, `d3d12_rect_list`, |