mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +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: 2306261fb85d5d03145989c3af9c6897111644ae) 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>
This commit is contained in:
parent
1916cb6998
commit
f707d9bb96
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