From e3d0dd9163820b2bcc3ec30118338ad20bf170bf Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Tue, 11 Jun 2019 17:11:20 +0200 Subject: selftests: add tests for INCOMPATIBLE_LICENSE One bug went unnoticed without these selftests: an INCOMPATIBLE_LICENSE with a non-SPDX license for a package with that non-SPDX license wasn't enforcing the denial of build for said package. See 4b6ce4604cc15e289a48f8586d58a101b7a70b52 ("meta: license: fix non-SPDX license being removed from INCOMPATIBLE_LICENSE") While adding a test for that particular case, let's add a few more so that we cover a handful more use cases of INCOMPATIBLE_LICENSE. (From OE-Core rev: 6c2ca52218c196e7ccf6b3275bffc3e3a04193c6) Signed-off-by: Quentin Schulz Signed-off-by: Richard Purdie --- meta-selftest/recipes-test/license/incompatible-license-alias.bb | 3 +++ meta-selftest/recipes-test/license/incompatible-license.bb | 3 +++ meta-selftest/recipes-test/license/incompatible-nonspdx-license.bb | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 meta-selftest/recipes-test/license/incompatible-license-alias.bb create mode 100644 meta-selftest/recipes-test/license/incompatible-license.bb create mode 100644 meta-selftest/recipes-test/license/incompatible-nonspdx-license.bb (limited to 'meta-selftest') diff --git a/meta-selftest/recipes-test/license/incompatible-license-alias.bb b/meta-selftest/recipes-test/license/incompatible-license-alias.bb new file mode 100644 index 0000000000..e0b4e13c26 --- /dev/null +++ b/meta-selftest/recipes-test/license/incompatible-license-alias.bb @@ -0,0 +1,3 @@ +SUMMARY = "Recipe with an alias of an SPDX license" +DESCRIPTION = "Is licensed with an alias of an SPDX license to be used for testing" +LICENSE = "GPLv3" diff --git a/meta-selftest/recipes-test/license/incompatible-license.bb b/meta-selftest/recipes-test/license/incompatible-license.bb new file mode 100644 index 0000000000..1728ad76b7 --- /dev/null +++ b/meta-selftest/recipes-test/license/incompatible-license.bb @@ -0,0 +1,3 @@ +SUMMARY = "Recipe with an SPDX license" +DESCRIPTION = "Is licensed with an SPDX license to be used for testing" +LICENSE = "GPL-3.0" diff --git a/meta-selftest/recipes-test/license/incompatible-nonspdx-license.bb b/meta-selftest/recipes-test/license/incompatible-nonspdx-license.bb new file mode 100644 index 0000000000..35af0966ef --- /dev/null +++ b/meta-selftest/recipes-test/license/incompatible-nonspdx-license.bb @@ -0,0 +1,3 @@ +SUMMARY = "Recipe with a non-SPDX license" +DESCRIPTION = "Is licensed with a non-SPDX license to be used for testing" +LICENSE = "FooLicense" -- cgit v1.2.3-54-g00ecf