summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/incompatible_lic.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/incompatible_lic.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/incompatible_lic.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
index 458a940618..3eabd79097 100644
--- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py
+++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
@@ -23,6 +23,18 @@ class IncompatibleLicenseTests(OESelftestTestCase):
23 def test_incompatible_alias_spdx_license(self): 23 def test_incompatible_alias_spdx_license(self):
24 self.lic_test('incompatible-license', 'GPL-3.0', 'GPLv3') 24 self.lic_test('incompatible-license', 'GPL-3.0', 'GPLv3')
25 25
26 # Verify that a package with an SPDX license (from AVAILABLE_LICENSES)
27 # cannot be built when INCOMPATIBLE_LICENSE contains a wildcarded license
28 # matching this SPDX license
29 def test_incompatible_spdx_license_wildcard(self):
30 self.lic_test('incompatible-license', 'GPL-3.0', '*GPL-3.0')
31
32 # Verify that a package with an SPDX license (from AVAILABLE_LICENSES)
33 # cannot be built when INCOMPATIBLE_LICENSE contains a wildcarded alias
34 # license matching this SPDX license
35 def test_incompatible_alias_spdx_license_wildcard(self):
36 self.lic_test('incompatible-license', 'GPL-3.0', '*GPLv3')
37
26 # Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX 38 # Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX
27 # license cannot be built when INCOMPATIBLE_LICENSE contains this SPDX 39 # license cannot be built when INCOMPATIBLE_LICENSE contains this SPDX
28 # license 40 # license
@@ -34,6 +46,36 @@ class IncompatibleLicenseTests(OESelftestTestCase):
34 def test_incompatible_alias_spdx_license_alias(self): 46 def test_incompatible_alias_spdx_license_alias(self):
35 self.lic_test('incompatible-license-alias', 'GPL-3.0', 'GPLv3') 47 self.lic_test('incompatible-license-alias', 'GPL-3.0', 'GPLv3')
36 48
49 # Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX
50 # license cannot be built when INCOMPATIBLE_LICENSE contains a wildcarded
51 # license matching this SPDX license
52 def test_incompatible_spdx_license_alias_wildcard(self):
53 self.lic_test('incompatible-license-alias', 'GPL-3.0', '*GPL-3.0')
54
55 # Verify that a package with an alias (from SPDXLICENSEMAP) to an SPDX
56 # license cannot be built when INCOMPATIBLE_LICENSE contains a wildcarded
57 # alias license matching the SPDX license
58 def test_incompatible_alias_spdx_license_alias_wildcard(self):
59 self.lic_test('incompatible-license-alias', 'GPL-3.0', '*GPLv3')
60
61 # Verify that a package with multiple SPDX licenses (from
62 # AVAILABLE_LICENSES) cannot be built when INCOMPATIBLE_LICENSE contains
63 # some of them
64 def test_incompatible_spdx_licenses(self):
65 self.lic_test('incompatible-licenses', 'GPL-3.0 LGPL-3.0', 'GPL-3.0 LGPL-3.0')
66
67 # Verify that a package with multiple SPDX licenses (from
68 # AVAILABLE_LICENSES) cannot be built when INCOMPATIBLE_LICENSE contains a
69 # wildcard to some of them
70 def test_incompatible_spdx_licenses_wildcard(self):
71 self.lic_test('incompatible-licenses', 'GPL-3.0 LGPL-3.0', '*GPL-3.0')
72
73 # Verify that a package with multiple SPDX licenses (from
74 # AVAILABLE_LICENSES) cannot be built when INCOMPATIBLE_LICENSE contains a
75 # wildcard matching all licenses
76 def test_incompatible_all_licenses_wildcard(self):
77 self.lic_test('incompatible-licenses', 'GPL-2.0 GPL-3.0 LGPL-3.0', '*')
78
37 # Verify that a package with a non-SPDX license (neither in 79 # Verify that a package with a non-SPDX license (neither in
38 # AVAILABLE_LICENSES nor in SPDXLICENSEMAP) cannot be built when 80 # AVAILABLE_LICENSES nor in SPDXLICENSEMAP) cannot be built when
39 # INCOMPATIBLE_LICENSE contains this license 81 # INCOMPATIBLE_LICENSE contains this license