Files
meta-security/recipes-core/images/security-test-image.bb
Armin Kuster 6c77d06b84 security-test-image: auto include layers if present.
This is to simplify tesing to build one image and include pkgs depending on the
layers included in the BBLAYERS.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-06-18 06:48:22 -07:00

28 lines
1.0 KiB
BlitzBasic

DESCRIPTION = "A small image for testing meta-security packages"
require security-build-image.bb
IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_INSTALL:append = "\
${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-test", "",d)} \
${@bb.utils.contains("BBFILE_COLLECTIONS", "tpm-layer", "packagegroup-security-tpm","", d)} \
${@bb.utils.contains("BBFILE_COLLECTIONS", "tpm-layer", "packagegroup-security-tpm2","", d)} \
${@bb.utils.contains("BBFILE_COLLECTIONS", "parsec-layer", "packagegroup-security-parsec","", d)} \
${@bb.utils.contains("BBFILE_COLLECTIONS", "integrity", "packagegroup-ima-evm-utils","", d)} \
"
TEST_SUITES = "ssh ping apparmor clamav samhain sssd checksec smack suricata"
TEST_SUITES:append = " parsec tpm2 swtpm ima"
INSTALL_CLAMAV_CVD = "1"
IMAGE_OVERHEAD_FACTOR = "1.0"
IMAGE_ROOTFS_EXTRA_SPACE = "1124288"
# ptests need more memory than standard to avoid the OOM killer
# also lttng-tools needs /tmp that has at least 1G
QB_MEM = "-m 2048"
PTEST_EXPECT_FAILURE = "1"