[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 15:13:50 +03:00
parent 1ea4fa4464
commit 5c8d555808
147 changed files with 3749 additions and 2743 deletions
@@ -0,0 +1,26 @@
// TARGET_BACKEND: JVM
// MODULE: lib
// FILE: A.kt
// WITH_RUNTIME
abstract class IncrementalCompilerRunner<T>(
private val workingDir: String,
val fail: Boolean,
val output: Collection<String> = emptyList()
) {
fun res(res: T? = null): String = (res as? String) ?: (if (fail) "FAIL" else workingDir)
}
class IncrementalJsCompilerRunner(
private val workingDir: String,
fail: Boolean = true
) : IncrementalCompilerRunner<String>(workingDir, fail) {
}
// MODULE: main(lib)
// FILE: B.kt
fun box(): String {
val runner = IncrementalJsCompilerRunner(workingDir = "OK", fail = false)
return runner.res()
}