mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +02:00
selftest pokybleeding.py: add test for poky-bleeding.bbclass
The class sets SRCREV to AUTOINC for recipes with single or multiple repositories. Test those cases. (From meta-yocto rev: b7185b27b8acb43eaf9c27787903173ea34a0738) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1cd8d4e892
commit
3369269a1e
32
meta/lib/oeqa/selftest/cases/pokybleeding.py
Normal file
32
meta/lib/oeqa/selftest/cases/pokybleeding.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
from oeqa.utils.commands import bitbake, get_bb_var
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
|
||||
class PokyBleeding(OESelftestTestCase):
|
||||
|
||||
def test_poky_bleeding_autorev(self):
|
||||
"""
|
||||
Test that poky-bleeding.bbclass sets SRCREV to "AUTOINC" for recipe
|
||||
with a single scm in SRC_URI and for recipe with two scm's in SRC_URI.
|
||||
"""
|
||||
|
||||
self.assertNotEqual( get_bb_var('SRCREV', 'mtd-utils-selftest'), "AUTOINC")
|
||||
|
||||
self.assertNotEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC")
|
||||
self.assertNotEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC")
|
||||
|
||||
features = '''
|
||||
INHERIT += "poky-bleeding"
|
||||
POKY_AUTOREV_RECIPES = "hello-rs mtd-utils-selftest"
|
||||
'''
|
||||
self.write_config(features)
|
||||
|
||||
self.assertEqual( get_bb_var('SRCREV', 'mtd-utils-selftest'), "AUTOINC")
|
||||
|
||||
self.assertEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC")
|
||||
self.assertEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC")
|
Loading…
Reference in New Issue
Block a user