gradle-plugin: Support custom konan.home in gradle plugin tests

This commit is contained in:
Ilya Matveev
2017-11-03 12:53:24 +03:00
committed by ilmat192
parent 7b9cd6c9f4
commit 638d23e8b1
@@ -73,10 +73,15 @@ dependencies {
} }
test { test {
if (project.hasProperty("konan.home")) {
systemProperty("konan.home", project.property("konan.home"))
} else {
dependsOn ':dist' dependsOn ':dist'
//testLogging.showStandardStreams = true
systemProperty("konan.home", distDir.absolutePath) systemProperty("konan.home", distDir.absolutePath)
} }
// Uncomment for debugging.
//testLogging.showStandardStreams = true
}
jar { jar {
from (rootProject.findProject(':shared').sourceSets.main.output) from (rootProject.findProject(':shared').sourceSets.main.output)