Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8265227: Move Proc.java from security/testlibrary to test/lib #3496

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -26,7 +26,7 @@
* @bug 8009977 8186884 8194486 8201627
* @summary A test to launch multiple Java processes using either Java GSS
* or native GSS
* @library ../../../../java/security/testlibrary/ /test/lib
* @library /test/lib
* @compile -XDignore.symbol.file BasicProc.java
* @run main jdk.test.lib.FileInstaller TestHosts TestHosts
* @run main/othervm -Djdk.net.hosts.file=TestHosts BasicProc launcher
@@ -41,6 +41,7 @@

import jdk.test.lib.Asserts;
import jdk.test.lib.Platform;
import jdk.test.lib.security.Proc;
import org.ietf.jgss.Oid;
import sun.security.krb5.Config;

@@ -26,19 +26,19 @@
* @bug 8044500 8194486
* @summary Add kinit options and krb5.conf flags that allow users to
* obtain renewable tickets and specify ticket lifetimes
* @library ../../../../java/security/testlibrary/ /test/lib
* @library /test/lib
* @compile -XDignore.symbol.file Renewal.java
* @run main jdk.test.lib.FileInstaller TestHosts TestHosts
* @run main/othervm -Djdk.net.hosts.file=TestHosts Renewal
*/

import jdk.test.lib.security.Proc;
import sun.security.krb5.Config;
import sun.security.krb5.internal.ccache.Credentials;
import sun.security.krb5.internal.ccache.FileCredentialsCache;

import javax.security.auth.kerberos.KerberosTicket;
import java.util.Date;
import java.util.Random;
import java.util.Set;

// The basic krb5 test skeleton you can copy from
@@ -25,7 +25,7 @@
* @test
* @bug 7152176 8168518 8172017 8014628 8194486
* @summary More krb5 tests
* @library ../../../../java/security/testlibrary/ /test/lib
* @library /test/lib
* @build jdk.test.lib.Platform
* @run main jdk.test.lib.FileInstaller TestHosts TestHosts
* @run main/othervm/timeout=300 -Djdk.net.hosts.file=TestHosts
@@ -49,6 +49,7 @@

import jdk.test.lib.Asserts;
import jdk.test.lib.Platform;
import jdk.test.lib.security.Proc;
import sun.security.jgss.GSSUtil;
import sun.security.krb5.internal.rcache.AuthTime;

@@ -27,7 +27,7 @@
* @summary testing jdk.krb5.rcache.useMD5. This action is put in a separate
* test so that ReplayCacheTestProc.java can be launched with special
* test.* system properties easily.
* @library ../../../../java/security/testlibrary/ /test/lib
* @library /test/lib
* @build jdk.test.lib.Platform
* @run main jdk.test.lib.FileInstaller TestHosts TestHosts
* @run main/othervm/timeout=300 -Djdk.krb5.rcache.useMD5=true
@@ -26,7 +26,7 @@
* @bug 7158329
* @bug 8001208
* @summary NPE in sun.security.krb5.Credentials.acquireDefaultCreds()
* @library ../../../../java/security/testlibrary/
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.security.jgss/sun.security.krb5
* java.security.jgss/sun.security.krb5.internal.ccache
@@ -35,6 +35,8 @@
* @run main EmptyCC FILE:tmpcc
*/
import java.io.File;

import jdk.test.lib.security.Proc;
import sun.security.krb5.Credentials;
import sun.security.krb5.PrincipalName;
import sun.security.krb5.internal.ccache.CredentialsCache;
@@ -25,7 +25,7 @@
* @test
* @bug 8164705 8168410
* @summary check compatibility after FilePermission change
* @library /java/security/testlibrary/
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @run main CompatImpact prepare
* @run main CompatImpact builtin
@@ -34,6 +34,8 @@
* @run main CompatImpact dopriv
*/

import jdk.test.lib.security.Proc;

import java.io.File;
import java.io.FilePermission;
import java.nio.file.Files;
@@ -24,11 +24,12 @@
/*
* @test
* @bug 8164705 8209901
* @library /test/jdk/java/security/testlibrary
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @summary check jdk.filepermission.canonicalize
*/

import jdk.test.lib.security.Proc;
import java.io.File;
import java.io.FilePermission;
import java.lang.*;
@@ -21,6 +21,8 @@
* questions.
*/

package jdk.test.lib.security;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;