[Gradle] Update ConfigurationCacheIT test for native tasks

Since GenerateProjectStructureMetadata supports Configuration Cache

^KT-43293
This commit is contained in:
Anton Lakotka
2022-07-22 14:45:35 +02:00
committed by Space
parent 78be7841a1
commit e00f9c25a1
@@ -88,7 +88,6 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
) )
// These tasks currently don't support Configuration Cache and marked as [Task::notCompatibleWithConfigurationCache] // These tasks currently don't support Configuration Cache and marked as [Task::notCompatibleWithConfigurationCache]
val configCacheIncompatibleTaskTypes = listOf( val configCacheIncompatibleTaskTypes = listOf(
"GenerateProjectStructureMetadata",
"CInteropMetadataDependencyTransformationTask", "CInteropMetadataDependencyTransformationTask",
"TransformKotlinGranularMetadata" "TransformKotlinGranularMetadata"
) )
@@ -96,7 +95,7 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
build("build", buildOptions = buildOptions) { build("build", buildOptions = buildOptions) {
// Reduce the problem numbers when a Task become compatible with GCC. // Reduce the problem numbers when a Task become compatible with GCC.
// When all tasks support GCC, replace these assertions with `testConfigurationCacheOf` // When all tasks support GCC, replace these assertions with `testConfigurationCacheOf`
assertOutputContains("17 problems were found storing the configuration cache, 6 of which seem unique.") assertOutputContains("15 problems were found storing the configuration cache, 5 of which seem unique.")
configCacheIncompatibleTaskTypes.forEach { taskType -> configCacheIncompatibleTaskTypes.forEach { taskType ->
assertOutputContains( assertOutputContains(
"""Task `\S+` of type `[\w.]+$taskType`: .+(at execution time is unsupported)|(not supported with the configuration cache)""" """Task `\S+` of type `[\w.]+$taskType`: .+(at execution time is unsupported)|(not supported with the configuration cache)"""