diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index 424a9e69c3..904b5b4094 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py | |||
| @@ -73,3 +73,21 @@ INCOMPATIBLE_LICENSE_pn-core-image-minimal = "GPL-3.0 LGPL-3.0" | |||
| 73 | 73 | ||
| 74 | bitbake('core-image-minimal') | 74 | bitbake('core-image-minimal') |
| 75 | 75 | ||
| 76 | class NoGPL3InImagesTests(OESelftestTestCase): | ||
| 77 | def test_core_image_minimal(self): | ||
| 78 | self.write_config(""" | ||
| 79 | INCOMPATIBLE_LICENSE_pn-core-image-minimal = "GPL-3.0 LGPL-3.0" | ||
| 80 | """) | ||
| 81 | bitbake('core-image-minimal') | ||
| 82 | |||
| 83 | def test_core_image_full_cmdline(self): | ||
| 84 | self.write_config(""" | ||
| 85 | INHERIT += "testimage"\n | ||
| 86 | INCOMPATIBLE_LICENSE_pn-core-image-full-cmdline = "GPL-3.0 LGPL-3.0"\n | ||
| 87 | RDEPENDS_packagegroup-core-full-cmdline-utils_remove = "bash bc coreutils cpio ed findutils gawk grep mc mc-fish mc-helpers mc-helpers-perl sed tar time"\n | ||
| 88 | RDEPENDS_packagegroup-core-full-cmdline-dev-utils_remove = "diffutils m4 make patch"\n | ||
| 89 | RDEPENDS_packagegroup-core-full-cmdline-multiuser_remove = "gzip"\n | ||
| 90 | """) | ||
| 91 | bitbake('core-image-full-cmdline') | ||
| 92 | bitbake('-c testimage core-image-full-cmdline') | ||
| 93 | |||
