Skip to content

public_key: Skip DSA tests when crypto lacks DSA support#11273

Open
u3s wants to merge 1 commit into
erlang:maintfrom
u3s:kuba/public_key/test_fixup_dsa_guard
Open

public_key: Skip DSA tests when crypto lacks DSA support#11273
u3s wants to merge 1 commit into
erlang:maintfrom
u3s:kuba/public_key/test_fixup_dsa_guard

Conversation

@u3s

@u3s u3s commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

LibreSSL (shipped by OpenBSD) disables DSA, causing public_key_SUITE:dsa_sign_verify, public_key_SUITE:pkix_path_validation, and pkits_SUITE:valid_dsa_signature to crash with
{notsup, "Unsupported algorithm"} on OpenBSD 7.8.

Add init_per_testcase guards that check
crypto:supports(public_keys) for dss, matching the pattern already used for eddsa, mldsa, and slh_dsa tests.

For pkix_path_validation, fall back to RSA keys when DSA is unavailable since the test validates path validation logic, not the specific key algorithm.

@u3s u3s self-assigned this Jun 22, 2026
@u3s u3s added the team:PS Assigned to OTP team PS label Jun 22, 2026
@u3s u3s requested a review from IngelaAndin June 22, 2026 10:37
@u3s u3s added the testing currently being tested, tag is used by OTP internal CI label Jun 22, 2026
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

  2 files   18 suites   4m 6s ⏱️
313 tests 305 ✅ 8 💤 0 ❌
330 runs  322 ✅ 8 💤 0 ❌

Results for commit e0d34e2.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

LibreSSL (shipped by OpenBSD) disables DSA, causing
public_key_SUITE:dsa_sign_verify, public_key_SUITE:pkix_path_validation,
and pkits_SUITE:valid_dsa_signature to crash with
{notsup, "Unsupported algorithm"} on OpenBSD 7.8.

Add init_per_testcase guards that check
crypto:supports(public_keys) for dss, matching the pattern
already used for eddsa, mldsa, and slh_dsa tests.

For pkix_path_validation, fall back to RSA keys when DSA is
unavailable since the test validates path validation logic,
not the specific key algorithm.
@u3s u3s force-pushed the kuba/public_key/test_fixup_dsa_guard branch from 5d62a9c to e0d34e2 Compare June 22, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant