[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
+4
-3
@@ -259,7 +259,8 @@ extra["compilerModules"] = arrayOf(
|
|||||||
":compiler:fir:lightTree",
|
":compiler:fir:lightTree",
|
||||||
":compiler:fir:fir2ir",
|
":compiler:fir:fir2ir",
|
||||||
":compiler:fir:java",
|
":compiler:fir:java",
|
||||||
":compiler:fir:jvm"
|
":compiler:fir:jvm",
|
||||||
|
":compiler:fir:analysis-tests"
|
||||||
)
|
)
|
||||||
|
|
||||||
val coreLibProjects = listOfNotNull(
|
val coreLibProjects = listOfNotNull(
|
||||||
@@ -551,7 +552,7 @@ tasks {
|
|||||||
|
|
||||||
register("firCompilerTest") {
|
register("firCompilerTest") {
|
||||||
dependsOn(":compiler:fir:psi2fir:test")
|
dependsOn(":compiler:fir:psi2fir:test")
|
||||||
dependsOn(":compiler:fir:resolve:test")
|
dependsOn(":compiler:fir:analysis-tests:test")
|
||||||
dependsOn(":compiler:fir:fir2ir:test")
|
dependsOn(":compiler:fir:fir2ir:test")
|
||||||
dependsOn(":compiler:fir:lightTree:test")
|
dependsOn(":compiler:fir:lightTree:test")
|
||||||
}
|
}
|
||||||
@@ -560,7 +561,7 @@ tasks {
|
|||||||
dependsOn(
|
dependsOn(
|
||||||
":compiler:fir:psi2fir:test",
|
":compiler:fir:psi2fir:test",
|
||||||
":compiler:fir:lightTree:test",
|
":compiler:fir:lightTree:test",
|
||||||
":compiler:fir:resolve:test",
|
":compiler:fir:analysis-tests:test",
|
||||||
":compiler:fir:fir2ir:test",
|
":compiler:fir:fir2ir:test",
|
||||||
":idea:idea-fir:test"
|
":idea:idea-fir:test"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ dependencies {
|
|||||||
testCompile(projectTests(":compiler:tests-common"))
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
testCompile(projectTests(":compiler:fir:psi2fir"))
|
testCompile(projectTests(":compiler:fir:psi2fir"))
|
||||||
testCompile(projectTests(":compiler:fir:fir2ir"))
|
testCompile(projectTests(":compiler:fir:fir2ir"))
|
||||||
testCompile(projectTests(":compiler:fir:resolve"))
|
testCompile(projectTests(":compiler:fir:analysis-tests"))
|
||||||
|
testCompile(projectTests(":compiler:fir:analysis-tests"))
|
||||||
testCompile(projectTests(":compiler:fir:lightTree"))
|
testCompile(projectTests(":compiler:fir:lightTree"))
|
||||||
testCompile(projectTests(":compiler:visualizer"))
|
testCompile(projectTests(":compiler:visualizer"))
|
||||||
testCompile(projectTests(":generators:test-generator"))
|
testCompile(projectTests(":generators:test-generator"))
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2000-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("jvm")
|
||||||
|
id("jps-compatible")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
||||||
|
|
||||||
|
testCompile(intellijDep())
|
||||||
|
|
||||||
|
testCompile(commonDep("junit:junit"))
|
||||||
|
testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
|
testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
|
||||||
|
testCompile(projectTests(":compiler:tests-common"))
|
||||||
|
testCompile(project(":compiler:fir:resolve"))
|
||||||
|
|
||||||
|
testCompileOnly(project(":kotlin-reflect-api"))
|
||||||
|
testRuntime(project(":kotlin-reflect"))
|
||||||
|
testRuntime(project(":core:descriptors.runtime"))
|
||||||
|
|
||||||
|
Platform[192].orHigher {
|
||||||
|
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||||
|
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
"main" { none() }
|
||||||
|
"test" { projectDefault() }
|
||||||
|
}
|
||||||
|
|
||||||
|
projectTest(parallel = true) {
|
||||||
|
workingDir = rootDir
|
||||||
|
jvmArgs!!.removeIf { it.contains("-Xmx") }
|
||||||
|
maxHeapSize = "3g"
|
||||||
|
}
|
||||||
|
|
||||||
|
testsJar()
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user