Message ID | 20230406173903.23459-2-gowtham.sureshkumar@arm.com |
---|---|
State | New |
Headers | show |
Series | Update parsec and parsec-tool recipes | expand |
On 4/6/23 1:39 PM, Gowtham Suresh Kumar wrote: > From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Does this apply to older versions ? - armin > > Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> > --- > meta-parsec/lib/oeqa/runtime/cases/parsec.py | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py b/meta-parsec/lib/oeqa/runtime/cases/parsec.py > index 6be84ba..71061db 100644 > --- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py > +++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py > @@ -53,10 +53,10 @@ class ParsecTest(OERuntimeTestCase): > self.assertIn("ID: 0x0%d (%s provider)" % (prov_id, provider), > output, msg='%s provider is not configured.' % provider) > > - def run_cli_tests(self, prov_id=None): > + def run_cli_tests(self, prov_id=None, extra_params=""): > """ Run Parsec CLI end-to-end tests against one or all providers """ > > - status, output = self.target.run('parsec-cli-tests.sh %s' % ("-%d" % prov_id if prov_id else "")) > + status, output = self.target.run('parsec-cli-tests.sh %s %s' % ("-%d" % prov_id if prov_id else "", extra_params)) > self.assertEqual(status, 0, msg='Parsec CLI tests failed.\n %s' % output) > > def check_packageconfig(self, prov): > @@ -181,7 +181,9 @@ class ParsecTest(OERuntimeTestCase): > self.configure_pkcs11_provider() > self.check_parsec_providers("PKCS #11", prov_id) > > - self.run_cli_tests(prov_id) > + # Software PKCS11 we use for OE QA testing > + # doesn't support RSA-OAEP(SHA256) encryption/decryption operations > + self.run_cli_tests(prov_id, "--no-oaep") > self.restore_parsec_config() > > def configure_TS_provider(self): > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#59634): https://lists.yoctoproject.org/g/yocto/message/59634 > Mute This Topic: https://lists.yoctoproject.org/mt/98110115/3616698 > Group Owner: yocto+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [akuster808@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Thu, Apr 6, 2023 at 12:04 PM, Armin Kuster wrote: > > Does this apply to older versions ? No, it's required only after upgrade parsec-tool to 0.6.0. This version introduces new tests which are no supported by softhsm2 Cheers, Anton
diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py b/meta-parsec/lib/oeqa/runtime/cases/parsec.py index 6be84ba..71061db 100644 --- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py +++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py @@ -53,10 +53,10 @@ class ParsecTest(OERuntimeTestCase): self.assertIn("ID: 0x0%d (%s provider)" % (prov_id, provider), output, msg='%s provider is not configured.' % provider) - def run_cli_tests(self, prov_id=None): + def run_cli_tests(self, prov_id=None, extra_params=""): """ Run Parsec CLI end-to-end tests against one or all providers """ - status, output = self.target.run('parsec-cli-tests.sh %s' % ("-%d" % prov_id if prov_id else "")) + status, output = self.target.run('parsec-cli-tests.sh %s %s' % ("-%d" % prov_id if prov_id else "", extra_params)) self.assertEqual(status, 0, msg='Parsec CLI tests failed.\n %s' % output) def check_packageconfig(self, prov): @@ -181,7 +181,9 @@ class ParsecTest(OERuntimeTestCase): self.configure_pkcs11_provider() self.check_parsec_providers("PKCS #11", prov_id) - self.run_cli_tests(prov_id) + # Software PKCS11 we use for OE QA testing + # doesn't support RSA-OAEP(SHA256) encryption/decryption operations + self.run_cli_tests(prov_id, "--no-oaep") self.restore_parsec_config() def configure_TS_provider(self):