Re: [PATCH v3] unit: Skip tests that rely on PKCS#8 when parser is missing
Marcel Holtmann <[email protected]> Fri, 20 Feb 2026 10:57:31 +0100
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
Hi Bastien, > Add pre-check to tests that need the pkcs8_key_parser module loaded > (whether built-in or external), and allow tests that rely on it to = fail. >=20 > This makes it possible to run the test suite successfully even on > systems where we might not be able to load modules if they're missing > such as CIs, or other systems where we lack permissions. >=20 > The test definitions were further simplified by using macros to avoid > repeated test definition arguments, including the PKCS#8 precheck. >=20 > --- > Changes since v2: > - Use macros for the encrypted pkey and load_file tests >=20 > Changes since v1: > - Use precheck test mechanism instead of flags >=20 >=20 > unit/test-pem.c | 124 ++++++++++++++++++++++-------------------------- > 1 file changed, 58 insertions(+), 66 deletions(-) patch has been applied, but I fixed the whitespace damage and changed = the comment style. Regards Marcel