8 Commits

Author SHA1 Message Date
Khem Raj
682fa4b2f0 ptest-image: Switch to using core-image-minimal
Keeps the dependencies really to minimum.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit d8d5444c25475f48df910888703e65edfece59db)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:05 -04:00
Khem Raj
be0088da5a images: Rename ptest images to rhyme with oe-core ptest images
Easy to understand for new-comers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 7b5cb622b4e40ceb7b150c83ee98c40fd24ab9aa)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:05 -04:00
Khem Raj
3adc76cf05 images: Rename <layer>-image to <layer>-image-all
These are test images to build all recipes in layer. Renaming them makes
them refect what they are. Moreover we can rename the ptest images to
match OE-Core naming conventions for meta-oe/meta-perl/meta-python

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0cb018059499f7531749ee1d5d1cbb02a6cf3f0a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:05 -04:00
Khem Raj
4e6ae41f0e images: Delete layer specific base images
These were essentially duplicates of core-image-minimal, however
core-image-base is a better baseline for upper layers, so switched the
consumers of these images to use core-image-base

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e88b777cbecd85ff7d2916209774354a6a458101)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:05 -04:00
Khem Raj
a08bf20991 images: Inherit from core-image-base
We really do not need to define base images which already exist in core
layer, reuse them here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit ef9d73fced12e7b2dab485f0443cec84e55d016b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:05 -04:00
Tim Orling
80e9601cc8 meta-python-ptest*-image: enable BBCLASSEXTEND parallel execution
Similar to "core-image-ptest: Switch to BBCLASSEXTEND parallel execution"

Refactor meta-python-ptest-image.bb for an image per ptest in the form of
meta-python-ptest-image-XXX using class extensions.

* Add meta-python-ptest-all-image.bb depends on ALL meta-python-ptest-image-XXX in meta-python
* Add meta-python-ptest-fast-image.bb depends on meta-python ptests which take less than ~30s

This allows parallel execution of the tests.

The downside to this approach is the parsing time of an image generating
this number of class extensions is slow but making it easier to execute
and collect test data should outweigh that.

A useful advantage is that the dependencies of each ptest package are
checked/tested individually.

Add to local.conf:
IMAGE_CLASSES += "testimage"

All the meta-python-ptest-image-XXX can be built with:
$ bitbake meta-python-ptest-all-image

Subsequently, all the ptest images can be run with:
$ bitbake -c testimage meta-python-ptest-all-image

You will likely want to limit the number of parallel image tests:

BB_NUMBER_THREADS = "4"

based on the number of TAP devices you have defined or the number of simultaneous
QEMU sessions your server can support.

Results can be summarized with:

$ resulttool report tmp/log/oeqa/testresults.json

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-04 13:39:45 -07:00
Khem Raj
e43a9898fc meta-python-image,meta-python-ptest-image: Use python3 packagegroups
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2020-09-10 01:24:34 -07:00
Armin Kuster
5b8f0a7085 meta-python: add pkg groups and image for testing
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-13 07:51:58 -08:00