test(daemon): cover clean --all removing the whole build root

This commit is contained in:
faumaray committed 2026-12-04 03:55:29 +03:00
1 parent 7945db9497
commit eb4af6f3d2
3 files changed
+122 -17

No files matched your search

+13
View File
@@ -1097,6 +1097,19 @@ dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
- Full CTest: **8 / 8 passed** in 242.56 s.
- `clang-format --dry-run --Werror` passes on the changed C++ files.
## Daemon `clean --all` Semantics (GCC 16.2, pin `0002e74`)
```sh
dev cpp-gcc -c cmake --build build/pinned --parallel 8
dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
```
- `Daemon.clean_all_removes_entire_build_root` runs a daemon with `max_requests=2`: it builds, then
`{"op":"clean","all":true}` removes the entire build root (including the socket and state store)
while the already-connected client still receives `ok`/`removed_all`, and the daemon exits on its
own. Asserted: response correct and `build_root` no longer exists.
- Daemon suite: **30 / 30 passed** in 55.81 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).