diff options
Diffstat (limited to 'meta/recipes-core/images/core-image-ptest-all.bb')
-rw-r--r-- | meta/recipes-core/images/core-image-ptest-all.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/images/core-image-ptest-all.bb b/meta/recipes-core/images/core-image-ptest-all.bb new file mode 100644 index 0000000000..d4edb0fd05 --- /dev/null +++ b/meta/recipes-core/images/core-image-ptest-all.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "Recipe to trigger execution of all ptest images." | ||
2 | HOMEPAGE = "https://www.yoctoproject.org/" | ||
3 | |||
4 | LICENSE = "MIT" | ||
5 | |||
6 | inherit features_check nopackages | ||
7 | REQUIRED_DISTRO_FEATURES = "ptest" | ||
8 | |||
9 | require conf/distro/include/ptest-packagelists.inc | ||
10 | |||
11 | # Include the full set of ptests | ||
12 | PTESTS = "${PTESTS_FAST} ${PTESTS_SLOW}" | ||
13 | |||
14 | do_testimage[noexec] = "1" | ||
15 | do_testimage[depends] = "${@' '.join(['core-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS').split()])}" | ||
16 | |||
17 | do_build[depends] = "${@' '.join(['core-image-ptest-'+x+':do_build' for x in d.getVar('PTESTS').split()])}" | ||
18 | |||
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 | } | ||