feat(test): support CTest-style fixtures in the test runner
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 13s
VoidBuildSystem CI / fuzz-clang (push) Failing after 11s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 56s

This commit is contained in:
faumaray committed 2026-12-05 12:52:50 +03:00
1 parent 617d783e84
commit 6befa6b5e2
10 files changed
+268 -22

No files matched your search

+12
View File
@@ -1752,6 +1752,18 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
`order.log` never overlap (a manual run shows `a-start a-end b-start b-end`).
- Full CTest: **8 / 8 passed** in 295.18 s.
## CTest-Style Fixtures (GCC 16.2, pin `0002e74`)
- SDK: `.fixture_setup("db")`, `.fixture_required("db")`, `.fixture_cleanup("db")`; serialized by
the descriptor and parsed back into `TargetRecord`/`ResolvedTargetSummary`.
- Runner: requiring tests pull in the fixture's setup/cleanup automatically; the parallel
scheduler enforces setup -> users -> cleanup ordering via prerequisites, and a failed setup
marks dependents as skipped (`SKIPPED '...' (fixture setup failed)`) while the run fails.
- `FullV1Tests.test_fixtures_setup_required_cleanup_ordering` **passed** (4.01 s): with
`--label uses`, `order.log` is exactly `setup, use_*, use_*, cleanup`; with `--label baduse`
the run fails and `bad_use` never passes.
- Full CTest: **8 / 8 passed** in 302.00 s.
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).