K2 Scripting: enable K2 tests in some test projects

This commit is contained in:
Ilya Chernikov
2022-11-17 12:26:00 +01:00
committed by Space Team
parent 90a4f6002e
commit deb2d6d024
7 changed files with 72 additions and 5 deletions
@@ -73,3 +73,11 @@ projectTest(taskName = "testWithIr", parallel = true) {
systemProperty("kotlin.script.test.base.compiler.arguments", "-Xuse-ir")
}
projectTest(taskName = "testWithK2", parallel = true) {
dependsOn(":dist")
workingDir = rootDir
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
systemProperty("kotlin.script.test.base.compiler.arguments", "-Xuse-k2")
systemProperty("kotlin.script.base.compiler.arguments", "-Xuse-k2")
}