[Test] Move existing fir tests on old infrastructure to :legacy-fir-tests module

This commit is contained in:
Dmitriy Novozhilov
2020-12-18 12:41:53 +03:00
committed by TeamCityServer
parent 1f258c28fc
commit 537e4f0bb4
28 changed files with 22 additions and 20 deletions
+3 -1
View File
@@ -292,7 +292,7 @@ extra["compilerModules"] = arrayOf(
":compiler:fir:jvm", ":compiler:fir:jvm",
":compiler:fir:checkers", ":compiler:fir:checkers",
":compiler:fir:entrypoint", ":compiler:fir:entrypoint",
":compiler:fir:analysis-tests", ":compiler:fir:analysis-tests:legacy-fir-tests",
":wasm:wasm.ir" ":wasm:wasm.ir"
) )
@@ -667,6 +667,7 @@ tasks {
dependsOn(":compiler:fir:raw-fir:psi2fir:test") dependsOn(":compiler:fir:raw-fir:psi2fir:test")
dependsOn(":compiler:fir:raw-fir:light-tree2fir:test") dependsOn(":compiler:fir:raw-fir:light-tree2fir:test")
dependsOn(":compiler:fir:analysis-tests:test") dependsOn(":compiler:fir:analysis-tests:test")
dependsOn(":compiler:fir:analysis-tests:legacy-fir-tests:test")
dependsOn(":compiler:fir:fir2ir:test") dependsOn(":compiler:fir:fir2ir:test")
} }
@@ -676,6 +677,7 @@ tasks {
":compiler:fir:raw-fir:psi2fir:test", ":compiler:fir:raw-fir:psi2fir:test",
":compiler:fir:raw-fir:light-tree2fir:test", ":compiler:fir:raw-fir:light-tree2fir:test",
":compiler:fir:analysis-tests:test", ":compiler:fir:analysis-tests:test",
":compiler:fir:analysis-tests:legacy-fir-tests:test",
":compiler:fir:fir2ir:test", ":compiler:fir:fir2ir:test",
":plugins:fir:fir-plugin-prototype:test" ":plugins:fir:fir-plugin-prototype:test"
) )
+1 -1
View File
@@ -46,7 +46,7 @@ dependencies {
testCompile(projectTests(":compiler:fir:raw-fir:psi2fir")) testCompile(projectTests(":compiler:fir:raw-fir:psi2fir"))
testCompile(projectTests(":compiler:fir:raw-fir:light-tree2fir")) testCompile(projectTests(":compiler:fir:raw-fir:light-tree2fir"))
testCompile(projectTests(":compiler:fir:fir2ir")) 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(":compiler:visualizer"))
testCompile(projectTests(":generators:test-generator")) testCompile(projectTests(":generators:test-generator"))
testCompile(project(":compiler:ir.ir2cfg")) testCompile(project(":compiler:ir.ir2cfg"))
@@ -24,8 +24,8 @@ dependencies {
testApi(project(":compiler:frontend")) testApi(project(":compiler:frontend"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testRuntime(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntime(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
+1 -1
View File
@@ -25,7 +25,7 @@ dependencies {
testCompileOnly(project(":kotlin-test:kotlin-test-jvm")) testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
testCompileOnly(project(":kotlin-test:kotlin-test-junit")) testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
testApi(projectTests(":compiler:tests-common")) 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")) testApi(project(":compiler:resolution.common"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
@@ -30,7 +30,7 @@ dependencies {
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(project(":core:descriptors.runtime")) 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:resolve"))
testApi(project(":compiler:fir:dump")) testApi(project(":compiler:fir:dump"))
+2 -2
View File
@@ -21,8 +21,8 @@ dependencies {
testApi("org.junit.jupiter:junit-jupiter") testApi("org.junit.jupiter:junit-jupiter")
testApi("org.junit.platform:junit-platform-commons:1.7.0") testApi("org.junit.platform:junit-platform-commons:1.7.0")
testApi(projectTests(":compiler:test-infrastructure")) testApi(projectTests(":compiler:test-infrastructure"))
testImplementation(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:test-infrastructure-utils"))
testImplementation(projectTests(":compiler:tests-compiler-utils")) testApi(projectTests(":compiler:tests-compiler-utils"))
testImplementation(intellijDep()) { testImplementation(intellijDep()) {
// This dependency is needed only for FileComparisonFailure // This dependency is needed only for FileComparisonFailure
@@ -16,7 +16,7 @@ dependencies {
testImplementation(projectTests(":compiler:fir:raw-fir:psi2fir")) testImplementation(projectTests(":compiler:fir:raw-fir:psi2fir"))
testImplementation(projectTests(":compiler:fir:raw-fir:light-tree2fir")) testImplementation(projectTests(":compiler:fir:raw-fir:light-tree2fir"))
testImplementation(projectTests(":compiler:fir:fir2ir")) 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(":compiler:visualizer"))
testImplementation(projectTests(":generators:test-generator")) testImplementation(projectTests(":generators:test-generator"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
@@ -600,31 +600,31 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
} }
} }
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<AbstractLazyBodyIsNotTouchedTilContractsPhaseTest> { testClass<AbstractLazyBodyIsNotTouchedTilContractsPhaseTest> {
model("resolve", pattern = KT_WITHOUT_DOTS_IN_NAME) 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<AbstractFirLoadCompiledKotlin> { testClass<AbstractFirLoadCompiledKotlin> {
model("loadJava/compiledKotlin", extension = "kt") 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<AbstractFirTypeEnhancementTest> { testClass<AbstractFirTypeEnhancementTest> {
model("loadJava/compiledJava", extension = "java") 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<AbstractOwnFirTypeEnhancementTest> { testClass<AbstractOwnFirTypeEnhancementTest> {
model("enhancement", extension = "java") 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<AbstractFirOldFrontendLightClassesTest> { testClass<AbstractFirOldFrontendLightClassesTest> {
model("lightClasses") model("lightClasses")
} }
@@ -660,13 +660,13 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
} }
} }
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<AbstractExtendedFirDiagnosticsTest> { testClass<AbstractExtendedFirDiagnosticsTest> {
model("extendedCheckers", pattern = KT_WITHOUT_DOTS_IN_NAME) 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<AbstractExtendedFirWithLightTreeDiagnosticsTest> { testClass<AbstractExtendedFirWithLightTreeDiagnosticsTest> {
model("extendedCheckers", pattern = KT_WITHOUT_DOTS_IN_NAME) model("extendedCheckers", pattern = KT_WITHOUT_DOTS_IN_NAME)
} }
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(projectTests(":compiler:tests-common")) 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") val generationRoot = projectDir.resolve("tests-gen")
@@ -31,7 +31,7 @@ dependencies {
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
testCompile(project(":idea:idea-fir")) testCompile(project(":idea:idea-fir"))
testCompile(projectTests(":compiler:tests-common")) 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(projectTests(":idea:idea-test-framework"))
testCompile(project(":kotlin-test:kotlin-test-junit")) testCompile(project(":kotlin-test:kotlin-test-junit"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
@@ -20,7 +20,7 @@ dependencies {
testCompileOnly(project(":kotlin-test:kotlin-test-junit")) testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
testCompile(projectTests(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
testCompile(project(":compiler:fir:checkers")) testCompile(project(":compiler:fir:checkers"))
testCompile(projectTests(":compiler:fir:analysis-tests")) testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests"))
testCompile(project(":compiler:frontend")) testCompile(project(":compiler:frontend"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
+1 -1
View File
@@ -327,7 +327,7 @@ include ":compiler:fir:cones",
":compiler:fir:checkers", ":compiler:fir:checkers",
":compiler:fir:checkers:checkers-component-generator", ":compiler:fir:checkers:checkers-component-generator",
":compiler:fir:entrypoint", ":compiler:fir:entrypoint",
":compiler:fir:analysis-tests" ":compiler:fir:analysis-tests:legacy-fir-tests"
include ":compiler:test-infrastructure", include ":compiler:test-infrastructure",
":compiler:test-infrastructure-utils", ":compiler:test-infrastructure-utils",