backend.native/tests: Add clean task to remove test output directory

This commit is contained in:
Ilya Matveev
2017-01-24 16:41:20 +03:00
committed by ilmat192
parent c04233aebb
commit 6e0c2fface
+11 -2
View File
@@ -8,21 +8,30 @@ dependencies {
cli_bc project(path: ':backend.native', configuration: 'cli_bc') cli_bc project(path: ':backend.native', configuration: 'cli_bc')
} }
def testOutputRoot = rootProject.file("testOutput").absolutePath
allprojects { allprojects {
// Root directories for test output (logs, compiled files, statistics etc). Only single path must be in each set. // Root directories for test output (logs, compiled files, statistics etc). Only single path must be in each set.
sourceSets { sourceSets {
// :backend.native:tests // :backend.native:tests
testOutputLocal { testOutputLocal {
output.dir(rootProject.file("testOutput/local")) output.dir(rootProject.file("$testOutputRoot/local"))
} }
// :backend.native:tests:external // :backend.native:tests:external
testOutputExternal { testOutputExternal {
output.dir(rootProject.file("testOutput/external")) output.dir(rootProject.file("$testOutputRoot/external"))
} }
} }
} }
task clean {
doLast {
delete(rootProject.file(testOutputRoot))
}
}
task regenerate_external_tests() { task regenerate_external_tests() {
doLast { doLast {
def externalTestsProject = childProjects["external"] def externalTestsProject = childProjects["external"]