summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/sstatetests.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/sstatetests.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/sstatetests.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py
index 6757a0ec68..9adb511960 100644
--- a/meta/lib/oeqa/selftest/cases/sstatetests.py
+++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
@@ -446,6 +446,46 @@ BB_SIGNATURE_HANDLER = "OEBasicHash"
446 self.assertCountEqual(files1, files2) 446 self.assertCountEqual(files1, files2)
447 447
448 448
449 def test_sstate_multilib_or_not_native_samesigs(self):
450 """The sstate checksums of two native recipes (and their dependencies)
451 where the target is using multilib in one but not the other
452 should be the same. We use the qemux86copy machine to test
453 this.
454 """
455
456 self.write_config("""
457TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
458TCLIBCAPPEND = \"\"
459MACHINE = \"qemux86\"
460require conf/multilib.conf
461MULTILIBS = "multilib:lib32"
462DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
463BB_SIGNATURE_HANDLER = "OEBasicHash"
464""")
465 self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash")
466 bitbake("binutils-native -S none")
467 self.write_config("""
468TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
469TCLIBCAPPEND = \"\"
470MACHINE = \"qemux86copy\"
471BB_SIGNATURE_HANDLER = "OEBasicHash"
472""")
473 self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2")
474 bitbake("binutils-native -S none")
475
476 def get_files(d):
477 f = []
478 for root, dirs, files in os.walk(d):
479 for name in files:
480 f.append(os.path.join(root, name))
481 return f
482 files1 = get_files(self.topdir + "/tmp-sstatesamehash/stamps")
483 files2 = get_files(self.topdir + "/tmp-sstatesamehash2/stamps")
484 files2 = [x.replace("tmp-sstatesamehash2", "tmp-sstatesamehash") for x in files2]
485 self.maxDiff = None
486 self.assertCountEqual(files1, files2)
487
488
449 def test_sstate_noop_samesigs(self): 489 def test_sstate_noop_samesigs(self):
450 """ 490 """
451 The sstate checksums of two builds with these variables changed or 491 The sstate checksums of two builds with these variables changed or