Explicitly specify test dist dependencies
This commit is contained in:
@@ -123,4 +123,27 @@ fun AbstractCopyTask.fromEmbeddedComponents() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: it seems incomplete, find and add missing dependencies
|
||||||
|
val testDistProjects = listOf(
|
||||||
|
"", // for root project
|
||||||
|
":kotlin-stdlib:jvm-minimal-for-test",
|
||||||
|
":kotlin-compiler",
|
||||||
|
":kotlin-script-runtime",
|
||||||
|
":kotlin-stdlib",
|
||||||
|
":kotlin-stdlib-jre7",
|
||||||
|
":kotlin-stdlib-jre8",
|
||||||
|
":kotlin-stdlib-jdk7",
|
||||||
|
":kotlin-stdlib-jdk8",
|
||||||
|
":kotlin-stdlib-js",
|
||||||
|
":kotlin-reflect",
|
||||||
|
":kotlin-test:kotlin-test-jvm",
|
||||||
|
":kotlin-test:kotlin-test-junit",
|
||||||
|
":kotlin-test:kotlin-test-js",
|
||||||
|
":kotlin-preloader",
|
||||||
|
":plugins:android-extensions-compiler",
|
||||||
|
":kotlin-ant",
|
||||||
|
":kotlin-annotations-jvm",
|
||||||
|
":kotlin-annotations-android"
|
||||||
|
)
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
projectTest {
|
projectTest {
|
||||||
|
dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
|
||||||
doFirst {
|
doFirst {
|
||||||
environment("kotlin.tests.android.timeout", "45")
|
environment("kotlin.tests.android.timeout", "45")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,30 +36,6 @@ val depDistProjects = listOf(
|
|||||||
":kotlin-stdlib",
|
":kotlin-stdlib",
|
||||||
":kotlin-test:kotlin-test-jvm"
|
":kotlin-test:kotlin-test-jvm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: it seems incomplete, find and add missing dependencies
|
|
||||||
val testDistProjects = listOf(
|
|
||||||
"", // for root project
|
|
||||||
":kotlin-stdlib:jvm-minimal-for-test",
|
|
||||||
":kotlin-compiler",
|
|
||||||
":kotlin-script-runtime",
|
|
||||||
":kotlin-stdlib",
|
|
||||||
":kotlin-stdlib-jre7",
|
|
||||||
":kotlin-stdlib-jre8",
|
|
||||||
":kotlin-stdlib-jdk7",
|
|
||||||
":kotlin-stdlib-jdk8",
|
|
||||||
":kotlin-stdlib-js",
|
|
||||||
":kotlin-reflect",
|
|
||||||
":kotlin-test:kotlin-test-jvm",
|
|
||||||
":kotlin-test:kotlin-test-junit",
|
|
||||||
":kotlin-test:kotlin-test-js",
|
|
||||||
":kotlin-preloader",
|
|
||||||
":plugins:android-extensions-compiler",
|
|
||||||
":kotlin-ant",
|
|
||||||
":kotlin-annotations-jvm",
|
|
||||||
":kotlin-annotations-android"
|
|
||||||
)
|
|
||||||
|
|
||||||
val antLauncherJar by configurations.creating
|
val antLauncherJar by configurations.creating
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ sourceSets {
|
|||||||
fun Project.codegenTest(target: Int, jvm: Int,
|
fun Project.codegenTest(target: Int, jvm: Int,
|
||||||
jdk: String = "JDK_${if (jvm <= 8) "1" else ""}$jvm",
|
jdk: String = "JDK_${if (jvm <= 8) "1" else ""}$jvm",
|
||||||
body: Test.() -> Unit): Test = projectTest("codegenTarget${target}Jvm${jvm}Test") {
|
body: Test.() -> Unit): Test = projectTest("codegenTarget${target}Jvm${jvm}Test") {
|
||||||
//dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
|
dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
|
|
||||||
filter.includeTestsMatching("org.jetbrains.kotlin.codegen.jdk.JvmTarget${target}OnJvm${jvm}")
|
filter.includeTestsMatching("org.jetbrains.kotlin.codegen.jdk.JvmTarget${target}OnJvm${jvm}")
|
||||||
|
|||||||
Reference in New Issue
Block a user