]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
selftest/sstatetests: fix up printdiff test to match rework of printdiff logic
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 18 Dec 2023 08:43:58 +0000 (09:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Jan 2024 16:32:03 +0000 (16:32 +0000)
commit0ef7cf324718412c5b6c376acfbc4079ecd7d465
tree36fbed52490438b66d89083f64484c34c129d8f1
parentb619197bd52a4a99a9989e7ea6fb7032415b1e42
selftest/sstatetests: fix up printdiff test to match rework of printdiff logic

Other than the formatting changes, there are two functional ones:

- use perlcross instead of quilt, as quilt is special in the sense
of being excluded from task hash calculcations. perlcross is a full
participant.

- run the full test (local + sstate) for gcc do_preconfiure change
as the necessary fix has been implemented
(sstatesig/find_siginfo: special-case gcc-source when looking in sstate caches)

Note that when several tasks are found to have changed (as is the case
when base do_configure is adjusted), find_siginfo() runs
glob.glob("*/*/*taskname*") against autobuilder sstate cache for each
of those tasks (six or seven times). This is an expensive operation
taking several minutes. I left it in for now, but if it's proven too slow
the test would have to be reduced to checking a specific base recipe
(e.g. zstd-native) rather than a distant image target.

[YOCTO #15289]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/perlcross/perlcross_%.bbappend [moved from meta-selftest/recipes-test/quilt-native/quilt-native_%.bbappend with 100% similarity]
meta/lib/oeqa/selftest/cases/sstatetests.py