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')
}
def testOutputRoot = rootProject.file("testOutput").absolutePath
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"))
output.dir(rootProject.file("$testOutputRoot/local"))
}
// :backend.native:tests:external
testOutputExternal {
output.dir(rootProject.file("testOutput/external"))
output.dir(rootProject.file("$testOutputRoot/external"))
}
}
}
task clean {
doLast {
delete(rootProject.file(testOutputRoot))
}
}
task regenerate_external_tests() {
doLast {
def externalTestsProject = childProjects["external"]