Skip to content

Commit 86df8c2

Browse files
committed
8296631: NSS tests failing on OL9 linux-aarch64 hosts
Backport-of: 6e1aacdfba5a32f7b071eea8039888d275827e83
1 parent 3be0729 commit 86df8c2

File tree

11 files changed

+41
-15
lines changed

11 files changed

+41
-15
lines changed
36 KB
Binary file not shown.
52 KB
Binary file not shown.

test/jdk/sun/security/pkcs11/PKCS11Test.java

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,10 @@ private static Map<String, String[]> getOsMap() {
619619
osMap.put("Linux-arm-32", new String[]{
620620
"/usr/lib/arm-linux-gnueabi/nss/",
621621
"/usr/lib/arm-linux-gnueabihf/nss/"});
622-
// Exclude linux-aarch64 at the moment until the following bug is fixed:
623-
// 8296631: NSS tests failing on OL9 linux-aarch64 hosts
624-
// osMap.put("Linux-aarch64-64", new String[] {
625-
// "/usr/lib/aarch64-linux-gnu/",
626-
// "/usr/lib/aarch64-linux-gnu/nss/",
627-
// "/usr/lib64/" });
622+
osMap.put("Linux-aarch64-64", new String[] {
623+
"/usr/lib/aarch64-linux-gnu/",
624+
"/usr/lib/aarch64-linux-gnu/nss/",
625+
"/usr/lib64/" });
628626
return osMap;
629627
}
630628

@@ -847,14 +845,22 @@ protected void copyNssCertKeyToClassesDir() throws IOException {
847845

848846
protected void copyNssCertKeyToClassesDir(Path dbPath) throws IOException {
849847
Path destinationPath = Path.of(TEST_CLASSES);
850-
String keyDbFile = "key3.db";
851-
String certDbFile = "cert8.db";
848+
String keyDbFile3 = "key3.db";
849+
String keyDbFile4 = "key4.db";
850+
String certDbFile8 = "cert8.db";
851+
String certDbFile9 = "cert9.db";
852852

853-
Files.copy(dbPath.resolve(certDbFile),
854-
destinationPath.resolve(certDbFile),
853+
Files.copy(dbPath.resolve(certDbFile8),
854+
destinationPath.resolve(certDbFile8),
855855
StandardCopyOption.REPLACE_EXISTING);
856-
Files.copy(dbPath.resolve(keyDbFile),
857-
destinationPath.resolve(keyDbFile),
856+
Files.copy(dbPath.resolve(certDbFile9),
857+
destinationPath.resolve(certDbFile9),
858+
StandardCopyOption.REPLACE_EXISTING);
859+
Files.copy(dbPath.resolve(keyDbFile3),
860+
destinationPath.resolve(keyDbFile3),
861+
StandardCopyOption.REPLACE_EXISTING);
862+
Files.copy(dbPath.resolve(keyDbFile4),
863+
destinationPath.resolve(keyDbFile4),
858864
StandardCopyOption.REPLACE_EXISTING);
859865
}
860866

test/jdk/sun/security/pkcs11/Provider/MultipleLogins.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ esac
9898

9999
# first make cert/key DBs writable
100100

101+
${CP} ${TESTSRC}${FS}..${FS}nss${FS}db${FS}cert9.db ${TESTCLASSES}
102+
${CHMOD} +w ${TESTCLASSES}${FS}cert9.db
103+
104+
${CP} ${TESTSRC}${FS}..${FS}nss${FS}db${FS}key4.db ${TESTCLASSES}
105+
${CHMOD} +w ${TESTCLASSES}${FS}key4.db
106+
101107
${CP} ${TESTSRC}${FS}..${FS}nss${FS}db${FS}cert8.db ${TESTCLASSES}
102108
${CHMOD} +w ${TESTCLASSES}${FS}cert8.db
103109

19 KB
Binary file not shown.
25 KB
Binary file not shown.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
library=
22
name=NSS Internal PKCS #11 Module
3-
parameters=configdir='sql:./tmpdb' certPrefix='' keyPrefix='' secmod='' flags= updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription=''
4-
NSS=Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={slotFlags=[RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512] askpw=any timeout=30})
3+
parameters=configdir='sql:./tmpdb' certPrefix='' keyPrefix='' secmod='secmod.db' flags= updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription=''
4+
NSS=trustOrder=75 cipherOrder=100 slotParams={0x00000001=[slotFlags=RSA,RC4,RC2,DES,DH,SHA1,MD5,MD2,SSL,TLS,AES,RANDOM askpw=any timeout=30 ] } Flags=internal,critical
5+
6+
library=libnssckbi.so
7+
name=Builtin Roots Module
8+
NSS=trustOrder=100
9+

test/jdk/sun/security/pkcs11/SecmodTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class SecmodTest extends PKCS11Test {
3636
static String DBDIR;
3737
static char[] password = "test12".toCharArray();
3838
static String keyAlias = "mykey";
39-
static boolean useSqlite = false;
39+
static boolean useSqlite = true;
4040

4141
static void useSqlite(boolean b) {
4242
useSqlite = b;
28 KB
Binary file not shown.
36 KB
Binary file not shown.

0 commit comments

Comments
 (0)