summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-05-07 20:48:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-11 11:54:25 +0100
commita6f18016c40a824405ed80ac57476c87e111cf4c (patch)
tree5213455b0368fc54ade90ece5c6ab02361b4b7dc /meta/classes/ptest.bbclass
parentbb490c7ea9170fc1b3c2dd15466daf6a9fad735c (diff)
downloadpoky-a6f18016c40a824405ed80ac57476c87e111cf4c.tar.gz
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>
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r--meta/classes/ptest.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 47611edea2..466916299a 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -20,6 +20,8 @@ RRECOMMENDS_${PN}-ptest += "ptest-runner"
20 20
21PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}" 21PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}"
22 22
23require conf/distro/include/ptest-packagelists.inc
24
23do_configure_ptest() { 25do_configure_ptest() {
24 : 26 :
25} 27}
@@ -116,4 +118,13 @@ python () {
116 if not(d.getVar('PTEST_ENABLED') == "1"): 118 if not(d.getVar('PTEST_ENABLED') == "1"):
117 for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']: 119 for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']:
118 bb.build.deltask(i, d) 120 bb.build.deltask(i, d)
121
122 # This checks that ptest package is actually included
123 # in standard oe-core ptest images - only for oe-core recipes
124 if not 'meta/recipes' in d.getVar('FILE') or not(d.getVar('PTEST_ENABLED') == "1"):
125 return
126
127 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'),d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split()
128 if (d.getVar('PN') + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests:
129 bb.error("Recipe %s supports ptests but is not included in oe-core's conf/distro/include/ptest-packagelists.inc" % d.getVar("PN"))
119} 130}