equal
deleted
inserted
replaced
53 safeReload(LIBPATH + System.mapLibraryName("softokn3")); |
53 safeReload(LIBPATH + System.mapLibraryName("softokn3")); |
54 safeReload(LIBPATH + System.mapLibraryName("nssckbi")); |
54 safeReload(LIBPATH + System.mapLibraryName("nssckbi")); |
55 |
55 |
56 DBDIR = System.getProperty("test.classes", ".") + SEP + "tmpdb"; |
56 DBDIR = System.getProperty("test.classes", ".") + SEP + "tmpdb"; |
57 if (useSqlite) { |
57 if (useSqlite) { |
58 System.setProperty("pkcs11test.nss.db", "sql:/" + DBDIR); |
58 System.setProperty("pkcs11test.nss.db", "sql:" + DBDIR); |
59 } else { |
59 } else { |
60 System.setProperty("pkcs11test.nss.db", DBDIR); |
60 System.setProperty("pkcs11test.nss.db", DBDIR); |
61 } |
61 } |
62 File dbdirFile = new File(DBDIR); |
62 File dbdirFile = new File(DBDIR); |
63 if (dbdirFile.exists() == false) { |
63 if (dbdirFile.exists() == false) { |
65 } |
65 } |
66 |
66 |
67 if (useSqlite) { |
67 if (useSqlite) { |
68 copyFile("key4.db", BASE, DBDIR); |
68 copyFile("key4.db", BASE, DBDIR); |
69 copyFile("cert9.db", BASE, DBDIR); |
69 copyFile("cert9.db", BASE, DBDIR); |
|
70 copyFile("pkcs11.txt", BASE, DBDIR); |
70 } else { |
71 } else { |
71 copyFile("secmod.db", BASE, DBDIR); |
72 copyFile("secmod.db", BASE, DBDIR); |
72 copyFile("key3.db", BASE, DBDIR); |
73 copyFile("key3.db", BASE, DBDIR); |
73 copyFile("cert8.db", BASE, DBDIR); |
74 copyFile("cert8.db", BASE, DBDIR); |
74 } |
75 } |