mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
oeqa/selftest/sstatetests: Cover aarch64 SDKMACHINE in tests
We want to ensure ARM nativesdk signatures match those for the 32 and 64 bit x86 versions. Add a test to ensure this is the case. (From OE-Core rev: dced735e2cc9663527ff8b386bf20a5e1fb9ab07) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -367,13 +367,7 @@ class SStateCacheManagement(SStateBase):
|
|||||||
self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
|
self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic'])
|
||||||
|
|
||||||
class SStateHashSameSigs(SStateBase):
|
class SStateHashSameSigs(SStateBase):
|
||||||
def test_sstate_32_64_same_hash(self):
|
def sstate_hashtest(self, sdkmachine):
|
||||||
"""
|
|
||||||
The sstate checksums for both native and target should not vary whether
|
|
||||||
they're built on a 32 or 64 bit system. Rather than requiring two different
|
|
||||||
build machines and running a builds, override the variables calling uname()
|
|
||||||
manually and check using bitbake -S.
|
|
||||||
"""
|
|
||||||
|
|
||||||
self.write_config("""
|
self.write_config("""
|
||||||
MACHINE = "qemux86"
|
MACHINE = "qemux86"
|
||||||
@@ -391,10 +385,10 @@ MACHINE = "qemux86"
|
|||||||
TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
|
TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
|
||||||
BUILD_ARCH = "i686"
|
BUILD_ARCH = "i686"
|
||||||
BUILD_OS = "linux"
|
BUILD_OS = "linux"
|
||||||
SDKMACHINE = "i686"
|
SDKMACHINE = "%s"
|
||||||
PACKAGE_CLASSES = "package_rpm package_ipk package_deb"
|
PACKAGE_CLASSES = "package_rpm package_ipk package_deb"
|
||||||
BB_SIGNATURE_HANDLER = "OEBasicHash"
|
BB_SIGNATURE_HANDLER = "OEBasicHash"
|
||||||
""")
|
""" % sdkmachine)
|
||||||
self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2")
|
self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2")
|
||||||
bitbake("core-image-weston -S none")
|
bitbake("core-image-weston -S none")
|
||||||
|
|
||||||
@@ -414,6 +408,20 @@ BB_SIGNATURE_HANDLER = "OEBasicHash"
|
|||||||
self.maxDiff = None
|
self.maxDiff = None
|
||||||
self.assertCountEqual(files1, files2)
|
self.assertCountEqual(files1, files2)
|
||||||
|
|
||||||
|
def test_sstate_32_64_same_hash(self):
|
||||||
|
"""
|
||||||
|
The sstate checksums for both native and target should not vary whether
|
||||||
|
they're built on a 32 or 64 bit system. Rather than requiring two different
|
||||||
|
build machines and running a builds, override the variables calling uname()
|
||||||
|
manually and check using bitbake -S.
|
||||||
|
"""
|
||||||
|
self.sstate_hashtest("i686")
|
||||||
|
|
||||||
|
def test_sstate_sdk_arch_same_hash(self):
|
||||||
|
"""
|
||||||
|
Similarly, test an arm SDK has the same hashes
|
||||||
|
"""
|
||||||
|
self.sstate_hashtest("aarch64")
|
||||||
|
|
||||||
def test_sstate_nativelsbstring_same_hash(self):
|
def test_sstate_nativelsbstring_same_hash(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user