diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-09 10:42:09 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-22 23:46:28 +0100 |
| commit | e6617042c1ebf744b04aa90644407dfc0b607ca5 (patch) | |
| tree | c06431e755f634e89c39c184e094f97824724a10 /meta/lib | |
| parent | 60774248a5570899a66f9f88e597cc4f723d6278 (diff) | |
| download | poky-e6617042c1ebf744b04aa90644407dfc0b607ca5.tar.gz | |
selftest/multiconfig: Test that multiconfigs in separate layers works
We should test that mutliconfigs from a layer work, not just build/conf.
This adds such a test.
[YOCTO #13566]
(From OE-Core rev: e15044370169cb2b0cac99056d60ce648807912a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2306261fb85d5d03145989c3af9c6897111644ae)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/multiconfig.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/multiconfig.py b/meta/lib/oeqa/selftest/cases/multiconfig.py index baae9b456f..83cbd1345d 100644 --- a/meta/lib/oeqa/selftest/cases/multiconfig.py +++ b/meta/lib/oeqa/selftest/cases/multiconfig.py | |||
| @@ -70,3 +70,16 @@ TMPDIR = "${TOPDIR}/tmp-mc-tiny" | |||
| 70 | 70 | ||
| 71 | result = bitbake('mc:test:multiconfig-test-parse -c showvar') | 71 | result = bitbake('mc:test:multiconfig-test-parse -c showvar') |
| 72 | self.assertIn('MCTESTVAR=test2', result.output.splitlines()) | 72 | self.assertIn('MCTESTVAR=test2', result.output.splitlines()) |
| 73 | |||
| 74 | def test_multiconfig_inlayer(self): | ||
| 75 | """ | ||
| 76 | Test that a multiconfig from meta-selftest works. | ||
| 77 | """ | ||
| 78 | |||
| 79 | config = """ | ||
| 80 | BBMULTICONFIG = "muslmc" | ||
| 81 | """ | ||
| 82 | self.write_config(config) | ||
| 83 | |||
| 84 | # Build a core-image-minimal, only dry run needed to check config is present | ||
| 85 | bitbake('mc:muslmc:bash -n') | ||
