RFR: 8314283: Support for NSS tests on aarch64 platforms

Matthew Donovan mdonovan at openjdk.org
Tue Aug 29 11:55:09 UTC 2023


On Fri, 25 Aug 2023 13:02:39 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:

> This PR updates the version of NSS to 3.91 and includes aarch64 platforms.
> 
> There is a related bug in PR (https://github.com/openjdk/jdk/pull/15217) so we may want to wait for that to merge before merging this one.

If you have a local copy of NSS you can run the tests with jtreg instead of make. The tests expect a directory structure that looks like this:

nss/
   lib/


When I built NSS 3.91 locally, the final binaries were in `nss-3.91/dist/Debug/`. I created a directory, `nss`, and copied the bin, lib, and include directories into it:

% ls $HOME/nss-3.91/dist/Debug/nss
bin/	  include/	  lib/
``` 

I can run the test with jtreg by specifying the path in a system property:

jtreg -verbose:summary -ea -esa -a -agentvm -conc:4 -report:executed  \
    -Djdk.test.lib.artifacts.nsslib-macosx_aarch64=$HOME/nss-3.91/dist/Debug \
    test/jdk/sun/security/pkcs11/SampleTest.java


The final component of the system property will depend on that platform you're running the test on and some of the jtreg arguments and paths will be different on your machine.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15429#issuecomment-1697295018



More information about the security-dev mailing list