]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts/sbom: add unit tests for SPDX-License-Identifier parsing
authorLuis Augenstein <luis.augenstein@tngtech.com>
Mon, 18 May 2026 06:21:02 +0000 (08:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 11:14:41 +0000 (13:14 +0200)
commit880bae5f1269b4d81bb2a254963e84377cd37bc1
treefedd387770f505180863b957c7cd93976b420204
parent0de18f407c8169b51a525e208c0cd690df2d2b1a
scripts/sbom: add unit tests for SPDX-License-Identifier parsing

Verify that SPDX-License-Identifier headers at the top of source files
are parsed correctly.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber <maximilian.huber@tngtech.com>
Signed-off-by: Maximilian Huber <maximilian.huber@tngtech.com>
Signed-off-by: Luis Augenstein <luis.augenstein@tngtech.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/sbom/tests/spdx_graph/__init__.py [new file with mode: 0644]
scripts/sbom/tests/spdx_graph/test_kernel_file.py [new file with mode: 0644]