blob: 72081f938dea4be65fa82fb86db22a5dec2b78a4 [file] [log] [blame]
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05001inherit features_check
2REQUIRED_DISTRO_FEATURES = "ptest"
3
4require core-image-minimal.bb
5require conf/distro/include/ptest-packagelists.inc
6
7DESCRIPTION += "Also including the ${MCNAME} ptest package."
Andrew Geissler5082cc72023-09-11 08:41:39 -04008SUMMARY ?= "${MCNAME} ptest image."
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05009HOMEPAGE = "https://www.yoctoproject.org/"
10
11PTESTS = "${PTESTS_SLOW} ${PTESTS_FAST}"
12
13IMAGE_INSTALL:append = " ${MCNAME}-ptest openssh"
14
15BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS').split()])}"
16
17# The image can sufficiently large (~1.8GB) that we need to be careful that it fits in a live
18# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
19# box) and explicitly add up to 1500MB.
20# strace-ptest in particular needs more than 500MB
21IMAGE_OVERHEAD_FACTOR = "1.0"
22IMAGE_ROOTFS_EXTRA_SPACE = "324288"
Andrew Geissler8f840682023-07-21 09:09:43 -050023IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-mdadm = "1524288"
Patrick Williams73bd93f2024-02-20 08:07:48 -060024IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-strace = "1524288"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050025IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-lttng-tools = "1524288"
26
Andrew Geissler220dafd2023-10-04 10:18:08 -050027# tar-ptest in particular needs more space
28IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-tar = "1524288"
29
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050030# ptests need more memory than standard to avoid the OOM killer
31QB_MEM = "-m 1024"
32QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096"
Andrew Geissler8f840682023-07-21 09:09:43 -050033QB_MEM:virtclass-mcextend-python3 = "-m 2048"
Patrick Williams73bd93f2024-02-20 08:07:48 -060034QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050035
36TEST_SUITES = "ping ssh parselogs ptest"
37
38# Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places
39PTEST_EXPECT_FAILURE = "1"
40
41python () {
42 if not d.getVar("MCNAME"):
43 raise bb.parse.SkipRecipe("No class extension set")
44}