Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 1 | inherit features_check |
| 2 | REQUIRED_DISTRO_FEATURES = "ptest" |
| 3 | |
| 4 | require core-image-minimal.bb |
| 5 | require conf/distro/include/ptest-packagelists.inc |
| 6 | |
| 7 | DESCRIPTION += "Also including the ${MCNAME} ptest package." |
| 8 | HOMEPAGE = "https://www.yoctoproject.org/" |
| 9 | |
| 10 | PTESTS = "${PTESTS_SLOW} ${PTESTS_FAST}" |
| 11 | |
| 12 | IMAGE_INSTALL:append = " ${MCNAME}-ptest openssh" |
| 13 | |
| 14 | BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS').split()])}" |
| 15 | |
| 16 | # The image can sufficiently large (~1.8GB) that we need to be careful that it fits in a live |
| 17 | # image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the |
| 18 | # box) and explicitly add up to 1500MB. |
| 19 | # strace-ptest in particular needs more than 500MB |
| 20 | IMAGE_OVERHEAD_FACTOR = "1.0" |
| 21 | IMAGE_ROOTFS_EXTRA_SPACE = "324288" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 22 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-mdadm = "1524288" |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 23 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-strace = "1024288" |
| 24 | IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-lttng-tools = "1524288" |
| 25 | |
| 26 | # ptests need more memory than standard to avoid the OOM killer |
| 27 | QB_MEM = "-m 1024" |
| 28 | QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 29 | QB_MEM:virtclass-mcextend-python3 = "-m 2048" |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 30 | QB_MEM:virtclass-mcextend-python3-cryptography = "-m 4096" |
| 31 | |
| 32 | TEST_SUITES = "ping ssh parselogs ptest" |
| 33 | |
| 34 | # Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places |
| 35 | PTEST_EXPECT_FAILURE = "1" |
| 36 | |
| 37 | python () { |
| 38 | if not d.getVar("MCNAME"): |
| 39 | raise bb.parse.SkipRecipe("No class extension set") |
| 40 | } |
| 41 | |