Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TEST.ROOT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maxOutputSize=1000000
62 changes: 61 additions & 1 deletion cryptotest/CryptoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,69 @@
import java.util.ArrayList;
import java.util.List;

// generated as
// a=`find cryptotest/ | grep .java | sed s/.java// | sed "s;/;.;g"`
// b=`echo $a` ; # to avoid quotes effect
// for x in `ls | grep .java` ; do sed -i "s/@build.*/@build $b/" $x ; done
/*
* IwishThisCouldBeAtTest
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* java.base/sun.security.x509
* java.security.jgss/sun.security.jgss
* java.security.jgss/sun.security.jgss.krb5
* java.security.jgss/sun.security.krb5
* java.smartcardio/javax.smartcardio
* java.xml.crypto/org.jcp.xml.dsig.internal.dom
* jdk.crypto.ec/sun.security.ec
* @bug 6666666
* @library /
* @build cryptotest.CryptoTest
* cryptotest.Settings
* cryptotest.tests.AlgorithmParameterGeneratorTests
* cryptotest.tests.AlgorithmParametersTests
* cryptotest.tests.CertificateFactoryTests
* cryptotest.tests.CertPathBuilderTests
* cryptotest.tests.CertPathValidatorTests
* cryptotest.tests.CertStoreTests
* cryptotest.tests.CipherTests
* cryptotest.tests.ConfigurationTests
* cryptotest.tests.GssApiMechanismTests
* cryptotest.tests.KeyAgreementTests
* cryptotest.tests.KeyFactoryTests
* cryptotest.tests.KeyGeneratorTests
* cryptotest.tests.KeyInfoFactoryTests
* cryptotest.tests.KeyManagerFactoryTests
* cryptotest.tests.KeyPairGeneratorTests
* cryptotest.tests.KeyStoreTests
* cryptotest.tests.MacTests
* cryptotest.tests.MessageDigestTests
* cryptotest.tests.PolicyTests
* cryptotest.tests.SaslClientFactoryTests
* cryptotest.tests.SaslServerFactoryTests
* cryptotest.tests.SecretKeyFactoryTests
* cryptotest.tests.SecureRandomTests
* cryptotest.tests.SignatureTests
* cryptotest.tests.SSLContextTests
* cryptotest.tests.TerminalFactoryTests
* cryptotest.tests.TestProviders
* cryptotest.tests.TestServices
* cryptotest.tests.TransformServiceTests
* cryptotest.tests.TrustManagerFactoryTests
* cryptotest.tests.XMLSignatureFactoryTest
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.ClassFinder
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.Misc
* cryptotest.utils.TestResult
* cryptotest.utils.Xml
* @run main/othervm/timeout=600 cryptotest.CryptoTest
*/

public class CryptoTest {

/**
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/AlgorithmParameterGeneratorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1422738
* @library /
* @build cryptotest.tests.AlgorithmParameterGeneratorTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm/timeout=10000 cryptotest.tests.AlgorithmParameterGeneratorTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/AlgorithmParametersTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1022017
* @library /
* @build cryptotest.tests.AlgorithmParametersTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.AlgorithmParametersTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
19 changes: 19 additions & 0 deletions cryptotest/tests/CertPathBuilderTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* java.base/sun.security.x509
* @bug 1422738
* @library /
* @build cryptotest.tests.CertPathBuilderTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.CertPathBuilderTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/CertPathValidatorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1022017
* @library /
* @build cryptotest.tests.CertPathValidatorTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.CertPathValidatorTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/CertificateFactoryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1422738
* @library /
* @build cryptotest.tests.CertificateFactoryTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.CertificateFactoryTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
18 changes: 18 additions & 0 deletions cryptotest/tests/CipherTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* @bug 1022017
* @library /
* @build cryptotest.tests.CipherTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.CipherTests
*/

package cryptotest.tests;

import cryptotest.Settings;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/ConfigurationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1422738
* @library /
* @build cryptotest.tests.ConfigurationTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.ConfigurationTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
18 changes: 18 additions & 0 deletions cryptotest/tests/GssApiMechanismTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.security.jgss/sun.security.jgss
* java.security.jgss/sun.security.jgss.krb5
* java.security.jgss/sun.security.krb5
* @bug 1022017
* @library /
* @build cryptotest.tests.GssApiMechanismTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.Misc
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.GssApiMechanismTests
*/

package cryptotest.tests;

import cryptotest.Settings;
Expand Down
19 changes: 19 additions & 0 deletions cryptotest/tests/KeyAgreementTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* jdk.crypto.ec/sun.security.ec
* @bug 1422738
* @library /
* @build cryptotest.tests.KeyAgreementTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.Misc
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyAgreementTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
19 changes: 19 additions & 0 deletions cryptotest/tests/KeyFactoryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* @bug 1022017
* @library /
* @build cryptotest.tests.KeyFactoryTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyFactoryTests
*/


package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
18 changes: 18 additions & 0 deletions cryptotest/tests/KeyGeneratorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* @bug 1422738
* @library /
* @build cryptotest.tests.KeyGeneratorTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyGeneratorTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
19 changes: 19 additions & 0 deletions cryptotest/tests/KeyInfoFactoryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* java.base/com.sun.crypto.provider
* java.base/sun.security.internal.spec
* java.base/sun.security.ssl
* java.xml.crypto/org.jcp.xml.dsig.internal.dom
* @bug 1022017
* @library /
* @build cryptotest.tests.KeyInfoFactoryTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.KeysNaiveGenerator
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyInfoFactoryTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/KeyManagerFactoryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1422738
* @library /
* @build cryptotest.tests.KeyManagerFactoryTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyManagerFactoryTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
14 changes: 14 additions & 0 deletions cryptotest/tests/KeyPairGeneratorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
* THE SOFTWARE.
*/

/*
* @test
* @modules java.base/java.security:open
* @bug 1022017
* @library /
* @build cryptotest.tests.KeyPairGeneratorTests
* cryptotest.Settings
* cryptotest.utils.AlgorithmInstantiationException
* cryptotest.utils.AlgorithmRunException
* cryptotest.utils.AlgorithmTest
* cryptotest.utils.TestResult
* @run main/othervm cryptotest.tests.KeyPairGeneratorTests
*/

package cryptotest.tests;

import cryptotest.utils.AlgorithmInstantiationException;
Expand Down
Loading