1*39653566SPatrick Williamsinherit features_check 2*39653566SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "ptest" 3*39653566SPatrick Williams 4*39653566SPatrick Williamsrequire recipes-core/images/core-image-minimal.bb 5*39653566SPatrick Williamsrequire conf/include/ptest-packagelists-meta-multimedia.inc 6*39653566SPatrick Williams 7*39653566SPatrick WilliamsSUMMARY = "meta-multimedia ptest test image" 8*39653566SPatrick Williams 9*39653566SPatrick WilliamsDESCRIPTION += "Also including the ${MCNAME} ptest package." 10*39653566SPatrick WilliamsHOMEPAGE = "https://www.openembedded.org/" 11*39653566SPatrick Williams 12*39653566SPatrick WilliamsPTESTS_META_MULTIMEDIA = "${PTESTS_SLOW_META_MULTIMEDIA} ${PTESTS_FAST_META_MULTIMEDIA} ${PTESTS_PROBLEMS_META_MULTIMEDIA}" 13*39653566SPatrick Williams 14*39653566SPatrick WilliamsIMAGE_INSTALL:append = " ${MCNAME}-ptest openssh" 15*39653566SPatrick Williams 16*39653566SPatrick WilliamsBBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS_META_MULTIMEDIA').split()])}" 17*39653566SPatrick Williams 18*39653566SPatrick Williams# The image can be sufficiently large (~1.8GB) that we need to be careful that it fits in a live 19*39653566SPatrick Williams# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the 20*39653566SPatrick Williams# box) and explicitly add up to 1500MB. 21*39653566SPatrick WilliamsIMAGE_OVERHEAD_FACTOR = "1.0" 22*39653566SPatrick WilliamsIMAGE_ROOTFS_EXTRA_SPACE = "324288" 23*39653566SPatrick Williams# If a particular ptest needs more space, it can be customized: 24*39653566SPatrick Williams#IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-<pn> = "1024288" 25*39653566SPatrick Williams 26*39653566SPatrick Williams# ptests need more memory than standard to avoid the OOM killer 27*39653566SPatrick WilliamsQB_MEM = "-m 1024" 28*39653566SPatrick Williams# If a particular ptest needs more memroy, it can be customized: 29*39653566SPatrick Williams#QB_MEM:virtclass-mcextend-<pn> = "-m 4096" 30*39653566SPatrick Williams 31*39653566SPatrick WilliamsTEST_SUITES = "ping ssh parselogs ptest" 32*39653566SPatrick Williams 33*39653566SPatrick Williams# Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places 34*39653566SPatrick WilliamsPTEST_EXPECT_FAILURE = "1" 35*39653566SPatrick Williams 36*39653566SPatrick Williamspython () { 37*39653566SPatrick Williams if not d.getVar("MCNAME"): 38*39653566SPatrick Williams raise bb.parse.SkipRecipe("No class extension set") 39*39653566SPatrick Williams} 40*39653566SPatrick Williams 41