Skip to content

Commit c21a12d

Browse files
committed
8296631: NSS tests failing on OL9 linux-aarch64 hosts
Reviewed-by: aph Backport-of: 6e1aacdfba5a32f7b071eea8039888d275827e83
1 parent d44b5dc commit c21a12d

File tree

11 files changed

+41
-15
lines changed

11 files changed

+41
-15
lines changed
Binary file not shown.
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
@@ -627,12 +627,10 @@ private static Map<String, String[]> getOsMap() {
627627
osMap.put("Linux-arm-32", new String[]{
628628
"/usr/lib/arm-linux-gnueabi/nss/",
629629
"/usr/lib/arm-linux-gnueabihf/nss/"});
630-
// Exclude linux-aarch64 at the moment until the following bug is fixed:
631-
// 8296631: NSS tests failing on OL9 linux-aarch64 hosts
632-
// osMap.put("Linux-aarch64-64", new String[] {
633-
// "/usr/lib/aarch64-linux-gnu/",
634-
// "/usr/lib/aarch64-linux-gnu/nss/",
635-
// "/usr/lib64/" });
630+
osMap.put("Linux-aarch64-64", new String[] {
631+
"/usr/lib/aarch64-linux-gnu/",
632+
"/usr/lib/aarch64-linux-gnu/nss/",
633+
"/usr/lib64/" });
636634
return osMap;
637635
}
638636

@@ -910,14 +908,22 @@ protected void copyNssCertKeyToClassesDir() throws IOException {
910908

911909
protected void copyNssCertKeyToClassesDir(Path dbPath) throws IOException {
912910
Path destinationPath = Path.of(TEST_CLASSES);
913-
String keyDbFile = "key3.db";
914-
String certDbFile = "cert8.db";
911+
String keyDbFile3 = "key3.db";
912+
String keyDbFile4 = "key4.db";
913+
String certDbFile8 = "cert8.db";
914+
String certDbFile9 = "cert9.db";
915915

916-
Files.copy(dbPath.resolve(certDbFile),
917-
destinationPath.resolve(certDbFile),
916+
Files.copy(dbPath.resolve(certDbFile8),
917+
destinationPath.resolve(certDbFile8),
918918
StandardCopyOption.REPLACE_EXISTING);
919-
Files.copy(dbPath.resolve(keyDbFile),
920-
destinationPath.resolve(keyDbFile),
919+
Files.copy(dbPath.resolve(certDbFile9),
920+
destinationPath.resolve(certDbFile9),
921+
StandardCopyOption.REPLACE_EXISTING);
922+
Files.copy(dbPath.resolve(keyDbFile3),
923+
destinationPath.resolve(keyDbFile3),
924+
StandardCopyOption.REPLACE_EXISTING);
925+
Files.copy(dbPath.resolve(keyDbFile4),
926+
destinationPath.resolve(keyDbFile4),
921927
StandardCopyOption.REPLACE_EXISTING);
922928
}
923929

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;
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)