Enable building rpm with rpm-seqouia for the test. Set SEQUOIA_CRYPTO_POLICY="" to use the default built-in crypto policy.
Signed-off-by: Zoltán Böszörményi <[email protected]> --- meta/lib/oeqa/selftest/cases/signing.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/signing.py b/meta/lib/oeqa/selftest/cases/signing.py index 51d1c3fa64..9a820ebc72 100644 --- a/meta/lib/oeqa/selftest/cases/signing.py +++ b/meta/lib/oeqa/selftest/cases/signing.py @@ -71,7 +71,6 @@ class Signing(OESelftestTestCase): """ import oe.packagedata - self.skipTest('This test requires rpm-sequoia support in rpm') self.setup_gpg() package_classes = get_bb_var('PACKAGE_CLASSES') @@ -84,9 +83,14 @@ class Signing(OESelftestTestCase): feature += 'RPM_GPG_PASSPHRASE = "test123"\n' feature += 'RPM_GPG_NAME = "testuser"\n' feature += 'GPG_PATH = "%s"\n' % self.gpg_dir + feature += 'PACKAGECONFIG:append:pn-rpm-native = " sequoia"\n' + feature += 'PACKAGECONFIG:append:pn-rpm = " sequoia"\n' self.write_config(feature) + # Test rpm-sequoia's default built-in policy + os.environ['SEQUOIA_CRYPTO_POLICY'] = '' + bitbake('-c clean %s' % test_recipe) bitbake('-f -c package_write_rpm %s' % test_recipe) @@ -152,6 +156,9 @@ class Signing(OESelftestTestCase): self.write_config(feature) + # Test rpm-sequoia's default built-in policy + os.environ['SEQUOIA_CRYPTO_POLICY'] = '' + with self.create_new_builddir(os.environ['BUILDDIR'], builddir): os.environ["PATH"] = nsysroot + ":" + os.environ["PATH"] @@ -198,6 +205,9 @@ class LockedSignatures(OESelftestTestCase): feature += 'SIGGEN_LOCKEDSIGS_TASKSIG_CHECK = "warn"\n' self.write_config(feature) + # Test rpm-sequoia's default built-in policy + os.environ['SEQUOIA_CRYPTO_POLICY'] = '' + # Build a locked recipe bitbake(test_recipe) -- 2.48.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#210648): https://lists.openembedded.org/g/openembedded-core/message/210648 Mute This Topic: https://lists.openembedded.org/mt/110969405/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
