Re: [yocto-patches] [wic][PATCH v3 01/10] tests: add the standalone test-suite skeleton
Paul Barker <[email protected]> Mon, 06 Jul 2026 09:18:00 +0100
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2026-07-01 at 03:40 -0400, Trevor Woerner via lists.yoctoproject.org wrote: > wic currently has no test mechanism of its own; it relies on the > oe-selftest from oe-core for all its testing, which means a full > bitbake build is needed to exercise even pure-Python logic. This > commit lays the groundwork for a small standalone suite that runs > from a plain checkout with nothing but pytest, so that logic can be > pinned down and kept stable as the code evolves. > > This commit adds the skeleton only; it does not add any tests. > > What this adds: > > - pyproject.toml: a "tests" optional-dependency group (pytest only) > so that "pip install -e .[tests]" pulls in what the suite needs, > plus a [tool.pytest.ini_options] section. The pytest options keep > a test's scratch directory only when that test fails, so repeated > runs do not accumulate leftover files. > > - tests/unit/ and tests/docs/: the directories that hold the > in-process unit suites and the suite documentation. Git cannot > track an empty directory, so a placeholder .gitkeep is committed > in each to create it. The .gitkeep files have no content and are > removed once real files land in those directories. > > - .gitignore: ignore the .pytest_cache/ directory that pytest > writes at the top of the checkout. > > - README.md: a Testing section pointing at the suite and at > tests/docs/, and a tests/* entry in the project layout list. > > AI-Generated: codex/claude-opus 4.7 (xhigh) > Signed-off-by: Trevor Woerner <[email protected]> Reviewed-by: Paul Barker <[email protected]> Best regards, -- Paul Barker
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- iIcEABYKAC8WIQSzjPXf5Y1BDWhU2iCrY1Tsnbr0bgUCaktkuBEccGF1bEBwYmFy a2VyLmRldgAKCRCrY1Tsnbr0buyNAQDQwr+GfesBgRKjQIOepTFHzcyKaCbiZzzr myPmLt+6+QEAwRaVv7LY9pIitB1zxntSD/ZUTBNtAdpPeg6Xrn+IIQE= =LMgC -----END PGP SIGNATURE-----