diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2025-03-21 09:12:40 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-24 17:29:16 +0000 |
| commit | 3b585c5e11b0484df761e67bad736535c2b3423e (patch) | |
| tree | 038a112eb9ee3b3cd61739d19258ccd4c53d2156 /meta/lib | |
| parent | 7bbbc92c3b77a12701ad0524dc6d75287efa1927 (diff) | |
| download | poky-3b585c5e11b0484df761e67bad736535c2b3423e.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: d678e25419c89e09c1c438363bf3a940ce903d43)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/spdx.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/spdx.py b/meta/lib/oeqa/selftest/cases/spdx.py index f3b955ed2b..8cd4e83ca2 100644 --- a/meta/lib/oeqa/selftest/cases/spdx.py +++ b/meta/lib/oeqa/selftest/cases/spdx.py | |||
| @@ -31,13 +31,13 @@ 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, machine_dir, high_level_dir, spdx_file | 40 | deploy_dir, "spdx", spdx_version, arch_dir, high_level_dir, spdx_file |
| 41 | ) | 41 | ) |
| 42 | 42 | ||
| 43 | try: | 43 | try: |
| @@ -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 | ||
| 72 | class SPDX3CheckBase(object): | 75 | class SPDX3CheckBase(object): |
| 73 | """ | 76 | """ |
