blob: d4edb0fd058353cfa3f83c0ee82150b75a92ea68 [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001SUMMARY = "Recipe to trigger execution of all ptest images."
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002HOMEPAGE = "https://www.yoctoproject.org/"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05004LICENSE = "MIT"
5
6inherit features_check nopackages
7REQUIRED_DISTRO_FEATURES = "ptest"
8
9require conf/distro/include/ptest-packagelists.inc
10
William A. Kennington IIIac69b482021-06-02 12:28:27 -070011# Include the full set of ptests
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050012PTESTS = "${PTESTS_FAST} ${PTESTS_SLOW}"
Brad Bishopc342db32019-05-15 21:57:59 -040013
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050014do_testimage[noexec] = "1"
15do_testimage[depends] = "${@' '.join(['core-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS').split()])}"
Brad Bishop19323692019-04-05 15:28:33 -040016
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050017do_build[depends] = "${@' '.join(['core-image-ptest-'+x+':do_build' for x in d.getVar('PTESTS').split()])}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050019# normally image.bbclass would do this
20EXCLUDE_FROM_WORLD = "1"
21
22python () {
23 if bb.utils.contains('IMAGE_CLASSES', 'testimage', True, False, d):
24 bb.build.addtask("do_testimage", "", "", d)
25}