Home | History | Annotate | Download | only in openjdk-integ-tests
      1 description = 'Conscrypt: OpenJDK Integration Tests'
      2 
      3 evaluationDependsOn(':conscrypt-openjdk')
      4 
      5 def preferredNativeConfiguration = project(':conscrypt-openjdk').preferredNativeConfiguration
      6 def preferredNativeFileDir = project(':conscrypt-openjdk').preferredNativeFileDir
      7 
      8 sourceSets {
      9     main {
     10         resources {
     11             // This shouldn't be needed but seems to help IntelliJ locate the native artifact.
     12             srcDirs += preferredNativeFileDir
     13         }
     14     }
     15 }
     16 
     17 dependencies {
     18     compile project(':conscrypt-openjdk')
     19 
     20     // Add the preferred native openjdk configuration for this platform.
     21     compile project(path: ':conscrypt-openjdk', configuration: "$preferredNativeConfiguration")
     22 
     23     testCompile project(':conscrypt-constants'),
     24                 project(':conscrypt-testing')
     25 }
     26 
     27 // Add a second round of tests using the engine-based socket.
     28 task testEngineSocket(type: Test) {
     29     dependsOn testClasses
     30     // Use the engine socket by default.
     31     jvmArgs "-Dorg.conscrypt.useEngineSocketByDefault=true"
     32     testClassesDir = test.testClassesDir
     33     doFirst {
     34         classpath = test.classpath
     35     }
     36 }
     37 test.dependsOn testEngineSocket
     38 
     39 // Don't include this artifact in the distribution.
     40 tasks.install.enabled = false
     41 tasks.uploadArchives.enabled = false;
     42