summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-06-27 17:33:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 22:36:44 +0100
commit8f20c03dd6dfecb58deb1069e8ab7af91f2cfcdb (patch)
tree111ee8aa394d27de99e378bebae81a14e0c38702 /scripts
parent14d5932c204ff045bd66c343ca86281f2e5f627f (diff)
downloadpoky-8f20c03dd6dfecb58deb1069e8ab7af91f2cfcdb.tar.gz
yocto-compat-layer.py: add test_world
"test_signatures" ignores wold build breakage for the sake of reporting differences also when a world build is broken. Therefore we need a dedicated test that a world build at least theoretically can proceed without obvious parse time problems (dependencies, parse errors, dangling .bbappends, etc.). This is similar to the BSP test_machine_world. The difference is that test_world doesn't change the MACHINE. (From OE-Core rev: da18bea6808aaddf3fa3fe72ac7e2d87d7e78b95) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/compatlayer/cases/common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/compatlayer/cases/common.py b/scripts/lib/compatlayer/cases/common.py
index a1cdbab51e..ede002d50d 100644
--- a/scripts/lib/compatlayer/cases/common.py
+++ b/scripts/lib/compatlayer/cases/common.py
@@ -26,6 +26,15 @@ class CommonCompatLayer(OECompatLayerTestCase):
26 check_command('Layer %s failed to show environment.' % self.tc.layer['name'], 26 check_command('Layer %s failed to show environment.' % self.tc.layer['name'],
27 'bitbake -e') 27 'bitbake -e')
28 28
29 def test_world(self):
30 '''
31 "bitbake world" is expected to work. test_signatures does not cover that
32 because it is more lenient and ignores recipes in a world build that
33 are not actually buildable, so here we fail when "bitbake -S none world"
34 fails.
35 '''
36 get_signatures(self.td['builddir'], failsafe=False)
37
29 def test_signatures(self): 38 def test_signatures(self):
30 if self.tc.layer['type'] == LayerType.SOFTWARE and \ 39 if self.tc.layer['type'] == LayerType.SOFTWARE and \
31 not self.tc.test_software_layer_signatures: 40 not self.tc.test_software_layer_signatures: