blob: d0940d680dd4ebd8f0696a67992a0ba01d9cbaa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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', 'pseudo'), "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 pseudo"
'''
self.write_config(features)
self.assertEqual( get_bb_var('SRCREV', 'pseudo'), "AUTOINC")
self.assertEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC")
self.assertEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC")
|