summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorLucian Musat <george.l.musat@intel.com>2015-03-03 12:31:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-10 10:47:44 +0000
commitddc8222443076c6d3e73d98bca595b96d409d63a (patch)
tree5bf1ebd201c57877bf12f077183da6cfd898c38c /meta/lib/oeqa
parentf0f6b234a7e855dd40c0dc0f3d1d843c7f59e7e1 (diff)
downloadpoky-ddc8222443076c6d3e73d98bca595b96d409d63a.tar.gz
oeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.
Fixes bug 6933 (From OE-Core rev: 984884cbc177300a4fefd56cb027d50b2ff4510c) Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 5708d3dc9b..aeccbf55a6 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -177,3 +177,14 @@ class BitbakeTests(oeSelfTest):
177 manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output) 177 manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output)
178 continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1)) 178 continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1))
179 self.assertLess(errorpos,continuepos) 179 self.assertLess(errorpos,continuepos)
180
181 @testcase(1119)
182 def test_non_gplv3(self):
183 data = 'INCOMPATIBLE_LICENSE = "GPLv3"'
184 conf = os.path.join(self.builddir, 'conf/local.conf')
185 ftools.append_file(conf ,data)
186 result = bitbake('readline', ignore_status=True)
187 self.assertEqual(result.status, 0)
188 self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3')))
189 self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2')))
190 ftools.remove_from_file(conf ,data) \ No newline at end of file