[K/N][Tests] Migrate kt48816 tests

^KT-61259
This commit is contained in:
Vladimir Sukharev
2024-01-17 19:18:38 +01:00
parent 447c0fb618
commit 647a907204
20 changed files with 155 additions and 41 deletions
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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()`