[Native][tests] Gradle property kotlin.internal.native.test.compilerClasspath: when not specified compute the default value based on kotlin.internal.native.test.nativeHome property, or fallback to JAR artifact of :kotlin-native-compiler-embeddable project when kotlin.internal.native.test.nativeHome not specified.
This commit is contained in:
@@ -101,9 +101,14 @@ fun blackBoxTest(taskName: String, vararg tags: String) = projectTest(taskName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TestProperty.COMPILER_CLASSPATH.setUpFromGradleProperty(this) {
|
TestProperty.COMPILER_CLASSPATH.setUpFromGradleProperty(this) {
|
||||||
val kotlinNativeCompilerEmbeddable = configurations.detachedConfiguration(dependencies.project(":kotlin-native-compiler-embeddable"))
|
val customNativeHome = TestProperty.KOTLIN_NATIVE_HOME.readGradleProperty(this)
|
||||||
dependsOn(kotlinNativeCompilerEmbeddable)
|
if (customNativeHome != null) {
|
||||||
kotlinNativeCompilerEmbeddable.files.joinToString(";")
|
file(customNativeHome).resolve("konan/lib/kotlin-native-compiler-embeddable.jar").absolutePath
|
||||||
|
} else {
|
||||||
|
val kotlinNativeCompilerEmbeddable = configurations.detachedConfiguration(dependencies.project(":kotlin-native-compiler-embeddable"))
|
||||||
|
dependsOn(kotlinNativeCompilerEmbeddable)
|
||||||
|
kotlinNativeCompilerEmbeddable.files.joinToString(";")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass Gradle properties as JVM properties so test process can read them.
|
// Pass Gradle properties as JVM properties so test process can read them.
|
||||||
|
|||||||
Reference in New Issue
Block a user