From: Jaeyoon Jung <[email protected]> Add a selftest to verify that the pkgdata variable LICENSE is identical between libsystemd and lib32-libsystemd.
Signed-off-by: Jaeyoon Jung <[email protected]> --- meta/lib/oeqa/selftest/cases/pkgdata.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/pkgdata.py b/meta/lib/oeqa/selftest/cases/pkgdata.py index d786c33018..357578a240 100644 --- a/meta/lib/oeqa/selftest/cases/pkgdata.py +++ b/meta/lib/oeqa/selftest/cases/pkgdata.py @@ -225,3 +225,21 @@ class OePkgdataUtilTests(OESelftestTestCase): self.assertEqual(result.status, 2, "Status different than 2. output: %s" % result.output) currpos = result.output.find('usage: oe-pkgdata-util') self.assertTrue(currpos != -1, msg = "Test is Failed. Help is not Displayed in %s" % result.output) + + def test_multilib_variables(self): + # Set up a lib32 multilib configuration + self.write_config(""" +MACHINE:forcevariable = "qemux86-64" +require conf/multilib.conf +MULTILIBS = "multilib:lib32" +DEFAULTTUNE:virtclass-multilib-lib32 = "x86" +DISTRO_FEATURES:append = " systemd usrmerge" +""") + # Build systemd and lib32-systemd to get their pkgdata + bitbake('systemd lib32-systemd') + # Verify that LICENSE values of libsystemd and lib32-libsystemd are the same + pkg = runCmd('oe-pkgdata-util lookup-pkg libsystemd').output + pkg_lib32 = runCmd('oe-pkgdata-util lookup-pkg lib32-libsystemd').output + license = runCmd('oe-pkgdata-util read-value LICENSE %s' % pkg).output + license_lib32 = runCmd('oe-pkgdata-util read-value LICENSE %s' % pkg_lib32).output + self.assertEqual(license, license_lib32)
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#236547): https://lists.openembedded.org/g/openembedded-core/message/236547 Mute This Topic: https://lists.openembedded.org/mt/119183323/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
