]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/selftest/sstatetests: re-work CDN tests, add local cache tests
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 14 Dec 2023 13:45:20 +0000 (14:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Dec 2023 19:04:39 +0000 (19:04 +0000)
commit2a7c653a2eee85e5791a8fdc15857367f0ed0bd9
treea38f62c421a77fc146b9ea0d3e93513dd688fb59
parent7ebd5247f6e040234ca4c8b3b1239843386bb79b
oeqa/selftest/sstatetests: re-work CDN tests, add local cache tests

With the rework of printdiff, it is not longer useful for checking
absence of sstate objects in a remote http cache, as it would only
report the top level missing signatures, and leave the recursive
investigation to diffsigs (which relies on ability to list cache
files - not available over http).

The CDN check can be performed by simply running 'bitbake -DD -n'
which is very verbose, but neverthless reports the amount
of missing sstate objects and what they are in a way that can
be programmatically extracted and checked (as suggested by RP).

This also adds local sstate tests, as they can be useful to
determine whether the missing cdn objects were never created or
erroneously cleaned up, or if they were created but didn't propagate
to cdn.

[YOCTO #15303]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/sstatetests.py