poky/meta-selftest
Alexander Kanavin 2187e823ad selftest/sstatetests: add tests for 'bitbake -S printdiff'
'bitbake -S printdiff' is a useful diagnostic facility for finding out
why sstate is not being reused, but until now it had no tests that would
ensure it works. This commit adds three basic scenarios:

1. make a change in a really basic, common recipe that is at the very root
of dependency trees (quilt-native), and ensure that change is correctly discovered when
building an image.

2. make a change in gcc-source recipe, which is somewhat special
(operates in work-shared), and ensure that gcc-runtime builds track
that down as well.

3. make a change in base_do_configure() definition from base.bbclass,
which is not recipe-specific, but affects many basic recipes, and ensure that
is correctly reported as well.

The test itself actually runs twice:
- first against a fully populated build directory, where
the printdiff code is guaranteed to find the correct previous
stamp that can be compared with in a predictable manner.

- then in an empty build directory where the printdiff code
goes to look in the sstate cache, and so the existence of the
previous signature can be tested, but not the difference with it
(what the exact difference would be is unpredictable as the
sstate cache is indeed shared between many builds).

(From OE-Core rev: 7a7d76aa8a8d590ebc99156f9f4b9535cdf868c7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 10:53:43 +01:00
..
classes selftest/sstatetests: add tests for 'bitbake -S printdiff' 2023-10-27 10:53:43 +01:00
conf layer.conf: Update to nanbield release series 2023-09-10 08:58:53 +01:00
files meta-selftest/files: add ptest to static-passwd/-group 2023-02-27 22:53:56 +00:00
lib oeqa dnf_runtime.py: fix HTTP server IP address and port 2023-09-12 12:37:56 +01:00
recipes-devtools rust: provide examples for C library generation in rust 2023-08-21 16:15:35 +01:00
recipes-extended/zvariant zvariant: add ptest feature for zvariant test suite 2023-05-05 11:07:26 +01:00
recipes-test selftest/sstatetests: add tests for 'bitbake -S printdiff' 2023-10-27 10:53:43 +01:00
wic selftest: wic: Add test for --part-name argument 2023-04-13 11:56:07 +01:00
README meta-selftest: create a new test layer to be used by oe-selftest script 2013-12-03 17:45:50 +00:00

This layer is intended as test layer, used by scripts/oe-selftest and it's probably a mistake to include it in your builds (unless you want to run the script).