225b064470
This mode must be used when one configuration will run several tests for different JUnit versions.
69 lines
2.0 KiB
Kotlin
69 lines
2.0 KiB
Kotlin
import org.jetbrains.kotlin.ideaExt.idea
|
|
|
|
/*
|
|
* 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) }
|
|
|
|
testApi(projectTests(":compiler:test-infrastructure"))
|
|
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
|
testApi(projectTests(":compiler:tests-compiler-utils"))
|
|
testApi(projectTests(":compiler:tests-common-new"))
|
|
testApi(project(":compiler:cli"))
|
|
testApi(project(":compiler:fir:checkers"))
|
|
testApi(project(":compiler:fir:checkers:checkers.jvm"))
|
|
testApi(project(":compiler:fir:fir-serialization"))
|
|
testApi(project(":compiler:fir:entrypoint"))
|
|
testApi(project(":compiler:frontend"))
|
|
|
|
testApiJUnit5()
|
|
|
|
testCompileOnly(project(":kotlin-reflect-api"))
|
|
testRuntimeOnly(project(":kotlin-reflect"))
|
|
testRuntimeOnly(project(":core:descriptors.runtime"))
|
|
testRuntimeOnly(project(":compiler:fir:fir2ir:jvm-backend"))
|
|
|
|
testImplementation(intellijCoreDep()) { includeJars("intellij-core") }
|
|
testRuntimeOnly(intellijDep()) {
|
|
includeJars("intellij-deps-fastutil-8.4.1-4", "jps-model", "streamex", "jna", rootProject = rootProject)
|
|
}
|
|
|
|
testRuntimeOnly(toolsJar())
|
|
}
|
|
|
|
val generationRoot = projectDir.resolve("tests-gen")
|
|
|
|
sourceSets {
|
|
"main" { none() }
|
|
"test" {
|
|
projectDefault()
|
|
this.java.srcDir(generationRoot.name)
|
|
}
|
|
}
|
|
|
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|
apply(plugin = "idea")
|
|
idea {
|
|
this.module.generatedSourceDirs.add(generationRoot)
|
|
}
|
|
}
|
|
|
|
projectTest(jUnitMode = JUnitMode.JUnit5) {
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
jvmArgs!!.removeIf { it.contains("-Xmx") }
|
|
maxHeapSize = "3g"
|
|
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
testsJar()
|