summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-30 17:43:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-01 21:45:57 +0100
commit2d7df9be8deb928b0a3d55104cd650374be75d6c (patch)
treef4083a6fca06592bc239c27c384639d7bb79d696 /meta/lib/oeqa
parentff8fa4cea0c6d1e8e659ebfde5cd3f0cbe50c1f2 (diff)
downloadpoky-2d7df9be8deb928b0a3d55104cd650374be75d6c.tar.gz
oeqa/sstatetests: Add test for multilib allarch checksums
Switching between multilib configurations should not change allarch recipe or nativesdk checksums. Add a new sstate test for this based on the standard allarch test. (From OE-Core rev: 660543601171f88c75fb4e90f34dac86037f3f23) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py45
1 files changed, 37 insertions, 8 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py
index a353f67e86..6642539ebf 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -311,19 +311,48 @@ NATIVELSBSTRING = \"DistroB\"
311 the two MACHINE values. 311 the two MACHINE values.
312 """ 312 """
313 313
314 configA = """
315TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
316MACHINE = \"qemux86-64\"
317"""
318 configB = """
319TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
320MACHINE = \"qemuarm\"
321"""
322 self.sstate_allarch_samesigs(configA, configB)
323
324 def test_sstate_allarch_samesigs_multilib(self):
325 """
326 The sstate checksums of allarch multilib packages should be independent of whichever
327 MACHINE is set. Check this using bitbake -S.
328 Also, rather than duplicate the test, check nativesdk stamps are the same between
329 the two MACHINE values.
330 """
331
332 configA = """
333TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
334MACHINE = \"qemux86-64\"
335require conf/multilib.conf
336MULTILIBS = \"multilib:lib32\"
337DEFAULTTUNE_virtclass-multilib-lib32 = \"x86\"
338"""
339 configB = """
340TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
341MACHINE = \"qemuarm\"
342require conf/multilib.conf
343MULTILIBS = \"\"
344"""
345 self.sstate_allarch_samesigs(configA, configB)
346
347 def sstate_allarch_samesigs(self, configA, configB):
348
314 topdir = get_bb_var('TOPDIR') 349 topdir = get_bb_var('TOPDIR')
315 targetos = get_bb_var('TARGET_OS') 350 targetos = get_bb_var('TARGET_OS')
316 targetvendor = get_bb_var('TARGET_VENDOR') 351 targetvendor = get_bb_var('TARGET_VENDOR')
317 self.write_config(""" 352 self.write_config(configA)
318TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
319MACHINE = \"qemux86\"
320""")
321 self.track_for_cleanup(topdir + "/tmp-sstatesamehash") 353 self.track_for_cleanup(topdir + "/tmp-sstatesamehash")
322 bitbake("world meta-toolchain -S none") 354 bitbake("world meta-toolchain -S none")
323 self.write_config(""" 355 self.write_config(configB)
324TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
325MACHINE = \"qemuarm\"
326""")
327 self.track_for_cleanup(topdir + "/tmp-sstatesamehash2") 356 self.track_for_cleanup(topdir + "/tmp-sstatesamehash2")
328 bitbake("world meta-toolchain -S none") 357 bitbake("world meta-toolchain -S none")
329 358