docs: tests that open windows, and the compositor each one gets

The README's Tests section gains "Tests that open windows": a test that
sets Test::wayland, or .Wayland() on what AddTest returns, runs with a
headless compositor of its own instead of the session's display. It
says what crafter-build gives the compositor and the test and what it
does afterwards; the default weston command, weston 12 as the first
release that takes its --renderer=, and what its renderer and two
options are for; how CRAFTER_BUILD_COMPOSITOR, --compositor= and
`host` choose another; when the compositor fails the test, how a test
that may run without weston is skipped, and where the compositor's
output goes; and what a crafter-build that is killed leaves.
The CLI examples gain --compositor=host, and examples/tests/README.md's
list of the builder's methods gains .Wayland().
This commit is contained in:
Jorijn van der Graaf 2026-11-26 10:37:59 +01:00
commit fcfac0d9cf
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
2 changed files with 20 additions and 0 deletions

View file

@ -37,6 +37,7 @@ builder methods overlay overrides:
- `.Dependencies({ &otherCfg, ... })`
- `.Path(p)` — rebase the test's source-resolution path
- `.LinkFlag(s)` / `.CompileFlag(s)`
- `.Wayland()` — a headless Wayland compositor of the test's own, so that the windows it opens stay off your desktop ([Tests that open windows](../../README.md#tests-that-open-windows))
## Test conventions