diff options
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 | ||
