[K/N] Make kotlin-native:backend.native:tests:sanity same as run.
This commit is contained in:
committed by
Space Team
parent
c30ce4aabe
commit
452e67f0e6
@@ -170,41 +170,28 @@ tasks.named("clean", Delete.class) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TaskCollection<Task> tasksOf(Class<? extends Task> type, Closure<Boolean> filter = { return true }) {
|
|
||||||
project.tasks.withType(type).matching { it.enabled && filter(it) }
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named("run") {
|
tasks.named("run") {
|
||||||
dependsOn("sanity")
|
dependsOn(tasks.withType(KonanTest).matching { it.enabled })
|
||||||
// Note: sanity contains subsets of the tests listed below.
|
|
||||||
|
|
||||||
dependsOn(tasksOf(KonanTest))
|
|
||||||
// Add framework tests
|
// Add framework tests
|
||||||
dependsOn(tasksOf(FrameworkTest))
|
dependsOn(tasks.withType(FrameworkTest).matching { it.enabled })
|
||||||
dependsOn(tasksOf(FileCheckTest))
|
dependsOn(tasks.withType(FileCheckTest).matching { it.enabled })
|
||||||
}
|
dependsOn(tasks.withType(KonanTest).matching { it.enabled })
|
||||||
|
|
||||||
tasks.register("sanity") {
|
|
||||||
def platformLibsTasks =":distPlatformLibs" + ":kotlin-native:platformLibs"
|
|
||||||
dependsOn(tasksOf(KonanTest) { task ->
|
|
||||||
!UtilsKt.isDependsOnPlatformLibs(task)
|
|
||||||
})
|
|
||||||
// Add framework tests
|
// Add framework tests
|
||||||
dependsOn(tasksOf(FrameworkTest) { task ->
|
dependsOn(tasks.withType(FrameworkTest).matching { it.enabled })
|
||||||
!UtilsKt.isDependsOnPlatformLibs(task)
|
|
||||||
})
|
|
||||||
// Add regular gradle test tasks
|
// Add regular gradle test tasks
|
||||||
dependsOn(tasksOf(Test))
|
dependsOn(tasks.withType(Test).matching { it.enabled })
|
||||||
dependsOn(tasksOf(CoverageTest))
|
dependsOn(tasks.withType(CoverageTest).matching { it.enabled })
|
||||||
dependsOn(tasksOf(FileCheckTest) { task ->
|
dependsOn(tasks.withType(FileCheckTest).matching { it.enabled })
|
||||||
// Avoid cross-compilation in a sanity run.
|
|
||||||
task.targetName == project.target.name
|
|
||||||
})
|
|
||||||
dependsOn(":kotlin-native:Interop:Indexer:check")
|
dependsOn(":kotlin-native:Interop:Indexer:check")
|
||||||
dependsOn(":kotlin-native:Interop:StubGenerator:check")
|
dependsOn(":kotlin-native:Interop:StubGenerator:check")
|
||||||
dependsOn(":native:kotlin-native-utils:check")
|
dependsOn(":native:kotlin-native-utils:check")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Was a subset of tests.
|
||||||
|
tasks.register("sanity") {
|
||||||
|
dependsOn("run")
|
||||||
|
}
|
||||||
|
|
||||||
boolean isExcluded(String dir) {
|
boolean isExcluded(String dir) {
|
||||||
// List of tests that fail due to unresolved compiler bugs
|
// List of tests that fail due to unresolved compiler bugs
|
||||||
def excluded = [ ]
|
def excluded = [ ]
|
||||||
|
|||||||
Reference in New Issue
Block a user