RFR: 8314283: Support for NSS tests on aarch64 platforms

Dingli Zhang dzhang at openjdk.org
Mon Aug 28 03:28:15 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.

Hi @mpdonova thanks for this PR!

I executed `sun/security/pkcs11/SampleTest.java` on linux-aarch64 but the nss test is skipped.

bash configure \
--with-jtreg=/home/dingli/jdk-tools/jtreg \
--disable-warnings-as-errors \
--with-boot-jdk=/home/dingli/jdk-bin/jdk-21 \
--with-debug-level=fastdebug \
--with-native-debug-symbols=none

make test TEST="jtreg:sun/security/pkcs11/SampleTest.java" JOBS=8


Log in `test-support/jtreg_test_jdk_sun_security_pkcs11_SampleTest_java/sun/security/pkcs11/SampleTest.jtr` :

===> testNSS: Starting test run
Cannot resolve artifact, please check if JIB jar is present in classpath.
Warning: unsupported OS: Linux-aarch64-64, please initialize NSS library location, skipping test
testNSS: Skipped
jtreg.SkippedException: testNSS: Problem loading NSS libraries
        at PKCS11Test.testNSS(PKCS11Test.java:563)
        at PKCS11Test.main(PKCS11Test.java:205)
        at PKCS11Test.main(PKCS11Test.java:168)
        at SampleTest.main(SampleTest.java:42)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1570)


The question here is do I need to set up the jib? I tried to use `bin/jib.sh` but I don't know how to set `JIB_SERVER`(`export JIB_SERVER=https://java.se.oracle.com/artifactory` doesn't seem to work). Could you give me some advice? Thanks a lot!

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

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



More information about the security-dev mailing list