IC tests: add infrastructure for K1/K2 lookups comparison

Adapt lookup tests to allow running K1 and K2 on the same testdata
and compare the lookups recorded.
This commit is contained in:
Ilya Chernikov
2024-02-26 11:04:59 +01:00
committed by Space Team
parent 684d0b8690
commit 1989e8f094
40 changed files with 838 additions and 73 deletions
@@ -22,6 +22,7 @@ abstract class AbstractIncrementalK1JsKlibCompilerRunnerTest : AbstractIncrement
override val buildLogFinder: BuildLogFinder
get() = super.buildLogFinder.copy(
isFirEnabled = false,
isKlibEnabled = true,
isJsEnabled = true,
isScopeExpansionEnabled = scopeExpansionMode != CompileScopeExpansionMode.NEVER,
@@ -29,7 +29,7 @@ abstract class AbstractIncrementalK1JsKlibMultiModuleCompilerRunnerTest :
}
override val buildLogFinder: BuildLogFinder
get() = super.buildLogFinder.copy(isKlibEnabled = true)
get() = super.buildLogFinder.copy(isFirEnabled = false, isKlibEnabled = true)
override fun makeForSingleModule(
moduleCacheDir: File,
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.incremental
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
import org.jetbrains.kotlin.config.LanguageVersion
import org.jetbrains.kotlin.incremental.testingUtils.BuildLogFinder
import java.io.File
abstract class AbstractIncrementalK1JvmCompilerRunnerTest : AbstractIncrementalJvmCompilerRunnerTest() {
@@ -17,4 +18,6 @@ abstract class AbstractIncrementalK1JvmCompilerRunnerTest : AbstractIncrementalJ
}
}
override val buildLogFinder: BuildLogFinder
get() = super.buildLogFinder.copy(isFirEnabled = false)
}