Skip to content

Commit

Permalink
[FIR] Remove lightTree exclusion dir from tests
Browse files Browse the repository at this point in the history
It reverts changes introduced by cf6413e
  • Loading branch information
TomatorCZ authored and Space Team committed Feb 13, 2025
1 parent 8e592cb commit 04548b9
Show file tree
Hide file tree
Showing 8 changed files with 1,501 additions and 1,517 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ fun generateJUnit5CompilerTests(args: Array<String>, mainClassName: String?) {
}

testClass<AbstractFirPsiBlackBoxCodegenTest> {
model("codegen/box", excludeDirs = k1BoxTestDir, excludeDirsRecursively = listOf("lightTree"))
model("codegen/box", excludeDirs = k1BoxTestDir)
}

testClass<AbstractFirLightTreeBlackBoxCodegenTest>("FirLightTreeBlackBoxModernJdkCodegenTestGenerated") {
Expand Down Expand Up @@ -432,20 +432,15 @@ fun generateJUnit5CompilerTests(args: Array<String>, mainClassName: String?) {
true -> TestGeneratorUtil.KT_OR_KTS_WITHOUT_DOTS_IN_NAME
false -> TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME
}
val excludeLightTreeForPsi =
if (baseTestClassName == AbstractFirPsiDiagnosticTest::class.java.name) listOf("lightTree") else emptyList()

model(
"resolve",
pattern = pattern,
excludeDirsRecursively = excludeLightTreeForPsi,
skipSpecificFile = skipSpecificFileForFirDiagnosticTest(onlyTypealiases),
skipTestAllFilesCheck = onlyTypealiases
)
model(
"resolveWithStdlib",
pattern = pattern,
excludeDirsRecursively = excludeLightTreeForPsi,
skipSpecificFile = skipSpecificFileForFirDiagnosticTest(onlyTypealiases),
skipTestAllFilesCheck = onlyTypealiases
)
Expand All @@ -455,7 +450,6 @@ fun generateJUnit5CompilerTests(args: Array<String>, mainClassName: String?) {
model(
"resolveFreezesIDE",
pattern = """^(.+)\.(nkt)$""",
excludeDirsRecursively = excludeLightTreeForPsi,
skipSpecificFile = skipSpecificFileForFirDiagnosticTest(onlyTypealiases),
skipTestAllFilesCheck = onlyTypealiases
)
Expand Down Expand Up @@ -531,7 +525,7 @@ fun generateJUnit5CompilerTests(args: Array<String>, mainClassName: String?) {
phasedModel(allowKts = false)
}
testClass<AbstractPhasedJvmDiagnosticPsiTest> {
phasedModel(allowKts = true, excludeDirsRecursively = listOf("lightTree"))
phasedModel(allowKts = true)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() {
"compiler/fir/analysis-tests/testData",
) {
fun TestGroup.TestClass.modelInit() {
model("resolve", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME, excludeDirsRecursively = listOf("lightTree"))
model("resolveWithStdlib", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME, excludeDirsRecursively = listOf("lightTree"))
model("resolve", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
model("resolveWithStdlib", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
}

testClass<AbstractDiagnosticCompilerTestDataTest>(suiteTestClassName = "DiagnosticCompilerTestFirTestdataTestGenerated") {
Expand Down Expand Up @@ -401,7 +401,6 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() {
"diagnostics/tests",
excludedPattern = CUSTOM_TEST_DATA_EXTENSION_PATTERN,
pattern = KT_OR_KTS,
excludeDirsRecursively = listOf("lightTree"),
)
model(
"diagnostics/testsWithStdLib",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04548b9

Please sign in to comment.