aboutsummaryrefslogtreecommitdiffstats
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-09 16:00:20 +0000
commit984884cbc177300a4fefd56cb027d50b2ff4510c (patch)
tree84f2e343a664b4a8f32b89f5e44339c41cc1dcfa
parentcab59ce08916c45c1d9da1cf9a92a67574f6c2c3 (diff)
downloadopenembedded-core-contrib-984884cbc177300a4fefd56cb027d50b2ff4510c.tar.gz
openembedded-core-contrib-984884cbc177300a4fefd56cb027d50b2ff4510c.tar.bz2
openembedded-core-contrib-984884cbc177300a4fefd56cb027d50b2ff4510c.zip
oeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.
Fixes bug 6933 Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 5708d3dc9b6..aeccbf55a63 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -177,3 +177,14 @@ class BitbakeTests(oeSelfTest):
manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output)
continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1))
self.assertLess(errorpos,continuepos)
+
+ @testcase(1119)
+ def test_non_gplv3(self):
+ data = 'INCOMPATIBLE_LICENSE = "GPLv3"'
+ conf = os.path.join(self.builddir, 'conf/local.conf')
+ ftools.append_file(conf ,data)
+ result = bitbake('readline', ignore_status=True)
+ self.assertEqual(result.status, 0)
+ self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3')))
+ self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2')))
+ ftools.remove_from_file(conf ,data) \ No newline at end of file