diff --git a/build.gradle.kts b/build.gradle.kts index af636074a10..32021802f0e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -292,7 +292,7 @@ extra["compilerModules"] = arrayOf( ":compiler:fir:jvm", ":compiler:fir:checkers", ":compiler:fir:entrypoint", - ":compiler:fir:analysis-tests", + ":compiler:fir:analysis-tests:legacy-fir-tests", ":wasm:wasm.ir" ) @@ -667,6 +667,7 @@ tasks { dependsOn(":compiler:fir:raw-fir:psi2fir:test") dependsOn(":compiler:fir:raw-fir:light-tree2fir:test") dependsOn(":compiler:fir:analysis-tests:test") + dependsOn(":compiler:fir:analysis-tests:legacy-fir-tests:test") dependsOn(":compiler:fir:fir2ir:test") } @@ -676,6 +677,7 @@ tasks { ":compiler:fir:raw-fir:psi2fir:test", ":compiler:fir:raw-fir:light-tree2fir:test", ":compiler:fir:analysis-tests:test", + ":compiler:fir:analysis-tests:legacy-fir-tests:test", ":compiler:fir:fir2ir:test", ":plugins:fir:fir-plugin-prototype:test" ) diff --git a/compiler/build.gradle.kts b/compiler/build.gradle.kts index 67d8d3ebee0..4afd3561e5e 100644 --- a/compiler/build.gradle.kts +++ b/compiler/build.gradle.kts @@ -46,7 +46,7 @@ dependencies { testCompile(projectTests(":compiler:fir:raw-fir:psi2fir")) testCompile(projectTests(":compiler:fir:raw-fir:light-tree2fir")) testCompile(projectTests(":compiler:fir:fir2ir")) - testCompile(projectTests(":compiler:fir:analysis-tests")) + testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testCompile(projectTests(":compiler:visualizer")) testCompile(projectTests(":generators:test-generator")) testCompile(project(":compiler:ir.ir2cfg")) diff --git a/compiler/fir/analysis-tests/ReadMe.md b/compiler/fir/analysis-tests/legacy-fir-tests/ReadMe.md similarity index 100% rename from compiler/fir/analysis-tests/ReadMe.md rename to compiler/fir/analysis-tests/legacy-fir-tests/ReadMe.md diff --git a/compiler/fir/analysis-tests/build.gradle.kts b/compiler/fir/analysis-tests/legacy-fir-tests/build.gradle.kts similarity index 93% rename from compiler/fir/analysis-tests/build.gradle.kts rename to compiler/fir/analysis-tests/legacy-fir-tests/build.gradle.kts index f615e816581..b20a8328451 100644 --- a/compiler/fir/analysis-tests/build.gradle.kts +++ b/compiler/fir/analysis-tests/legacy-fir-tests/build.gradle.kts @@ -24,8 +24,8 @@ dependencies { testApi(project(":compiler:frontend")) testCompileOnly(project(":kotlin-reflect-api")) - testRuntime(project(":kotlin-reflect")) - testRuntime(project(":core:descriptors.runtime")) + testRuntimeOnly(project(":kotlin-reflect")) + testRuntimeOnly(project(":core:descriptors.runtime")) testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirDiagnosticsTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirDiagnosticsTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirDiagnosticsTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirWithLightTreeDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirWithLightTreeDiagnosticsTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirWithLightTreeDiagnosticsTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/ExtendedFirWithLightTreeDiagnosticsTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirOldFrontendLightClassesTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirOldFrontendLightClassesTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirOldFrontendLightClassesTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirOldFrontendLightClassesTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirTypeEnhancementTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirTypeEnhancementTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirTypeEnhancementTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/FirTypeEnhancementTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/OwnFirTypeEnhancementTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/OwnFirTypeEnhancementTestGenerated.java similarity index 100% rename from compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/fir/java/OwnFirTypeEnhancementTestGenerated.java rename to compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/java/OwnFirTypeEnhancementTestGenerated.java diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadBinariesTest.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCaseWithStdlib.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCaseWithStdlib.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCaseWithStdlib.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCaseWithStdlib.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirOldFrontendLightClassesTest.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirOldFrontendLightClassesTest.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirOldFrontendLightClassesTest.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirOldFrontendLightClassesTest.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt diff --git a/compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/JavaClassRendering.kt b/compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/JavaClassRendering.kt similarity index 100% rename from compiler/fir/analysis-tests/tests/org/jetbrains/kotlin/fir/java/JavaClassRendering.kt rename to compiler/fir/analysis-tests/legacy-fir-tests/tests/org/jetbrains/kotlin/fir/java/JavaClassRendering.kt diff --git a/compiler/fir/fir2ir/build.gradle.kts b/compiler/fir/fir2ir/build.gradle.kts index 78323a18eb1..df30ec3e8b2 100644 --- a/compiler/fir/fir2ir/build.gradle.kts +++ b/compiler/fir/fir2ir/build.gradle.kts @@ -25,7 +25,7 @@ dependencies { testCompileOnly(project(":kotlin-test:kotlin-test-jvm")) testCompileOnly(project(":kotlin-test:kotlin-test-junit")) testApi(projectTests(":compiler:tests-common")) - testApi(projectTests(":compiler:fir:analysis-tests")) + testApi(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testApi(project(":compiler:resolution.common")) testCompileOnly(project(":kotlin-reflect-api")) diff --git a/compiler/fir/modularized-tests/build.gradle.kts b/compiler/fir/modularized-tests/build.gradle.kts index afe0d62cb39..a36d6f1e0e5 100644 --- a/compiler/fir/modularized-tests/build.gradle.kts +++ b/compiler/fir/modularized-tests/build.gradle.kts @@ -30,7 +30,7 @@ dependencies { testCompileOnly(project(":kotlin-reflect-api")) testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":core:descriptors.runtime")) - testApi(projectTests(":compiler:fir:analysis-tests")) + testApi(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testApi(project(":compiler:fir:resolve")) testApi(project(":compiler:fir:dump")) diff --git a/compiler/tests-common-new/build.gradle.kts b/compiler/tests-common-new/build.gradle.kts index cacf5c9dd8a..df3765abc9f 100644 --- a/compiler/tests-common-new/build.gradle.kts +++ b/compiler/tests-common-new/build.gradle.kts @@ -21,8 +21,8 @@ dependencies { testApi("org.junit.jupiter:junit-jupiter") testApi("org.junit.platform:junit-platform-commons:1.7.0") testApi(projectTests(":compiler:test-infrastructure")) - testImplementation(projectTests(":compiler:test-infrastructure-utils")) - testImplementation(projectTests(":compiler:tests-compiler-utils")) + testApi(projectTests(":compiler:test-infrastructure-utils")) + testApi(projectTests(":compiler:tests-compiler-utils")) testImplementation(intellijDep()) { // This dependency is needed only for FileComparisonFailure diff --git a/compiler/tests-for-compiler-generator/build.gradle.kts b/compiler/tests-for-compiler-generator/build.gradle.kts index 59c5fe04815..7decb6567f0 100644 --- a/compiler/tests-for-compiler-generator/build.gradle.kts +++ b/compiler/tests-for-compiler-generator/build.gradle.kts @@ -16,7 +16,7 @@ dependencies { testImplementation(projectTests(":compiler:fir:raw-fir:psi2fir")) testImplementation(projectTests(":compiler:fir:raw-fir:light-tree2fir")) testImplementation(projectTests(":compiler:fir:fir2ir")) - testImplementation(projectTests(":compiler:fir:analysis-tests")) + testImplementation(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testImplementation(projectTests(":compiler:visualizer")) testImplementation(projectTests(":generators:test-generator")) testCompileOnly(project(":kotlin-reflect-api")) diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 8a5a654f8ff..c5ebeca80f6 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -600,31 +600,31 @@ fun generateJUnit3CompilerTests(args: Array) { } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testClass { model("resolve", pattern = KT_WITHOUT_DOTS_IN_NAME) } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") { testClass { model("loadJava/compiledKotlin", extension = "kt") } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/testData") { testClass { model("loadJava/compiledJava", extension = "java") } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testClass { model("enhancement", extension = "java") } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testClass { model("lightClasses") } @@ -660,13 +660,13 @@ fun generateJUnit3CompilerTests(args: Array) { } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testClass { model("extendedCheckers", pattern = KT_WITHOUT_DOTS_IN_NAME) } } - testGroup("compiler/fir/analysis-tests/tests-gen", "compiler/fir/analysis-tests/testData") { + testGroup("compiler/fir/analysis-tests/legacy-fir-tests/tests-gen", "compiler/fir/analysis-tests/testData") { testClass { model("extendedCheckers", pattern = KT_WITHOUT_DOTS_IN_NAME) } diff --git a/compiler/visualizer/build.gradle.kts b/compiler/visualizer/build.gradle.kts index d3c477e48af..612da8d9f25 100644 --- a/compiler/visualizer/build.gradle.kts +++ b/compiler/visualizer/build.gradle.kts @@ -16,7 +16,7 @@ dependencies { testCompile(commonDep("junit:junit")) testCompile(projectTests(":compiler:tests-common")) - testCompile(projectTests(":compiler:fir:analysis-tests")) + testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) } val generationRoot = projectDir.resolve("tests-gen") diff --git a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts index 33d9bcee2f3..d20d21ba9d0 100644 --- a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts +++ b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts @@ -31,7 +31,7 @@ dependencies { testCompile(projectTests(":idea")) testCompile(project(":idea:idea-fir")) testCompile(projectTests(":compiler:tests-common")) - testCompile(projectTests(":compiler:fir:analysis-tests")) + testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testCompile(projectTests(":idea:idea-test-framework")) testCompile(project(":kotlin-test:kotlin-test-junit")) testCompile(commonDep("junit:junit")) diff --git a/plugins/fir/fir-plugin-prototype/build.gradle.kts b/plugins/fir/fir-plugin-prototype/build.gradle.kts index c4a1836160e..a8b40c9c9f0 100644 --- a/plugins/fir/fir-plugin-prototype/build.gradle.kts +++ b/plugins/fir/fir-plugin-prototype/build.gradle.kts @@ -20,7 +20,7 @@ dependencies { testCompileOnly(project(":kotlin-test:kotlin-test-junit")) testCompile(projectTests(":compiler:tests-common")) testCompile(project(":compiler:fir:checkers")) - testCompile(projectTests(":compiler:fir:analysis-tests")) + testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testCompile(project(":compiler:frontend")) testCompileOnly(project(":kotlin-reflect-api")) diff --git a/settings.gradle b/settings.gradle index 5f2fd646923..bc291dbcc65 100644 --- a/settings.gradle +++ b/settings.gradle @@ -327,7 +327,7 @@ include ":compiler:fir:cones", ":compiler:fir:checkers", ":compiler:fir:checkers:checkers-component-generator", ":compiler:fir:entrypoint", - ":compiler:fir:analysis-tests" + ":compiler:fir:analysis-tests:legacy-fir-tests" include ":compiler:test-infrastructure", ":compiler:test-infrastructure-utils",