diff options
-rw-r--r-- | meta/lib/oeqa/selftest/bblayers.py | 25 |
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) | ||