diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/pokybleeding.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/pokybleeding.py b/meta/lib/oeqa/selftest/cases/pokybleeding.py new file mode 100644 index 0000000000..dc12f761b9 --- /dev/null +++ b/meta/lib/oeqa/selftest/cases/pokybleeding.py | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | from oeqa.utils.commands import bitbake, get_bb_var | ||
| 8 | from oeqa.selftest.case import OESelftestTestCase | ||
| 9 | |||
| 10 | class PokyBleeding(OESelftestTestCase): | ||
| 11 | |||
| 12 | def test_poky_bleeding_autorev(self): | ||
| 13 | """ | ||
| 14 | Test that poky-bleeding.bbclass sets SRCREV to "AUTOINC" for recipe | ||
| 15 | with a single scm in SRC_URI and for recipe with two scm's in SRC_URI. | ||
| 16 | """ | ||
| 17 | |||
| 18 | self.assertNotEqual( get_bb_var('SRCREV', 'mtd-utils-selftest'), "AUTOINC") | ||
| 19 | |||
| 20 | self.assertNotEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") | ||
| 21 | self.assertNotEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") | ||
| 22 | |||
| 23 | features = ''' | ||
| 24 | INHERIT += "poky-bleeding" | ||
| 25 | POKY_AUTOREV_RECIPES = "hello-rs mtd-utils-selftest" | ||
| 26 | ''' | ||
| 27 | self.write_config(features) | ||
| 28 | |||
| 29 | self.assertEqual( get_bb_var('SRCREV', 'mtd-utils-selftest'), "AUTOINC") | ||
| 30 | |||
| 31 | self.assertEqual( get_bb_var('SRCREV', 'hello-rs'), "AUTOINC") | ||
| 32 | self.assertEqual( get_bb_var('SRCREV_hello-lib', 'hello-rs'), "AUTOINC") | ||
