[K/N][Tests] Migrate kt48816 tests
^KT-61259
This commit is contained in:
+12
@@ -5074,6 +5074,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_disable.kt")
|
||||
public void testKt48816_lazy_ir_disable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_enable.kt")
|
||||
public void testKt48816_lazy_ir_enable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -5190,6 +5190,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_disable.kt")
|
||||
public void testKt48816_lazy_ir_disable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_enable.kt")
|
||||
public void testKt48816_lazy_ir_enable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -4958,6 +4958,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_disable.kt")
|
||||
public void testKt48816_lazy_ir_disable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_enable.kt")
|
||||
public void testKt48816_lazy_ir_enable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -5075,6 +5075,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_disable.kt")
|
||||
public void testKt48816_lazy_ir_disable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt48816_lazy_ir_enable.kt")
|
||||
public void testKt48816_lazy_ir_enable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+2
@@ -29,6 +29,7 @@ import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.DISABLE_N
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.DISABLE_NATIVE_K2
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.FILECHECK_STAGE
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.FREE_CINTEROP_ARGS
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.FREE_COMPILER_ARGS
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.IGNORE_NATIVE
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.IGNORE_NATIVE_K1
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestDirectives.IGNORE_NATIVE_K2
|
||||
@@ -171,6 +172,7 @@ private class ExtTestDataFile(
|
||||
|
||||
private fun assembleFreeCompilerArgs(): TestCompilerArgs {
|
||||
val args = mutableListOf<String>()
|
||||
structure.directives.listValues(FREE_COMPILER_ARGS.name)?.let { args.addAll(it)}
|
||||
testDataFileSettings.languageSettings.sorted().mapTo(args) { "-XXLanguage:$it" }
|
||||
testDataFileSettings.optInsForCompiler.sorted().mapTo(args) { "-opt-in=$it" }
|
||||
args += "-opt-in=kotlin.native.internal.InternalForKotlinNative" // for `Any.isPermanent()` and `Any.isLocal()`
|
||||
|
||||
Reference in New Issue
Block a user