[IC] Drop useK2 from compiler/incremental-compilation-impl tests
Merge-request: KT-MR-12879 Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
d54068b8ab
commit
26bac388e8
-1
@@ -12,7 +12,6 @@ import java.io.File
|
||||
abstract class AbstractIncrementalFirICLightTreeJvmCompilerRunnerTest : AbstractIncrementalJvmCompilerRunnerTest() {
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JVMCompilerArguments =
|
||||
super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = true
|
||||
languageVersion = "2.0"
|
||||
useFirIC = true
|
||||
useFirLT = true
|
||||
|
||||
-1
@@ -12,7 +12,6 @@ import java.io.File
|
||||
abstract class AbstractIncrementalFirLightTreeJvmCompilerRunnerTest : AbstractIncrementalJvmCompilerRunnerTest() {
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JVMCompilerArguments =
|
||||
super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = true
|
||||
languageVersion = "2.0"
|
||||
useFirIC = false
|
||||
useFirLT = true
|
||||
|
||||
+7
-2
@@ -21,6 +21,7 @@ import org.jetbrains.kotlin.build.report.metrics.DoNothingBuildMetricsReporter
|
||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
||||
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
|
||||
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
|
||||
import org.jetbrains.kotlin.config.LanguageVersion
|
||||
import org.jetbrains.kotlin.incremental.multiproject.EmptyModulesApiHistory
|
||||
import org.jetbrains.kotlin.incremental.utils.*
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil
|
||||
@@ -72,8 +73,12 @@ abstract class AbstractIncrementalJvmCompilerRunnerTest : AbstractIncrementalCom
|
||||
val buildReporter = TestBuildReporter(testICReporter = reporter, buildMetricsReporter = DoNothingBuildMetricsReporter)
|
||||
|
||||
withIncrementalCompilation(args) {
|
||||
val k2Mode = args.useK2 || (
|
||||
(args.languageVersion ?: LanguageVersion.LATEST_STABLE.versionString) >= LanguageVersion.KOTLIN_2_0.versionString
|
||||
)
|
||||
|
||||
val compiler =
|
||||
if (args.useK2 && args.useFirIC && args.useFirLT /* TODO by @Ilya.Chernikov: move LT check into runner */)
|
||||
if (k2Mode && args.useFirIC && args.useFirLT /* TODO by @Ilya.Chernikov: move LT check into runner */)
|
||||
IncrementalFirJvmCompilerTestRunner(
|
||||
cachesDir,
|
||||
buildReporter,
|
||||
@@ -89,7 +94,7 @@ abstract class AbstractIncrementalJvmCompilerRunnerTest : AbstractIncrementalCom
|
||||
cachesDir,
|
||||
buildReporter,
|
||||
// Use precise setting in case of non-Gradle build
|
||||
usePreciseJavaTracking = !args.useK2, // TODO by @Ilya.Chernikov: add fir-based java classes tracker when available and set this to true
|
||||
usePreciseJavaTracking = !k2Mode, // TODO by @Ilya.Chernikov: add fir-based java classes tracker when available and set this to true
|
||||
buildHistoryFile = buildHistoryFile,
|
||||
outputDirs = null,
|
||||
modulesApiHistory = EmptyModulesApiHistory,
|
||||
|
||||
-1
@@ -29,7 +29,6 @@ abstract class AbstractIncrementalK1JsKlibCompilerWithScopeExpansionRunnerTest :
|
||||
abstract class AbstractIncrementalK2JsKlibCompilerWithScopeExpansionRunnerTest : AbstractIncrementalK1JsKlibCompilerWithScopeExpansionRunnerTest() {
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments {
|
||||
return super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = true
|
||||
languageVersion = "2.0"
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -98,7 +98,6 @@ abstract class AbstractIncrementalK2JsKlibMultiModuleCompilerRunnerTest :
|
||||
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments {
|
||||
return super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = true
|
||||
languageVersion = "2.0"
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -12,7 +12,6 @@ import java.io.File
|
||||
abstract class AbstractIncrementalK1JvmCompilerRunnerTest : AbstractIncrementalJvmCompilerRunnerTest() {
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JVMCompilerArguments =
|
||||
super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = false
|
||||
if (LanguageVersion.LATEST_STABLE >= LanguageVersion.KOTLIN_2_0) {
|
||||
languageVersion = "1.9"
|
||||
}
|
||||
|
||||
-1
@@ -24,7 +24,6 @@ import java.io.File
|
||||
abstract class AbstractIncrementalK2JvmCompilerRunnerTest : AbstractIncrementalJvmCompilerRunnerTest() {
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JVMCompilerArguments =
|
||||
super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
useK2 = true
|
||||
if (LanguageVersion.LATEST_STABLE < LanguageVersion.KOTLIN_2_0) {
|
||||
languageVersion = "2.0"
|
||||
}
|
||||
|
||||
-1
@@ -23,7 +23,6 @@ abstract class AbstractIncrementalMultiplatformJvmCompilerRunnerTest : AbstractI
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JVMCompilerArguments {
|
||||
return super.createCompilerArguments(destinationDir, testDir).apply {
|
||||
multiPlatform = true
|
||||
useK2 = false
|
||||
languageVersion = "1.9"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user