Skip to content

Commit 424bba5

Browse files
JPEWdevrpurdie
authored andcommitted
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 Signed-off-by: Joshua Watt <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1 parent 1900dc1 commit 424bba5

File tree

1 file changed

+6
-3
lines changed
  • meta/lib/oeqa/selftest/cases

1 file changed

+6
-3
lines changed

meta/lib/oeqa/selftest/cases/spdx.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ def check_recipe_spdx(self, high_level_dir, spdx_file, target_name):
3131
self.write_config(config)
3232

3333
deploy_dir = get_bb_var("DEPLOY_DIR")
34-
machine_var = get_bb_var("MACHINE")
34+
arch_dir = get_bb_var("PACKAGE_ARCH", target_name)
3535
spdx_version = get_bb_var("SPDX_VERSION")
3636
# qemux86-64 creates the directory qemux86_64
37-
machine_dir = machine_var.replace("-", "_")
37+
#arch_dir = arch_var.replace("-", "_")
3838

3939
full_file_path = os.path.join(
40-
deploy_dir, "spdx", spdx_version, machine_dir, high_level_dir, spdx_file
40+
deploy_dir, "spdx", spdx_version, arch_dir, high_level_dir, spdx_file
4141
)
4242

4343
try:
@@ -68,6 +68,9 @@ def check_spdx_json(filename):
6868
def test_spdx_base_files(self):
6969
self.check_recipe_spdx("packages", "base-files.spdx.json", "base-files")
7070

71+
def test_spdx_tar(self):
72+
self.check_recipe_spdx("packages", "tar.spdx.json", "tar")
73+
7174

7275
class SPDX3CheckBase(object):
7376
"""

0 commit comments

Comments
 (0)