From: Joshua Watt <jpewhacker@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Joshua Watt <JPEWhacker@gmail.com>
Subject: [OE-core][PATCH 2/2] oeqa: spdx: Add tar test for SPDX 2.2
Date: Fri, 21 Mar 2025 09:12:40 -0600 [thread overview]
Message-ID: <20250321151345.484603-3-JPEWhacker@gmail.com> (raw)
In-Reply-To: <20250321151345.484603-1-JPEWhacker@gmail.com>
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 <JPEWhacker@gmail.com>
---
meta/lib/oeqa/selftest/cases/spdx.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oeqa/selftest/cases/spdx.py b/meta/lib/oeqa/selftest/cases/spdx.py
index 2351103433a..6eac5f9911f 100644
--- a/meta/lib/oeqa/selftest/cases/spdx.py
+++ b/meta/lib/oeqa/selftest/cases/spdx.py
@@ -31,13 +31,13 @@ class SPDX22Check(OESelftestTestCase):
self.write_config(config)
deploy_dir = get_bb_var("DEPLOY_DIR")
- machine_var = get_bb_var("MACHINE")
+ arch_dir = get_bb_var("PACKAGE_ARCH", target_name)
spdx_version = get_bb_var("SPDX_VERSION")
# qemux86-64 creates the directory qemux86_64
- machine_dir = machine_var.replace("-", "_")
+ #arch_dir = arch_var.replace("-", "_")
full_file_path = os.path.join(
- deploy_dir, "spdx", spdx_version, machine_dir, high_level_dir, spdx_file
+ deploy_dir, "spdx", spdx_version, arch_dir, high_level_dir, spdx_file
)
try:
@@ -68,6 +68,9 @@ class SPDX22Check(OESelftestTestCase):
def test_spdx_base_files(self):
self.check_recipe_spdx("packages", "base-files.spdx.json", "base-files")
+ def test_spdx_tar(self):
+ self.check_recipe_spdx("packages", "tar.spdx.json", "tar")
+
class SPDX3CheckBase(object):
"""
--
2.47.1
next prev parent reply other threads:[~2025-03-21 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-21 15:12 [OE-core][PATCH 0/2] Fix SPDX 2.2 for common SPDX changes Joshua Watt
2025-03-21 15:12 ` [OE-core][PATCH 1/2] classes: create-spdx-2.2: Fix dependency handling Joshua Watt
2025-03-21 15:12 ` Joshua Watt [this message]
2025-03-21 15:48 ` [OE-core][PATCH 2/2] oeqa: spdx: Add tar test for SPDX 2.2 Marko, Peter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250321151345.484603-3-JPEWhacker@gmail.com \
--to=jpewhacker@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox