buildSrc: Use SourceSet to define test output directory.

This commit is contained in:
Ilya Matveev
2017-01-24 11:06:45 +03:00
committed by ilmat192
parent 99a962df42
commit a4c4b1e7af
3 changed files with 44 additions and 16 deletions
+14 -1
View File
@@ -13,7 +13,20 @@ dependencies {
cli_bc project(path: ':backend.native', configuration: 'cli_bc')
}
def logFileName = "test-result.md"
allprojects {
// Root directories for test output (logs, compiled files, statistics etc). Only single path must be in each set.
sourceSets {
// :backend.native:tests
testOutputLocal {
output.dir(rootProject.file("testOutput/local"))
}
// :backend.native:tests:external
testOutputExternal {
output.dir(rootProject.file("testOutput/external"))
}
}
}
task regenerate_external_tests() {
doLast {