adoptium / adoptium/aqa-tests

jdk22+ PKCS11 nss testing requires `-Djdk.test.lib.artifacts.nsslib-<platform>=<nss location>`

Open
#4,962 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

As of https://github.com/openjdk/jdk22/commit/6ce0ebb858d3112f136e12d3ad595f805f6871a0 there is a test requirement to set `-Djdk.test.lib.artifacts.nsslib-=` when running PKCS11 nss tests, otherwise the tests are just skipped.

i.e. if the option is not set
`jtreg.SkippedException: Warning: unsupported OS: Linux-amd64-64, please initialize NSS library location, skipping test`

An example test is sun/security/pkcs11/ec/ReadCertificates.java in jdk_security3.

Contributor guide

Open the contributing guide

Research direction

Start with sun/security/pkcs11/ec/ReadCertificates.java in jdk_security3 and review how PKCS11 NSS tests are launched. Trace where the jdk.test.lib.artifacts.nsslib- property is configured, then verify with jtreg that the test no longer reports the unsupported-OS skip when the NSS location is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.