summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/bblayers.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-06-18 19:17:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-16 11:39:39 +0000
commit8b2b0680646adff32e1c82b01edb82d7d622bf08 (patch)
tree2c02d3e315c1f9339806897c543020dc71778172 /meta/lib/oeqa/selftest/bblayers.py
parent480bbaee580e036ba59940d39cc770c13990f3b6 (diff)
downloadpoky-8b2b0680646adff32e1c82b01edb82d7d622bf08.tar.gz
oe-selftest: add test for bitbake-layers show-recipes
Add a test for bitbake-layers show-recipes including the recently added -i option. (From OE-Core rev: da2733ad91cdff8cae2848fec5377ca777820d6b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.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/selftest/bblayers.py')
-rw-r--r--meta/lib/oeqa/selftest/bblayers.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/bblayers.py b/meta/lib/oeqa/selftest/bblayers.py
index 20c17e46fb..5452925104 100644
--- a/meta/lib/oeqa/selftest/bblayers.py
+++ b/meta/lib/oeqa/selftest/bblayers.py
@@ -60,3 +60,28 @@ class BitbakeLayers(oeSelfTest):
60 result = runCmd('bitbake-layers remove-layer */meta-skeleton') 60 result = runCmd('bitbake-layers remove-layer */meta-skeleton')
61 result = runCmd('bitbake-layers show-layers') 61 result = runCmd('bitbake-layers show-layers')
62 self.assertNotIn('meta-skeleton', result.output, msg = "meta-skeleton should have been removed at this step. bitbake-layers show-layers output: %s" % result.output) 62 self.assertNotIn('meta-skeleton', result.output, msg = "meta-skeleton should have been removed at this step. bitbake-layers show-layers output: %s" % result.output)
63
64 def test_bitbakelayers_showrecipes(self):
65 result = runCmd('bitbake-layers show-recipes')
66 self.assertIn('aspell:', result.output)
67 self.assertIn('mtd-utils:', result.output)
68 self.assertIn('linux-yocto:', result.output)
69 self.assertIn('core-image-minimal:', result.output)
70 result = runCmd('bitbake-layers show-recipes mtd-utils')
71 self.assertIn('mtd-utils:', result.output)
72 self.assertNotIn('aspell:', result.output)
73 result = runCmd('bitbake-layers show-recipes -i kernel')
74 self.assertIn('linux-yocto:', result.output)
75 self.assertNotIn('mtd-utils:', result.output)
76 result = runCmd('bitbake-layers show-recipes -i image')
77 self.assertIn('core-image-minimal', result.output)
78 self.assertNotIn('linux-yocto:', result.output)
79 self.assertNotIn('mtd-utils:', result.output)
80 result = runCmd('bitbake-layers show-recipes -i cmake,pkgconfig')
81 self.assertIn('libproxy:', result.output)
82 self.assertNotIn('mtd-utils:', result.output) # doesn't inherit either
83 self.assertNotIn('wget:', result.output) # doesn't inherit cmake
84 self.assertNotIn('waffle:', result.output) # doesn't inherit pkgconfig
85 result = runCmd('bitbake-layers show-recipes -i nonexistentclass', ignore_status=True)
86 self.assertNotEqual(result.status, 0, 'bitbake-layers show-recipes -i nonexistentclass should have failed')
87 self.assertIn('ERROR:', result.output)