diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-06-12 13:31:54 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-06-18 06:48:22 -0700 |
commit | 6c77d06b840fc6ecfd638365eb355181b2d56f70 (patch) | |
tree | e368ca6a0845a2fc97c26aee1d31246088d73086 | |
parent | caadc8672b7f7eff6d4cfcbdca116aa76697816e (diff) | |
download | meta-security-6c77d06b840fc6ecfd638365eb355181b2d56f70.tar.gz |
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>
-rw-r--r-- | recipes-core/images/security-test-image.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-core/images/security-test-image.bb b/recipes-core/images/security-test-image.bb index 54d8978..133a7a1 100644 --- a/recipes-core/images/security-test-image.bb +++ b/recipes-core/images/security-test-image.bb | |||
@@ -4,7 +4,16 @@ require security-build-image.bb | |||
4 | 4 | ||
5 | IMAGE_FEATURES += "ssh-server-openssh" | 5 | IMAGE_FEATURES += "ssh-server-openssh" |
6 | 6 | ||
7 | TEST_SUITES = "ssh ping ptest apparmor clamav samhain sssd tripwire checksec smack suricata" | 7 | IMAGE_INSTALL:append = "\ |
8 | ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-test", "",d)} \ | ||
9 | ${@bb.utils.contains("BBFILE_COLLECTIONS", "tpm-layer", "packagegroup-security-tpm","", d)} \ | ||
10 | ${@bb.utils.contains("BBFILE_COLLECTIONS", "tpm-layer", "packagegroup-security-tpm2","", d)} \ | ||
11 | ${@bb.utils.contains("BBFILE_COLLECTIONS", "parsec-layer", "packagegroup-security-parsec","", d)} \ | ||
12 | ${@bb.utils.contains("BBFILE_COLLECTIONS", "integrity", "packagegroup-ima-evm-utils","", d)} \ | ||
13 | " | ||
14 | |||
15 | TEST_SUITES = "ssh ping apparmor clamav samhain sssd checksec smack suricata" | ||
16 | TEST_SUITES:append = " parsec tpm2 swtpm ima" | ||
8 | 17 | ||
9 | INSTALL_CLAMAV_CVD = "1" | 18 | INSTALL_CLAMAV_CVD = "1" |
10 | 19 | ||