diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-09-29 14:56:08 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-14 11:24:57 +0100 |
| commit | a66c929a6a88f7e5799ed82774b5ee62148c1864 (patch) | |
| tree | bd30a28a5a2d4b74d3458383d7a5a3a7cbfb69eb /bitbake/bin | |
| parent | b05d3c8a315cae66ee5c9f7d0b5b9c886e6d3df7 (diff) | |
| download | poky-a66c929a6a88f7e5799ed82774b5ee62148c1864.tar.gz | |
bitbake: bitbake-setup: add tests to bitbake-selftest
Run like this:
alex@Zen2:/srv/work/alex/bitbake$ bin/bitbake-selftest -v bb.tests.setup
test_setup (bb.tests.setup.BitbakeSetupTest.test_setup) ... ok
----------------------------------------------------------------------
Ran 1 test in 9.223s
OK
The test does a basic run-through of init, then status/update
on an unchanged configuration, then status/update on a
configuration changed via new commits to the test layer,
then status/update on configuration changed via the top
level json config file.
Note that nothing whatsoever is fetched from the network;
the test relies entirely on synthetic data contained inside
itself, including minimal stubs for oe-setup-build and
bitbake-config-build. This data is used to create temporary
git repositories then clone them via local filesystem URIs.
Later on this can be supplemented by an oe-selftest that
tests bitbake-setup against real config files in the
official configuration repository and real layers,
templates and fragments.
(Bitbake rev: e3aa3eb46bd3196fa5415fa36e3737636fd6a1c0)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
| -rwxr-xr-x | bitbake/bin/bitbake-selftest | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest index d45c2d406d..fb7c57dd83 100755 --- a/bitbake/bin/bitbake-selftest +++ b/bitbake/bin/bitbake-selftest | |||
| @@ -29,6 +29,7 @@ tests = ["bb.tests.codeparser", | |||
| 29 | "bb.tests.fetch", | 29 | "bb.tests.fetch", |
| 30 | "bb.tests.parse", | 30 | "bb.tests.parse", |
| 31 | "bb.tests.runqueue", | 31 | "bb.tests.runqueue", |
| 32 | "bb.tests.setup", | ||
| 32 | "bb.tests.siggen", | 33 | "bb.tests.siggen", |
| 33 | "bb.tests.utils", | 34 | "bb.tests.utils", |
| 34 | "bb.tests.compression", | 35 | "bb.tests.compression", |
