mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
ptest: add a test for orphaned ptests, and restore ones found by it
Particularly, numactl, numpy and libseccomp are disabled for now due to failures or lack of qemu support. The rest have been verified to pass quickly. [RP: Fix multilib recipe handling] (From OE-Core rev: 8bb5da87000ade519529e44181448244bd94d4f5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bb490c7ea9
commit
a6f18016c4
@@ -20,6 +20,8 @@ RRECOMMENDS_${PN}-ptest += "ptest-runner"
|
||||
|
||||
PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}"
|
||||
|
||||
require conf/distro/include/ptest-packagelists.inc
|
||||
|
||||
do_configure_ptest() {
|
||||
:
|
||||
}
|
||||
@@ -116,4 +118,13 @@ python () {
|
||||
if not(d.getVar('PTEST_ENABLED') == "1"):
|
||||
for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']:
|
||||
bb.build.deltask(i, d)
|
||||
|
||||
# This checks that ptest package is actually included
|
||||
# in standard oe-core ptest images - only for oe-core recipes
|
||||
if not 'meta/recipes' in d.getVar('FILE') or not(d.getVar('PTEST_ENABLED') == "1"):
|
||||
return
|
||||
|
||||
enabled_ptests = " ".join([d.getVar('PTESTS_FAST'),d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split()
|
||||
if (d.getVar('PN') + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests:
|
||||
bb.error("Recipe %s supports ptests but is not included in oe-core's conf/distro/include/ptest-packagelists.inc" % d.getVar("PN"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user