Restore script testing on both backends, fix some tests
This commit is contained in:
committed by
TeamCityServer
parent
670575696f
commit
ec2d6ea5f1
@@ -43,6 +43,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
projectTest(parallel = true) {
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
systemProperty("kotlin.script.test.base.compiler.arguments", "-Xuse-old-backend")
|
||||
}
|
||||
|
||||
// This doesn;t work now due to conflicts between embeddable compiler contents and intellij sdk modules
|
||||
|
||||
+4
-1
@@ -35,7 +35,10 @@ import kotlin.script.experimental.jvmhost.JvmScriptCompiler
|
||||
*/
|
||||
class ImplicitsFromScriptResultTest : TestCase() {
|
||||
fun testImplicits() {
|
||||
if (System.getProperty("kotlin.script.base.compiler.arguments")?.contains("-Xuse-ir") != true) {
|
||||
if (System.getProperty("kotlin.script.base.compiler.arguments")?.let {
|
||||
!it.contains("-Xuse-ir") || it.contains("-Xuse-old-backend")
|
||||
} == true
|
||||
) {
|
||||
// the implementation of the Compiler Host doesn't work with IR - the inter-script symbol table
|
||||
// should be maintained to make it run (see latest REPL compiler implementations for details
|
||||
// TODO: consider either fix it or rewrite to the REPL compiler
|
||||
|
||||
Reference in New Issue
Block a user