Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 1 | SUMMARY = "Recipe to trigger execution of all ptest images." |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | HOMEPAGE = "https://www.yoctoproject.org/" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 3 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 4 | LICENSE = "MIT" |
| 5 | |
| 6 | inherit features_check nopackages |
| 7 | REQUIRED_DISTRO_FEATURES = "ptest" |
| 8 | |
| 9 | require conf/distro/include/ptest-packagelists.inc |
| 10 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 11 | # Include the full set of ptests |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 12 | PTESTS = "${PTESTS_FAST} ${PTESTS_SLOW}" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 14 | do_testimage[noexec] = "1" |
| 15 | do_testimage[depends] = "${@' '.join(['core-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS').split()])}" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 16 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 17 | do_build[depends] = "${@' '.join(['core-image-ptest-'+x+':do_build' for x in d.getVar('PTESTS').split()])}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 19 | # normally image.bbclass would do this |
| 20 | EXCLUDE_FROM_WORLD = "1" |
| 21 | |
| 22 | python () { |
| 23 | if bb.utils.contains('IMAGE_CLASSES', 'testimage', True, False, d): |
| 24 | bb.build.addtask("do_testimage", "", "", d) |
| 25 | } |