mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
60774248a5
commit
e6617042c1
2
meta-selftest/conf/multiconfig/muslmc.conf
Normal file
2
meta-selftest/conf/multiconfig/muslmc.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
TCLIBC = "musl"
|
||||
TMPDIR = "${TOPDIR}/tmp-mc-musl"
|
|
@ -70,3 +70,16 @@ TMPDIR = "${TOPDIR}/tmp-mc-tiny"
|
|||
|
||||
result = bitbake('mc:test:multiconfig-test-parse -c showvar')
|
||||
self.assertIn('MCTESTVAR=test2', result.output.splitlines())
|
||||
|
||||
def test_multiconfig_inlayer(self):
|
||||
"""
|
||||
Test that a multiconfig from meta-selftest works.
|
||||
"""
|
||||
|
||||
config = """
|
||||
BBMULTICONFIG = "muslmc"
|
||||
"""
|
||||
self.write_config(config)
|
||||
|
||||
# Build a core-image-minimal, only dry run needed to check config is present
|
||||
bitbake('mc:muslmc:bash -n')
|
||||
|
|
Loading…
Reference in New Issue
Block a user