LV20: refactor K2 scripting tests - rename tasks

This commit is contained in:
Ilya Chernikov
2023-08-07 12:02:03 +02:00
committed by Space Team
parent 2c4cca5785
commit e3dae559d0
6 changed files with 43 additions and 21 deletions
@@ -53,6 +53,7 @@ projectTest(parallel = true) {
doFirst {
systemProperty("testJsr223RuntimeClasspath", testRuntimeProvider.get())
systemProperty("testCompilationClasspath", testCompilationClasspathProvider.get())
systemProperty("kotlin.script.base.compiler.arguments", "-language-version 1.9")
}
}
@@ -60,4 +61,11 @@ projectTest(taskName = "embeddableTest", parallel = true) {
workingDir = rootDir
dependsOn(embeddableTestRuntime)
classpath = embeddableTestRuntime
val testRuntimeProvider = project.provider { embeddableTestRuntime.asPath }
val testCompilationClasspathProvider = project.provider { testCompilationClasspath.asPath }
doFirst {
systemProperty("testJsr223RuntimeClasspath", testRuntimeProvider.get())
systemProperty("testCompilationClasspath", testCompilationClasspathProvider.get())
systemProperty("kotlin.script.base.compiler.arguments", "-language-version 1.9")
}
}
@@ -53,8 +53,10 @@ projectTest(parallel = true) {
// classpath = embeddableTestRuntime
//}
projectTest(taskName = "testWithK2", parallel = true) {
projectTest(taskName = "testWithK1", parallel = true) {
dependsOn(":dist")
workingDir = rootDir
systemProperty("kotlin.script.base.compiler.arguments", "-language-version 2.0")
doFirst {
systemProperty("kotlin.script.base.compiler.arguments", "-language-version 1.9")
}
}