[JS TESTS] Don't run ES6 test on win & mac till j2v8 issue is fixed.
This commit is contained in:
@@ -56,6 +56,8 @@ abstract class BasicIrBoxTest(
|
|||||||
|
|
||||||
val runEs6Mode: Boolean = getBoolean("kotlin.js.ir.es6", false)
|
val runEs6Mode: Boolean = getBoolean("kotlin.js.ir.es6", false)
|
||||||
|
|
||||||
|
private val osName: String = System.getProperty("os.name").toLowerCase()
|
||||||
|
|
||||||
// TODO Design incremental compilation for IR and add test support
|
// TODO Design incremental compilation for IR and add test support
|
||||||
override val incrementalCompilationChecksEnabled = false
|
override val incrementalCompilationChecksEnabled = false
|
||||||
|
|
||||||
@@ -190,6 +192,17 @@ abstract class BasicIrBoxTest(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun dontRunOnSpecificPlatform(targetBackend: TargetBackend): Boolean {
|
||||||
|
if (targetBackend != TargetBackend.JS_IR_ES6) return false
|
||||||
|
if (!runEs6Mode) return false
|
||||||
|
|
||||||
|
// TODO: Since j2v8 does not support ES6 on mac and windows, temporary don't run such test on those platforms.
|
||||||
|
if (osName.indexOf("win") >= 0) return true
|
||||||
|
if (osName.indexOf("mac") >= 0 || osName.indexOf("darwin") >= 0) return true
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
override fun runGeneratedCode(
|
override fun runGeneratedCode(
|
||||||
jsFiles: List<String>,
|
jsFiles: List<String>,
|
||||||
testModuleName: String?,
|
testModuleName: String?,
|
||||||
|
|||||||
Reference in New Issue
Block a user