mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-30 04:58:25 +00:00
8216265: [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests
Also cleanup some switches over OSes and use File.pathSeparator. Reviewed-by: dholmes, mdoerr
This commit is contained in:
parent
2a932824aa
commit
084f0b75bd
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2017 Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,6 +34,7 @@ import java.util.Map;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.Path;
|
||||
|
||||
@ -69,14 +70,10 @@ public class GTestWrapper {
|
||||
// may have set LD_LIBRARY_PATH or LIBPATH to point to the jdk libjvm. In
|
||||
// that case, prepend the path with the location of the gtest library."
|
||||
|
||||
String ldLibraryPath = System.getenv("LD_LIBRARY_PATH");
|
||||
String pathVar = Platform.sharedLibraryPathVariableName();
|
||||
String ldLibraryPath = System.getenv(pathVar);
|
||||
if (ldLibraryPath != null) {
|
||||
env.put("LD_LIBRARY_PATH", path + ":" + ldLibraryPath);
|
||||
}
|
||||
|
||||
String libPath = System.getenv("LIBPATH");
|
||||
if (libPath != null) {
|
||||
env.put("LIBPATH", path + ":" + libPath);
|
||||
env.put(pathVar, path + File.pathSeparator + ldLibraryPath);
|
||||
}
|
||||
|
||||
pb.command(new String[] {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -68,8 +68,7 @@ public class SigTestDriver {
|
||||
Path test = Paths.get(System.getProperty("test.nativepath"))
|
||||
.resolve("sigtest")
|
||||
.toAbsolutePath();
|
||||
String envVar = Platform.isWindows() ? "PATH" :
|
||||
(Platform.isOSX() ? "DYLD_LIBRARY_PATH" : "LD_LIBRARY_PATH");
|
||||
String envVar = Platform.sharedLibraryPathVariableName();
|
||||
|
||||
List<String> cmd = new ArrayList<>();
|
||||
Collections.addAll(cmd,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -103,7 +103,7 @@ public class ExecDriver {
|
||||
if (launcher) {
|
||||
Path dir = Paths.get(Utils.TEST_JDK);
|
||||
String value;
|
||||
String name;
|
||||
String name = Platform.sharedLibraryPathVariableName();
|
||||
if (Platform.isWindows()) {
|
||||
value = dir.resolve("bin")
|
||||
.resolve(variant())
|
||||
@ -113,13 +113,11 @@ public class ExecDriver {
|
||||
value += dir.resolve("bin")
|
||||
.toAbsolutePath()
|
||||
.toString();
|
||||
name = "PATH";
|
||||
} else {
|
||||
value = dir.resolve("lib")
|
||||
.resolve(variant())
|
||||
.toAbsolutePath()
|
||||
.toString();
|
||||
name = Platform.isOSX() ? "DYLD_LIBRARY_PATH" : "LD_LIBRARY_PATH";
|
||||
}
|
||||
|
||||
System.out.println(" with " + name + " = " +
|
||||
|
||||
@ -77,17 +77,7 @@ public class TestDriver {
|
||||
nsk.jvmti.RetransformClasses.retransform003.class.getName()
|
||||
);
|
||||
|
||||
String envName;
|
||||
if (Platform.isWindows()) {
|
||||
envName = "PATH";
|
||||
} else if (Platform.isOSX()) {
|
||||
envName = "DYLD_LIBRARY_PATH";
|
||||
} else if (Platform.isAix()) {
|
||||
envName = "LIBPATH";
|
||||
} else {
|
||||
envName = "LD_LIBRARY_PATH";
|
||||
}
|
||||
|
||||
String envName = Platform.sharedLibraryPathVariableName();
|
||||
pb.environment()
|
||||
.merge(envName, ".", (x, y) -> y + File.pathSeparator + x);
|
||||
|
||||
|
||||
@ -67,17 +67,7 @@ public class TestDriver {
|
||||
nsk.jvmti.SetNativeMethodPrefix.SetNativeMethodPrefix002.class.getName()
|
||||
);
|
||||
|
||||
String envName;
|
||||
if (Platform.isWindows()) {
|
||||
envName = "PATH";
|
||||
} else if (Platform.isOSX()) {
|
||||
envName = "DYLD_LIBRARY_PATH";
|
||||
} else if (Platform.isAix()) {
|
||||
envName = "LIBPATH";
|
||||
} else {
|
||||
envName = "LD_LIBRARY_PATH";
|
||||
}
|
||||
|
||||
String envName = Platform.sharedLibraryPathVariableName();
|
||||
pb.environment()
|
||||
.merge(envName, ".", (x, y) -> y + File.pathSeparator + x);
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,10 +33,12 @@
|
||||
* @run main/othervm PrivateTransportTest
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.Utils;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
@ -71,17 +73,8 @@ public class PrivateTransportTest {
|
||||
}
|
||||
transportLib = foundLib.get();
|
||||
}
|
||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
||||
pathSep = ";";
|
||||
pathEnvVar = "PATH";
|
||||
} else {
|
||||
pathSep = ":";
|
||||
if (System.getProperty("os.name").equals("AIX")) {
|
||||
pathEnvVar = "LIBPATH";
|
||||
} else {
|
||||
pathEnvVar = "LD_LIBRARY_PATH";
|
||||
}
|
||||
}
|
||||
pathEnvVar = Platform.sharedLibraryPathVariableName();
|
||||
pathSep = File.pathSeparator;
|
||||
}
|
||||
|
||||
private void test() throws Throwable {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -67,7 +67,7 @@ public class InheritedChannelTest {
|
||||
private static final String ARCH = System.getProperty("os.arch");
|
||||
private static final String OS_ARCH = ARCH.equals("i386") ? "i586" : ARCH;
|
||||
|
||||
private static final Path LD_LIBRARY_PATH
|
||||
private static final Path libraryPath
|
||||
= Paths.get(System.getProperty("java.library.path"));
|
||||
|
||||
@DataProvider
|
||||
@ -98,7 +98,8 @@ public class InheritedChannelTest {
|
||||
|
||||
@Test(dataProvider = "testCases")
|
||||
public void test(String desc, List<String> opts) throws Throwable {
|
||||
System.out.println("LD_LIBRARY_PATH=" + LD_LIBRARY_PATH);
|
||||
String pathVar = Platform.sharedLibraryPathVariableName();
|
||||
System.out.println(pathVar + "=" + libraryPath);
|
||||
|
||||
List<String> args = new ArrayList<>();
|
||||
args.add(JDKToolFinder.getJDKTool("java"));
|
||||
@ -111,9 +112,8 @@ public class InheritedChannelTest {
|
||||
|
||||
Map<String, String> env = pb.environment();
|
||||
env.put("CLASSPATH", TEST_CLASSES);
|
||||
env.put("LD_LIBRARY_PATH", LD_LIBRARY_PATH.toString());
|
||||
env.put(pathVar, libraryPath.toString());
|
||||
|
||||
ProcessTools.executeCommand(pb)
|
||||
.shouldHaveExitValue(0);
|
||||
ProcessTools.executeCommand(pb).shouldHaveExitValue(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS buffer overflow and underflow status when dealing with
|
||||
* application data.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.base/sun.security.util
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS application data exchange using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites with replicated packets check.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites with different maximum fragment length. Testing of
|
||||
* MFLN extension.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines do not enable RC4 ciphers by default.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines re-handshaking using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing DTLS engines re-handshaking using each of the supported
|
||||
* cipher suites with application data exchange before and after
|
||||
* re-handshake and closing of the engines.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing that try to enable unsupported ciphers
|
||||
* causes IllegalArgumentException.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS buffer overflow and underflow status when dealing with
|
||||
* application data.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS application data exchange using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites with replicated packets check.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /javax/net/ssl/DTLS
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /javax/net/ssl/DTLS /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing DTLS engines handshake using each of the supported
|
||||
* cipher suites with different maximum fragment length. Testing of
|
||||
* MFLN extension.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines do not enable RC4 ciphers by default.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing DTLS engines re-handshaking using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing DTLS engines re-handshaking using each of the supported
|
||||
* cipher suites with application data exchange before and after
|
||||
* re-handshake and closing of the engines.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing DTLS records sequence number property support in application
|
||||
* data exchange.
|
||||
* @key randomness
|
||||
* @library /sun/security/krb5/auto /lib/testlibrary /javax/net/ssl/TLSCommon /javax/net/ssl/DTLS
|
||||
* @library /sun/security/krb5/auto /lib/testlibrary /javax/net/ssl/TLSCommon /javax/net/ssl/DTLS /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8043758
|
||||
* @summary Testing that try to enable unsupported ciphers
|
||||
* causes IllegalArgumentException.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS application data exchange using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites with different maximum fragment length. Testing of
|
||||
* MFLN extension.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines do not enable RC4 ciphers by default.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites with application data exchange before and after
|
||||
* re-handshake and closing of the engines.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing that try to enable unsupported ciphers
|
||||
* causes IllegalArgumentException.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS application data exchange using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites with different maximum fragment length. Testing of
|
||||
* MFLN extension.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines do not enable RC4 ciphers by default.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites with application data exchange before and after
|
||||
* re-handshake and closing of the engines.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing that try to enable unsupported ciphers
|
||||
* causes IllegalArgumentException.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS application data exchange using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines handshake using each of the supported
|
||||
* cipher suites with different maximum fragment length. Testing of
|
||||
* MFLN extension.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines do not enable RC4 ciphers by default.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -27,7 +27,7 @@
|
||||
* @summary Testing TLS engines re-handshaking using each of the supported
|
||||
* cipher suites with application data exchange before and after
|
||||
* re-handshake and closing of the engines.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8085979
|
||||
* @summary Testing that try to enable unsupported ciphers
|
||||
* causes IllegalArgumentException.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
* java.security.jgss/sun.security.krb5:+open
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,7 @@
|
||||
* @bug 8207009
|
||||
* @summary Testing TLS engines closing using each of the supported
|
||||
* cipher suites.
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon
|
||||
* @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
|
||||
* @modules java.security.jgss
|
||||
* jdk.security.auth
|
||||
* java.security.jgss/sun.security.jgss.krb5
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -307,8 +307,7 @@ public class BasicProc {
|
||||
.prop("sun.security.nativegss.debug", "true");
|
||||
int pos = lib.lastIndexOf('/');
|
||||
if (pos > 0) {
|
||||
p.env("LD_LIBRARY_PATH", lib.substring(0, pos));
|
||||
p.env("DYLD_LIBRARY_PATH", lib.substring(0, pos));
|
||||
p.env(Platform.sharedLibraryPathVariableName(), lib.substring(0, pos));
|
||||
}
|
||||
} else {
|
||||
p.perm(new java.util.PropertyPermission(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -21,6 +21,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@ -1722,8 +1724,7 @@ public class KDC {
|
||||
this.env = Map.of(
|
||||
"KRB5_CONFIG", base + "/krb5.conf",
|
||||
"KRB5_TRACE", "/dev/stderr",
|
||||
"DYLD_LIBRARY_PATH", nativePath + "/lib",
|
||||
"LD_LIBRARY_PATH", nativePath + "/lib");
|
||||
Platform.sharedLibraryPathVariableName(), nativePath + "/lib");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1815,8 +1816,7 @@ public class KDC {
|
||||
"KRB5_KDC_PROFILE", base + "/kdc.conf",
|
||||
"KRB5_CONFIG", base + "/krb5.conf",
|
||||
"KRB5_TRACE", "/dev/stderr",
|
||||
"DYLD_LIBRARY_PATH", nativePath + "/lib",
|
||||
"LD_LIBRARY_PATH", nativePath + "/lib");
|
||||
Platform.sharedLibraryPathVariableName(), nativePath + "/lib");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,6 +24,7 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 7032354
|
||||
* @library /test/lib
|
||||
* @run main/othervm NoAddresses setup
|
||||
* @run main/othervm -Djdk.net.hosts.file=TestHosts NoAddresses 1
|
||||
* @run main/othervm -Djdk.net.hosts.file=TestHosts NoAddresses 2
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -399,8 +399,7 @@ public class ReplayCacheTestProc {
|
||||
if (lib != null) {
|
||||
String libDir = lib.substring(0, lib.lastIndexOf('/'));
|
||||
p.prop("sun.security.jgss.lib", lib)
|
||||
.env("DYLD_LIBRARY_PATH", libDir)
|
||||
.env("LD_LIBRARY_PATH", libDir);
|
||||
.env(Platform.sharedLibraryPathVariableName(), libDir);
|
||||
}
|
||||
}
|
||||
Proc.d(label+suffix+" started");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -21,10 +21,10 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @bug 8075301
|
||||
* @library /sun/security/krb5/auto
|
||||
* @library /sun/security/krb5/auto /test/lib
|
||||
* @summary New test for sun.security.krb5.principal system property.
|
||||
* The principal can set using the system property sun.security.krb5.principal.
|
||||
* This property is checked during login. If this property is not set,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,6 +25,7 @@
|
||||
* @test
|
||||
* @bug 4780570 4731671 6354700 6367077 6670965 4882974
|
||||
* @summary Checks for LD_LIBRARY_PATH and execution on *nixes
|
||||
* @library /test/lib
|
||||
* @modules jdk.compiler
|
||||
* jdk.zipfs
|
||||
* @compile -XDignore.symbol.file ExecutionEnvironment.java
|
||||
@ -54,6 +55,9 @@
|
||||
* launcher may add as implementation details.
|
||||
* b. add a pldd for solaris to ensure only one libjvm.so is linked
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.util.ArrayList;
|
||||
@ -62,11 +66,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class ExecutionEnvironment extends TestHelper {
|
||||
static final String LD_LIBRARY_PATH = TestHelper.isMacOSX
|
||||
? "DYLD_LIBRARY_PATH"
|
||||
: TestHelper.isAIX
|
||||
? "LIBPATH"
|
||||
: "LD_LIBRARY_PATH";
|
||||
static final String LD_LIBRARY_PATH = Platform.sharedLibraryPathVariableName();
|
||||
static final String LD_LIBRARY_PATH_32 = LD_LIBRARY_PATH + "_32";
|
||||
static final String LD_LIBRARY_PATH_64 = LD_LIBRARY_PATH + "_64";
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,6 +35,7 @@ import jdk.test.lib.Utils;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@ -47,15 +48,11 @@ public class JliLaunchTest {
|
||||
System.out.println("Launcher = " + launcher + (Files.exists(launcher) ? " (exists)" : " (not exists)"));
|
||||
ProcessBuilder pb = new ProcessBuilder(launcher.toString(), "--version");
|
||||
Map<String, String> env = pb.environment();
|
||||
if (Platform.isWindows()) {
|
||||
// The DLL should be in JDK/bin
|
||||
String libdir = Paths.get(Utils.TEST_JDK).resolve("bin").toAbsolutePath().toString();
|
||||
env.compute("PATH", (k, v) -> (v == null) ? libdir : libdir + ";" + v);
|
||||
} else {
|
||||
String libdir = Paths.get(Utils.TEST_JDK).resolve("lib").toAbsolutePath().toString();
|
||||
String LD_LIBRARY_PATH = Platform.isOSX() ? "DYLD_LIBRARY_PATH" : "LD_LIBRARY_PATH";
|
||||
env.compute(LD_LIBRARY_PATH, (k, v) -> (v == null) ? libdir : libdir + ":" + v);
|
||||
}
|
||||
// On windows, the DLL should be in JDK/bin, else in JDK/lib.
|
||||
String libdir = Paths.get(Utils.TEST_JDK).resolve(Platform.isWindows() ? "bin" : "lib")
|
||||
.toAbsolutePath().toString();
|
||||
String pathEnvVar = Platform.sharedLibraryPathVariableName();
|
||||
env.compute(pathEnvVar, (k, v) -> (v == null) ? libdir : libdir + File.pathSeparator + v);
|
||||
|
||||
OutputAnalyzer outputf = new OutputAnalyzer(pb.start());
|
||||
outputf.shouldHaveExitValue(0);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -21,10 +21,11 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
/**
|
||||
* @test
|
||||
* @bug 7029048
|
||||
* @summary Checks for LD_LIBRARY_PATH on *nixes
|
||||
* @library /test/lib
|
||||
* @compile -XDignore.symbol.file ExecutionEnvironment.java Test7029048.java
|
||||
* @run main Test7029048
|
||||
*/
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
import java.util.Map;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.Utils;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
@ -47,7 +48,7 @@ public class JniInvocationTest {
|
||||
ProcessBuilder pb = new ProcessBuilder(launcher.toString());
|
||||
Map<String, String> env = pb.environment();
|
||||
String libdir = Paths.get(Utils.TEST_JDK).resolve("lib").toAbsolutePath().toString();
|
||||
env.compute("DYLD_LIBRARY_PATH", (k, v) -> (k == null) ? libdir : v + ":" + libdir);
|
||||
env.compute(Platform.sharedLibraryPathVariableName(), (k, v) -> (k == null) ? libdir : v + ":" + libdir);
|
||||
OutputAnalyzer outputf = new OutputAnalyzer(pb.start());
|
||||
outputf.shouldHaveExitValue(0);
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -325,6 +325,21 @@ public class Platform {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns name of system variable containing paths to shared native libraries.
|
||||
*/
|
||||
public static String sharedLibraryPathVariableName() {
|
||||
if (isWindows()) {
|
||||
return "PATH";
|
||||
} else if (isOSX()) {
|
||||
return "DYLD_LIBRARY_PATH";
|
||||
} else if (isAix()) {
|
||||
return "LIBPATH";
|
||||
} else {
|
||||
return "LD_LIBRARY_PATH";
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isDefaultCDSArchiveSupported() {
|
||||
return (is64bit() &&
|
||||
isServer() &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user