Adds a test that verifies that the deploy SBoM is created correctly
Signed-off-by: Joshua Watt <[email protected]>
---
meta/lib/oeqa/selftest/cases/spdx.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/lib/oeqa/selftest/cases/spdx.py
b/meta/lib/oeqa/selftest/cases/spdx.py
index 8285189382..af2a9dc236 100644
--- a/meta/lib/oeqa/selftest/cases/spdx.py
+++ b/meta/lib/oeqa/selftest/cases/spdx.py
@@ -443,3 +443,14 @@ class SPDX30Check(SPDX3CheckBase, OESelftestTestCase):
r'\d',
f"Version '{version}' for package '{name}' should contain
digits"
)
+
+ def test_deploy_sbom(self):
+ kernel_recipe = get_bb_var("PREFERRED_PROVIDER_virtual/kernel")
+
+ objset = self.check_recipe_spdx(
+ "virtual/kernel",
+ f"{{DEPLOY_DIR_IMAGE}}/{kernel_recipe}-deploy-sbom.spdx.json",
+ )
+
+ # Document should be fully linked
+ self.check_objset_missing_ids(objset)
--
2.54.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239512):
https://lists.openembedded.org/g/openembedded-core/message/239512
Mute This Topic: https://lists.openembedded.org/mt/119957546/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-