summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2025-11-07 14:14:50 +0100
committerSteve Sakoman <steve@sakoman.com>2025-11-14 06:45:30 -0800
commit6328f526953b996ebdca14302e6159fbc93edfcd (patch)
tree15757a2d58f14d1333dccf684658a1aaba077ad6
parent5b74a8f1a54d62d2cf2330bef6ffad3508540a91 (diff)
downloadpoky-6328f526953b996ebdca14302e6159fbc93edfcd.tar.gz
oeqa: spdx: Add tar test for SPDX 2.2
The base-files test for SPDX 2.2 did not give good coverage, since base-files doesn't have any dependencies. Add building tar as another test which more fully exercises the code (From OE-Core rev: 2c299c17ef1a97505fd7de8d3ebc9de25fb838fc) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/selftest/cases/spdx.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/spdx.py b/meta/lib/oeqa/selftest/cases/spdx.py
index f22bd6c275..8cd4e83ca2 100644
--- a/meta/lib/oeqa/selftest/cases/spdx.py
+++ b/meta/lib/oeqa/selftest/cases/spdx.py
@@ -31,10 +31,10 @@ class SPDX22Check(OESelftestTestCase):
31 self.write_config(config) 31 self.write_config(config)
32 32
33 deploy_dir = get_bb_var("DEPLOY_DIR") 33 deploy_dir = get_bb_var("DEPLOY_DIR")
34 machine_var = get_bb_var("MACHINE") 34 arch_dir = get_bb_var("PACKAGE_ARCH", target_name)
35 spdx_version = get_bb_var("SPDX_VERSION") 35 spdx_version = get_bb_var("SPDX_VERSION")
36 # qemux86-64 creates the directory qemux86_64 36 # qemux86-64 creates the directory qemux86_64
37 machine_dir = machine_var.replace("-", "_") 37 #arch_dir = arch_var.replace("-", "_")
38 38
39 full_file_path = os.path.join( 39 full_file_path = os.path.join(
40 deploy_dir, "spdx", spdx_version, arch_dir, high_level_dir, spdx_file 40 deploy_dir, "spdx", spdx_version, arch_dir, high_level_dir, spdx_file
@@ -68,6 +68,9 @@ class SPDX22Check(OESelftestTestCase):
68 def test_spdx_base_files(self): 68 def test_spdx_base_files(self):
69 self.check_recipe_spdx("packages", "base-files.spdx.json", "base-files") 69 self.check_recipe_spdx("packages", "base-files.spdx.json", "base-files")
70 70
71 def test_spdx_tar(self):
72 self.check_recipe_spdx("packages", "tar.spdx.json", "tar")
73
71 74
72class SPDX3CheckBase(object): 75class SPDX3CheckBase(object):
73 """ 76 """