tests: external gradle script generation emproved
This commit is contained in:
committed by
ilmat192
parent
86e01d3636
commit
822816da3f
@@ -23,6 +23,10 @@ task regenerate_external_tests() {
|
|||||||
gradleGenerated.write("import org.jetbrains.kotlin.*\n")
|
gradleGenerated.write("import org.jetbrains.kotlin.*\n")
|
||||||
gradleGenerated.append(
|
gradleGenerated.append(
|
||||||
"""
|
"""
|
||||||
|
###############################################################################
|
||||||
|
# WARNING: This file auto generated with command
|
||||||
|
# ./gradlew :backend.native:tests:regenerate_external_tests
|
||||||
|
###############################################################################
|
||||||
configurations {
|
configurations {
|
||||||
cli_bc
|
cli_bc
|
||||||
}
|
}
|
||||||
@@ -30,15 +34,6 @@ configurations {
|
|||||||
dependencies {
|
dependencies {
|
||||||
cli_bc project(path: ':backend.native', configuration: 'cli_bc')
|
cli_bc project(path: ':backend.native', configuration: 'cli_bc')
|
||||||
}
|
}
|
||||||
"""
|
|
||||||
)
|
|
||||||
gradleGenerated.append(
|
|
||||||
"""
|
|
||||||
task createLogFile() {
|
|
||||||
doLast {
|
|
||||||
project.file("$logFileName").write("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
externalTestsDir.eachDirRecurse {
|
externalTestsDir.eachDirRecurse {
|
||||||
@@ -52,11 +47,16 @@ task createLogFile() {
|
|||||||
|
|
||||||
gradleGenerated.append(
|
gradleGenerated.append(
|
||||||
"task $taskName (type: RunExternalTestGroup) {\n" +
|
"task $taskName (type: RunExternalTestGroup) {\n" +
|
||||||
" dependsOn(createLogFile)\n" +
|
|
||||||
" groupDirectory = \"$taskDirectory\"\n" +
|
" groupDirectory = \"$taskDirectory\"\n" +
|
||||||
" logFileName = \"$logFileName\"\n" +
|
|
||||||
"}\n\n")
|
"}\n\n")
|
||||||
}
|
}
|
||||||
|
gradleGenerated.append(
|
||||||
|
"""
|
||||||
|
daily {
|
||||||
|
dependsOn(codegen_blackbox_annotations)
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user