diff options
author | Quentin Schulz <quentin.schulz@streamunlimited.com> | 2019-06-11 17:11:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-12 10:54:40 +0100 |
commit | e3d0dd9163820b2bcc3ec30118338ad20bf170bf (patch) | |
tree | 1b88669c838566bcd446c7da2019edd71e40d5ea /meta-selftest | |
parent | 99c821eaaa78dc670c1f03a96f7bf83a541cde94 (diff) | |
download | poky-e3d0dd9163820b2bcc3ec30118338ad20bf170bf.tar.gz |
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 <quentin.schulz@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
3 files changed, 9 insertions, 0 deletions
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 @@ | |||
1 | SUMMARY = "Recipe with an alias of an SPDX license" | ||
2 | DESCRIPTION = "Is licensed with an alias of an SPDX license to be used for testing" | ||
3 | 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 @@ | |||
1 | SUMMARY = "Recipe with an SPDX license" | ||
2 | DESCRIPTION = "Is licensed with an SPDX license to be used for testing" | ||
3 | 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 @@ | |||
1 | SUMMARY = "Recipe with a non-SPDX license" | ||
2 | DESCRIPTION = "Is licensed with a non-SPDX license to be used for testing" | ||
3 | LICENSE = "FooLicense" | ||