diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-30 17:43:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-01 21:45:57 +0100 |
commit | 2d7df9be8deb928b0a3d55104cd650374be75d6c (patch) | |
tree | f4083a6fca06592bc239c27c384639d7bb79d696 /meta/lib/oeqa/selftest/sstatetests.py | |
parent | ff8fa4cea0c6d1e8e659ebfde5cd3f0cbe50c1f2 (diff) | |
download | poky-2d7df9be8deb928b0a3d55104cd650374be75d6c.tar.gz |
oeqa/sstatetests: Add test for multilib allarch checksums
Switching between multilib configurations should not change allarch recipe
or nativesdk checksums. Add a new sstate test for this based on the standard
allarch test.
(From OE-Core rev: 660543601171f88c75fb4e90f34dac86037f3f23)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/sstatetests.py')
-rw-r--r-- | meta/lib/oeqa/selftest/sstatetests.py | 45 |
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 = """ | ||
315 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | ||
316 | MACHINE = \"qemux86-64\" | ||
317 | """ | ||
318 | configB = """ | ||
319 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | ||
320 | MACHINE = \"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 = """ | ||
333 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | ||
334 | MACHINE = \"qemux86-64\" | ||
335 | require conf/multilib.conf | ||
336 | MULTILIBS = \"multilib:lib32\" | ||
337 | DEFAULTTUNE_virtclass-multilib-lib32 = \"x86\" | ||
338 | """ | ||
339 | configB = """ | ||
340 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | ||
341 | MACHINE = \"qemuarm\" | ||
342 | require conf/multilib.conf | ||
343 | MULTILIBS = \"\" | ||
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) |
318 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | ||
319 | MACHINE = \"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) |
324 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | ||
325 | MACHINE = \"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 | ||