Fix runtime tests dependencies (#4527)

This commit is contained in:
Alexander Shabalin
2020-11-16 09:50:14 +03:00
committed by Stanislav Erokhin
parent ee508efb23
commit 0a25eac957
2 changed files with 4 additions and 1 deletions
@@ -184,6 +184,7 @@ fun createTestTask(
excludeFiles = emptyList() excludeFiles = emptyList()
includeFiles = listOf("**/*Test.cpp", "**/*Test.mm") includeFiles = listOf("**/*Test.cpp", "**/*Test.mm")
dependsOn(it) dependsOn(it)
dependsOn("downloadGoogleTest")
compilerArgs.addAll(it.compilerArgs) compilerArgs.addAll(it.compilerArgs)
headersDirs += googleTestExtension.headersDirs headersDirs += googleTestExtension.headersDirs
this.configureCompileToBitcode() this.configureCompileToBitcode()
+3 -1
View File
@@ -149,7 +149,9 @@ targetList.forEach { targetName ->
"${targetName}Mimalloc", "${targetName}Mimalloc",
"${targetName}OptAlloc" "${targetName}OptAlloc"
) )
) ) {
includeRuntime()
}
tasks.register("${targetName}RuntimeTests") { tasks.register("${targetName}RuntimeTests") {
dependsOn("${targetName}StdAllocRuntimeTests") dependsOn("${targetName}StdAllocRuntimeTests")