mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
oeqa/selftest/sstatetests.py: check that PARALLEL_MAKE doesn't change signatures
There are recipes that manage to have sstate signatures that depend on PARALLEL_MAKE, so verify that changing this variable doesn't change signatures. (From OE-Core rev: 14e8026cc25394b0a6d1d2063dc36b6b295857e5) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2966016a5b
commit
25d2956d97
@@ -223,28 +223,33 @@ class SStateTests(SStateBase):
|
|||||||
def test_sstate_32_64_same_hash(self):
|
def test_sstate_32_64_same_hash(self):
|
||||||
"""
|
"""
|
||||||
The sstate checksums for both native and target should not vary whether
|
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
|
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()
|
build machines and running a builds, override the variables calling uname()
|
||||||
manually and check using bitbake -S.
|
manually and check using bitbake -S.
|
||||||
|
|
||||||
Also check that SDKMACHINE changing doesn't change any of these stamps.
|
Also check that SDKMACHINE and PARALLEL_MAKE changing doesn't change any
|
||||||
|
of these stamps.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
topdir = get_bb_var('TOPDIR')
|
topdir = get_bb_var('TOPDIR')
|
||||||
targetvendor = get_bb_var('TARGET_VENDOR')
|
targetvendor = get_bb_var('TARGET_VENDOR')
|
||||||
self.write_config("""
|
self.write_config("""
|
||||||
TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
|
MACHINE = "qemux86"
|
||||||
BUILD_ARCH = \"x86_64\"
|
TMPDIR = "${TOPDIR}/tmp-sstatesamehash"
|
||||||
BUILD_OS = \"linux\"
|
BUILD_ARCH = "x86_64"
|
||||||
SDKMACHINE = \"x86_64\"
|
BUILD_OS = "linux"
|
||||||
|
SDKMACHINE = "x86_64"
|
||||||
|
PARALLEL_MAKE = "-j 1"
|
||||||
""")
|
""")
|
||||||
self.track_for_cleanup(topdir + "/tmp-sstatesamehash")
|
self.track_for_cleanup(topdir + "/tmp-sstatesamehash")
|
||||||
bitbake("core-image-sato -S none")
|
bitbake("core-image-sato -S none")
|
||||||
self.write_config("""
|
self.write_config("""
|
||||||
TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
|
MACHINE = "qemux86"
|
||||||
BUILD_ARCH = \"i686\"
|
TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
|
||||||
BUILD_OS = \"linux\"
|
BUILD_ARCH = "i686"
|
||||||
SDKMACHINE = \"i686\"
|
BUILD_OS = "linux"
|
||||||
|
SDKMACHINE = "i686"
|
||||||
|
PARALLEL_MAKE = "-j 2"
|
||||||
""")
|
""")
|
||||||
self.track_for_cleanup(topdir + "/tmp-sstatesamehash2")
|
self.track_for_cleanup(topdir + "/tmp-sstatesamehash2")
|
||||||
bitbake("core-image-sato -S none")
|
bitbake("core-image-sato -S none")
|
||||||
@@ -253,9 +258,10 @@ SDKMACHINE = \"i686\"
|
|||||||
f = []
|
f = []
|
||||||
for root, dirs, files in os.walk(d):
|
for root, dirs, files in os.walk(d):
|
||||||
if "core-image-sato" in root:
|
if "core-image-sato" in root:
|
||||||
# SDKMACHINE changing will change do_rootfs/do_testimage/do_build stamps of core-image-sato itself
|
# SDKMACHINE changing will change
|
||||||
# which is safe to ignore
|
# do_rootfs/do_testimage/do_build stamps of images which
|
||||||
continue
|
# is safe to ignore.
|
||||||
|
continue
|
||||||
f.extend(os.path.join(root, name) for name in files)
|
f.extend(os.path.join(root, name) for name in files)
|
||||||
return f
|
return f
|
||||||
files1 = get_files(topdir + "/tmp-sstatesamehash/stamps/")
|
files1 = get_files(topdir + "/tmp-sstatesamehash/stamps/")
|
||||||
|
|||||||
Reference in New Issue
Block a user