Added parameter 'prefix' to task 'run' in order to run subset of tests

This commit is contained in:
Igor Chevdar
2017-02-22 13:01:20 +03:00
parent 3ac3b1e7ca
commit 174b8ee601
+5 -5
View File
@@ -36,7 +36,11 @@ task clean {
}
task run() {
dependsOn(tasks.withType(KonanTest).matching { !(it instanceof RunExternalTestGroup) && it.enabled })
String prefix = project.findProperty("prefix")
if (prefix != null)
dependsOn(tasks.withType(KonanTest).matching { !(it instanceof RunExternalTestGroup) && it.enabled && it.name.startsWith(prefix) })
else
dependsOn(tasks.withType(KonanTest).matching { !(it instanceof RunExternalTestGroup) && it.enabled })
}
task run_external () {
@@ -89,10 +93,6 @@ task slackReport(type:Reporter) {
reportHome = rootProject.file("test.output").absoluteFile
}
task bridges_all() {
dependsOn(tasks.withType(KonanTest).matching { !(it instanceof RunExternalTestGroup) && it.enabled && it.name.startsWith("bridges_") })
}
task sum (type:RunKonanTest) {
source = "codegen/function/sum.kt"
}