[FIR Test] Migrate AbstractFirLoadCompiledKotlin to new test infrastructure
Also introduce two different modes for those tests: - load metadata compiled with K1 - load metadata compiled with K2
This commit is contained in:
committed by
Space Team
parent
63829876b7
commit
6287968511
-7
@@ -15,7 +15,6 @@ import org.jetbrains.kotlin.codegen.*
|
||||
import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsReflectionTest
|
||||
import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest
|
||||
import org.jetbrains.kotlin.codegen.ir.*
|
||||
import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin
|
||||
import org.jetbrains.kotlin.fir.AbstractLazyBodyIsNotTouchedTest
|
||||
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderLazyBodiesTestCase
|
||||
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderSourceElementMappingTestCase
|
||||
@@ -425,12 +424,6 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractFirLoadCompiledKotlin> {
|
||||
model("loadJava/compiledKotlin", extension = "kt")
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractFirTypeEnhancementTest> {
|
||||
model("loadJava/compiledJava", extension = "java")
|
||||
|
||||
+12
@@ -265,6 +265,18 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractFirLoadK1CompiledKotlin> {
|
||||
model("loadJava/compiledKotlin", extension = "kt")
|
||||
model("loadJava/compiledKotlinWithStdlib", extension = "kt")
|
||||
}
|
||||
|
||||
testClass<AbstractFirLoadK2CompiledKotlin> {
|
||||
model("loadJava/compiledKotlin", extension = "kt")
|
||||
model("loadJava/compiledKotlinWithStdlib", extension = "kt")
|
||||
}
|
||||
}
|
||||
|
||||
testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/testData") {
|
||||
testClass<AbstractFirLightTreeBlackBoxCodegenTest> {
|
||||
model("codegen/box")
|
||||
|
||||
Reference in New Issue
Block a user