summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-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