jdk22+ PKCS11 nss testing requires `-Djdk.test.lib.artifacts.nsslib-<platform>=<nss location>`
- 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
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