[FIR] Add FirOldFrontendDiagnosticsWithLightTreeTestGenerated

This commit is contained in:
Dmitriy Novozhilov
2021-04-13 12:52:32 +03:00
committed by TeamCityServer
parent e4870740e1
commit 3e0eb06e3e
3 changed files with 35798 additions and 1 deletions
@@ -56,6 +56,10 @@ abstract class AbstractFirDiagnosticTest : AbstractKotlinCompilerTest() {
useMetaInfoProcessors(::PsiLightTreeMetaInfoProcessor)
defaultDirectives {
+COMPARE_WITH_LIGHT_TREE
}
forTestsMatching("compiler/testData/diagnostics/*") {
useAfterAnalysisCheckers(
::FirIdenticalChecker,
@@ -67,7 +71,6 @@ abstract class AbstractFirDiagnosticTest : AbstractKotlinCompilerTest() {
forTestsMatching("compiler/fir/analysis-tests/testData/*") {
defaultDirectives {
+FIR_DUMP
+COMPARE_WITH_LIGHT_TREE
}
}
@@ -122,6 +122,14 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
model("diagnostics/tests", excludedPattern = excludedFirTestdataPattern)
model("diagnostics/testsWithStdLib", excludedPattern = excludedFirTestdataPattern)
}
testClass<AbstractFirDiagnosticsWithLightTreeTest>(
suiteTestClassName = "FirOldFrontendDiagnosticsWithLightTreeTestGenerated",
annotations = listOf(annotation(Execution::class.java, ExecutionMode.SAME_THREAD))
) {
model("diagnostics/tests", excludedPattern = excludedFirTestdataPattern)
model("diagnostics/testsWithStdLib", excludedPattern = excludedFirTestdataPattern)
}
}
testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/testData") {