[oe-commits] Lucian Musat : oeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.

git at git.openembedded.org git at git.openembedded.org
Mon Mar 9 17:59:40 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 984884cbc177300a4fefd56cb027d50b2ff4510c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=984884cbc177300a4fefd56cb027d50b2ff4510c

Author: Lucian Musat <george.l.musat at intel.com>
Date:   Tue Mar  3 12:31:12 2015 +0200

oeqa/selftest: Added a testcase to verify INCOMPATIBLE_LICENSE option.

Fixes bug 6933

Signed-off-by: Lucian Musat <george.l.musat at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/lib/oeqa/selftest/bbtests.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 5708d3d..aeccbf5 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



More information about the Openembedded-commits mailing list