backend.native/tests: Add clean task to remove test output directory
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user