Skip to content

Commit

Permalink
Rationalise test suite classes. (#1177)
Browse files Browse the repository at this point in the history
ConscryptJava7Suite is obsolete, and we no longer use
suites for anything but OpenJDK so merge ConscryptSuite into
ConscryptOpenJdkSuite. Ultimately I aim to stop using suites.

This is part of #1155 but splitting it out here to simplify that
change.
  • Loading branch information
prbprbprb authored Oct 24, 2023
1 parent 5daf264 commit deb0c22
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 344 deletions.
137 changes: 0 additions & 137 deletions common/src/test/java/org/conscrypt/ConscryptJava7Suite.java

This file was deleted.

167 changes: 0 additions & 167 deletions common/src/test/java/org/conscrypt/ConscryptSuite.java

This file was deleted.

20 changes: 2 additions & 18 deletions openjdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -315,28 +315,12 @@ def addNativeJar(NativeBuildInfo nativeBuild) {
publishing.publications.maven.artifact jarTask.get()
}


// TODO(prb) Still provide a mechanism for testing on Java 7?
// Check which version
//def javaError = new ByteArrayOutputStream()
//exec {
// executable test.executable
// System.out.println("Running tests with java executable: " + test.executable + ".")
// args = ['-version']
// ignoreExitValue true
// errorOutput = javaError
//}
//
//def suiteClass = (javaError.toString() =~ /"1[.]7[.].*"/) ?
// "org/conscrypt/ConscryptJava7Suite.class" : "org/conscrypt/ConscryptSuite.class";
def suiteClass = "org/conscrypt/ConscryptSuite.class";

test {
include suiteClass, "org/conscrypt/ConscryptOpenJdkSuite.class"
include "org/conscrypt/ConscryptOpenJdkSuite.class"
}

def testFdSocket = tasks.register("testFdSocket", Test) {
include suiteClass, "org/conscrypt/ConscryptOpenJdkSuite.class"
include "org/conscrypt/ConscryptOpenJdkSuite.class"
InvokerHelper.setProperties(testLogging, test.testLogging.properties)
systemProperties = test.systemProperties
systemProperty "org.conscrypt.useEngineSocketByDefault", false
Expand Down
Loading

0 comments on commit deb0c22

Please sign in to comment.