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:
parent
0a91b128cf
commit
fcfac0d9cf
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue