diff --git a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt index 8d06a700d58..68efcbad1c1 100644 --- a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt +++ b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt @@ -23,11 +23,13 @@ data class BuildLogFinder( private val isGradleEnabled: Boolean = false, private val isJsEnabled: Boolean = false, private val isJsIrEnabled: Boolean = false, // TODO rename as it is used for metadata-only test - private val isScopeExpansionEnabled: Boolean = false + private val isScopeExpansionEnabled: Boolean = false, + private val isKlibEnabled: Boolean = false ) { companion object { private const val JS_LOG = "js-build.log" private const val JS_IR_LOG = "js-ir-build.log" + private const val KLIB_LOG = "klib-build.log" private const val SCOPE_EXPANDING_LOG = "build-with-scope-expansion.log" private const val GRADLE_LOG = "gradle-build.log" private const val DATA_CONTAINER_LOG = "data-container-version-build.log" @@ -44,6 +46,7 @@ data class BuildLogFinder( val matchedName = when { isScopeExpansionEnabled && SCOPE_EXPANDING_LOG in files -> SCOPE_EXPANDING_LOG isJsIrEnabled && JS_IR_LOG in files -> JS_IR_LOG + isKlibEnabled && KLIB_LOG in files -> KLIB_LOG isJsEnabled && JS_LOG in files -> JS_LOG isGradleEnabled && GRADLE_LOG in files -> GRADLE_LOG isJsEnabled && JS_JPS_LOG in files -> JS_JPS_LOG diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsKlibCompilerRunnerTest.kt b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsKlibCompilerRunnerTest.kt index 28429370375..9cd1cce3721 100644 --- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsKlibCompilerRunnerTest.kt +++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsKlibCompilerRunnerTest.kt @@ -16,7 +16,7 @@ abstract class AbstractIncrementalJsKlibCompilerRunnerTest : AbstractIncremental } override val buildLogFinder: BuildLogFinder - get() = super.buildLogFinder.copy(isJsIrEnabled = true) + get() = super.buildLogFinder.copy(isJsIrEnabled = true, isKlibEnabled = true) } abstract class AbstractIncrementalJsKlibCompilerWithScopeExpansionRunnerTest : AbstractIncrementalJsKlibCompilerRunnerTest() {