summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-02-09 21:49:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:27:28 +0000
commit14e8026cc25394b0a6d1d2063dc36b6b295857e5 (patch)
tree2b28c136a1625d9d9c9fa99eaf8d23a9af9b51c5 /meta
parent91c1235a1614a0b097f0a9efdd13436412a35387 (diff)
downloadopenembedded-core-14e8026cc25394b0a6d1d2063dc36b6b295857e5.tar.gz
openembedded-core-14e8026cc25394b0a6d1d2063dc36b6b295857e5.tar.bz2
openembedded-core-14e8026cc25394b0a6d1d2063dc36b6b295857e5.zip
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. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py34
1 files changed, 20 insertions, 14 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py
index 643dd38647..43a008d555 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -223,28 +223,33 @@ class SStateTests(SStateBase):
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
+ 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.
-
- 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')
targetvendor = get_bb_var('TARGET_VENDOR')
self.write_config("""
-TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
-BUILD_ARCH = \"x86_64\"
-BUILD_OS = \"linux\"
-SDKMACHINE = \"x86_64\"
+MACHINE = "qemux86"
+TMPDIR = "${TOPDIR}/tmp-sstatesamehash"
+BUILD_ARCH = "x86_64"
+BUILD_OS = "linux"
+SDKMACHINE = "x86_64"
+PARALLEL_MAKE = "-j 1"
""")
self.track_for_cleanup(topdir + "/tmp-sstatesamehash")
bitbake("core-image-sato -S none")
self.write_config("""
-TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
-BUILD_ARCH = \"i686\"
-BUILD_OS = \"linux\"
-SDKMACHINE = \"i686\"
+MACHINE = "qemux86"
+TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
+BUILD_ARCH = "i686"
+BUILD_OS = "linux"
+SDKMACHINE = "i686"
+PARALLEL_MAKE = "-j 2"
""")
self.track_for_cleanup(topdir + "/tmp-sstatesamehash2")
bitbake("core-image-sato -S none")
@@ -253,9 +258,10 @@ SDKMACHINE = \"i686\"
f = []
for root, dirs, files in os.walk(d):
if "core-image-sato" in root:
- # SDKMACHINE changing will change do_rootfs/do_testimage/do_build stamps of core-image-sato itself
- # which is safe to ignore
- continue
+ # SDKMACHINE changing will change
+ # do_rootfs/do_testimage/do_build stamps of images which
+ # is safe to ignore.
+ continue
f.extend(os.path.join(root, name) for name in files)
return f
files1 = get_files(topdir + "/tmp-sstatesamehash/stamps/")