120137395SAndrew Geisslerinherit features_check 220137395SAndrew GeisslerREQUIRED_DISTRO_FEATURES = "ptest" 320137395SAndrew Geissler 420137395SAndrew Geisslerrequire recipes-core/images/core-image-minimal.bb 520137395SAndrew Geisslerrequire conf/include/ptest-packagelists-meta-oe.inc 620137395SAndrew Geissler 720137395SAndrew GeisslerSUMMARY = "meta-oe ptest test image" 820137395SAndrew Geissler 920137395SAndrew GeisslerDESCRIPTION += "Also including the ${MCNAME} ptest package." 1020137395SAndrew GeisslerHOMEPAGE = "https://www.openembedded.org/" 1120137395SAndrew Geissler 12*39653566SPatrick WilliamsPTESTS_META_OE = "${PTESTS_SLOW_META_OE} ${PTESTS_FAST_META_OE} ${PTESTS_PROBLEMS_META_OE}" 1320137395SAndrew Geissler 1420137395SAndrew GeisslerIMAGE_INSTALL:append = " ${MCNAME}-ptest openssh" 1520137395SAndrew Geissler 1620137395SAndrew GeisslerBBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS_META_OE').split()])}" 1720137395SAndrew Geissler 1820137395SAndrew Geissler# The image can be sufficiently large (~1.8GB) that we need to be careful that it fits in a live 1920137395SAndrew Geissler# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the 2020137395SAndrew Geissler# box) and explicitly add up to 1500MB. 2120137395SAndrew GeisslerIMAGE_OVERHEAD_FACTOR = "1.0" 2220137395SAndrew GeisslerIMAGE_ROOTFS_EXTRA_SPACE = "324288" 2320137395SAndrew Geissler# If a particular ptest needs more space, it can be customized: 2420137395SAndrew Geissler#IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-<pn> = "1024288" 2520137395SAndrew GeisslerIMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-poco = "1024288" 2620137395SAndrew Geissler 2720137395SAndrew Geissler# ptests need more memory than standard to avoid the OOM killer 2820137395SAndrew GeisslerQB_MEM = "-m 1024" 2920137395SAndrew Geissler# If a particular ptest needs more memroy, it can be customized: 3020137395SAndrew Geissler#QB_MEM:virtclass-mcextend-<pn> = "-m 4096" 3120137395SAndrew Geissler 3220137395SAndrew GeisslerTEST_SUITES = "ping ssh parselogs ptest" 3320137395SAndrew Geissler 3420137395SAndrew Geissler# Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places 3520137395SAndrew GeisslerPTEST_EXPECT_FAILURE = "1" 3620137395SAndrew Geissler 3720137395SAndrew Geisslerpython () { 3820137395SAndrew Geissler if not d.getVar("MCNAME"): 3920137395SAndrew Geissler raise bb.parse.SkipRecipe("No class extension set") 4020137395SAndrew Geissler} 4120137395SAndrew Geissler 42