[FIR] Generate PSI and LT versions of all codegen tests
Also change default mode for codegen tests from PSI to LT
This commit is contained in:
committed by
Space Team
parent
5305e987b7
commit
a7f62581a2
+41
-4
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.test.runners.*
|
||||
import org.jetbrains.kotlin.test.runners.codegen.*
|
||||
import org.jetbrains.kotlin.test.runners.ir.AbstractFir2IrTextTest
|
||||
import org.jetbrains.kotlin.test.runners.ir.AbstractIrTextTest
|
||||
import org.jetbrains.kotlin.test.runners.ir.AbstractLightTreeFir2IrTextTest
|
||||
import org.jetbrains.kotlin.test.runners.ir.AbstractFirPsi2IrTextTest
|
||||
import org.jetbrains.kotlin.test.runners.ir.interpreter.AbstractJvmIrInterpreterAfterFir2IrTest
|
||||
import org.jetbrains.kotlin.test.runners.ir.interpreter.AbstractJvmIrInterpreterAfterPsi2IrTest
|
||||
import org.jetbrains.kotlin.test.utils.CUSTOM_TEST_DATA_EXTENSION_PATTERN
|
||||
@@ -245,15 +245,23 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
model("codegen/box")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiBlackBoxCodegenTest> {
|
||||
model("codegen/box")
|
||||
}
|
||||
|
||||
testClass<AbstractFirBlackBoxCodegenTest>("FirBlackBoxModernJdkCodegenTestGenerated") {
|
||||
model("codegen/boxModernJdk")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiBlackBoxCodegenTest>("FirPsiBlackBoxModernJdkCodegenTestGenerated") {
|
||||
model("codegen/boxModernJdk")
|
||||
}
|
||||
|
||||
testClass<AbstractFirBlackBoxInlineCodegenTest> {
|
||||
model("codegen/boxInline")
|
||||
}
|
||||
|
||||
testClass<AbstractFirLightTreeBlackBoxInlineCodegenTest> {
|
||||
testClass<AbstractFirPsiBlackBoxInlineCodegenTest> {
|
||||
model("codegen/boxInline")
|
||||
}
|
||||
|
||||
@@ -261,10 +269,18 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
model("debug/stepping")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiSteppingTest> {
|
||||
model("debug/stepping")
|
||||
}
|
||||
|
||||
testClass<AbstractFirLocalVariableTest> {
|
||||
model("debug/localVariables")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiLocalVariableTest> {
|
||||
model("debug/localVariables")
|
||||
}
|
||||
|
||||
testClass<AbstractFirDiagnosticsTestWithJvmIrBackend> {
|
||||
model("diagnostics/firTestWithJvmBackend")
|
||||
}
|
||||
@@ -276,6 +292,10 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
testClass<AbstractFirSerializeCompileKotlinAgainstInlineKotlinTest> {
|
||||
model("codegen/boxInline")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiSerializeCompileKotlinAgainstInlineKotlinTest> {
|
||||
model("codegen/boxInline")
|
||||
}
|
||||
}
|
||||
|
||||
testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/fir/fir2ir/testData") {
|
||||
@@ -286,13 +306,20 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
model("codegen/boxWithStdLib")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiBlackBoxCodegenTest>(
|
||||
suiteTestClassName = "FirPsiSpecificBlackBoxCodegenTestGenerated"
|
||||
) {
|
||||
model("codegen/box")
|
||||
model("codegen/boxWithStdLib")
|
||||
}
|
||||
|
||||
testClass<AbstractFir2IrTextTest>(
|
||||
suiteTestClassName = "Fir2IrSpecificTextTestGenerated"
|
||||
) {
|
||||
model("ir/irText")
|
||||
}
|
||||
|
||||
testClass<AbstractLightTreeFir2IrTextTest>(
|
||||
testClass<AbstractFirPsi2IrTextTest>(
|
||||
suiteTestClassName = "LightTreeFir2IrSpecificTextTestGenerated"
|
||||
) {
|
||||
model("ir/irText")
|
||||
@@ -303,6 +330,12 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
) {
|
||||
model("codegen/bytecodeListing")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiBytecodeListingTest>(
|
||||
suiteTestClassName = "Fir2IrSpecificBytecodeListingPsiTestGenerated"
|
||||
) {
|
||||
model("codegen/bytecodeListing")
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") {
|
||||
@@ -322,13 +355,17 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
model("ir/irText")
|
||||
}
|
||||
|
||||
testClass<AbstractLightTreeFir2IrTextTest> {
|
||||
testClass<AbstractFirPsi2IrTextTest> {
|
||||
model("ir/irText")
|
||||
}
|
||||
|
||||
testClass<AbstractFirBytecodeTextTest> {
|
||||
model("codegen/bytecodeText")
|
||||
}
|
||||
|
||||
testClass<AbstractFirPsiBytecodeTextTest> {
|
||||
model("codegen/bytecodeText")
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("compiler/visualizer/tests-gen", "compiler/fir/raw-fir/psi2fir/testData") {
|
||||
|
||||
Reference in New Issue
Block a user