[JS, Tests] Migrate IR tests onto outputDir and outputName
This commit is contained in:
+3
-1
@@ -9,7 +9,9 @@ abstract class AbstractIncrementalJsKlibCompilerRunnerTest : AbstractIncremental
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
|
||||
K2JSCompilerArguments().apply {
|
||||
libraries = "build/js-ir-runtime/full-runtime.klib"
|
||||
outputFile = File(destinationDir, "${testDir.name}.$KLIB_FILE_EXTENSION").path
|
||||
outputDir = destinationDir.path
|
||||
outputName = testDir.name
|
||||
outputFile = null
|
||||
sourceMap = false
|
||||
irProduceKlibDir = false
|
||||
irProduceKlibFile = true
|
||||
|
||||
+4
-2
@@ -19,7 +19,8 @@ abstract class AbstractIncrementalMultiModuleJsKlibCompilerRunnerTest :
|
||||
override fun createCompilerArguments(destinationDir: File, testDir: File): K2JSCompilerArguments =
|
||||
K2JSCompilerArguments().apply {
|
||||
libraries = STDLIB_DEPENDENCY
|
||||
outputFile = File(destinationDir, "${testDir.name}.$KLIB_FILE_EXTENSION").path
|
||||
outputDir = destinationDir.path
|
||||
outputName = testDir.name
|
||||
sourceMap = false
|
||||
irProduceKlibDir = false
|
||||
irProduceKlibFile = true
|
||||
@@ -81,7 +82,8 @@ abstract class AbstractIncrementalMultiModuleJsKlibCompilerRunnerTest :
|
||||
}
|
||||
|
||||
libraries = sb.toString()
|
||||
outputFile = outFile.path
|
||||
outputDir = outFile.parentFile.path
|
||||
outputName = outFile.nameWithoutExtension
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user