[K/N][Tests] Migrate tests kt49034*.kt
^KT-61259
This commit is contained in:
committed by
Space Team
parent
ae09c0fb60
commit
bd688b3ef7
+12
@@ -5092,6 +5092,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_objcclass.kt")
|
||||
public void testKt49034_objcclass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_struct.kt")
|
||||
public void testKt49034_struct() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -5208,6 +5208,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_objcclass.kt")
|
||||
public void testKt49034_objcclass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_struct.kt")
|
||||
public void testKt49034_struct() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -4976,6 +4976,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_objcclass.kt")
|
||||
public void testKt49034_objcclass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_struct.kt")
|
||||
public void testKt49034_struct() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+12
@@ -5093,6 +5093,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_objcclass.kt")
|
||||
public void testKt49034_objcclass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49034_struct.kt")
|
||||
public void testKt49034_struct() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53151.kt")
|
||||
public void testKt53151() throws Exception {
|
||||
|
||||
+4
@@ -20,6 +20,7 @@ import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
|
||||
import org.jetbrains.kotlin.config.CommonConfigurationKeys
|
||||
import org.jetbrains.kotlin.config.CompilerConfiguration
|
||||
import org.jetbrains.kotlin.config.LanguageFeature
|
||||
import org.jetbrains.kotlin.konan.target.Architecture
|
||||
import org.jetbrains.kotlin.konan.target.Family
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.*
|
||||
import org.jetbrains.kotlin.konan.test.blackbox.support.TestCase.WithTestRunnerExtras
|
||||
@@ -933,12 +934,14 @@ private fun Settings.isIgnoredWithIGNORE_BACKEND(directives: Directives): Boolea
|
||||
}
|
||||
|
||||
private val TARGET_FAMILY = "targetFamily"
|
||||
private val TARGET_ARCHITECTURE = "targetArchitecture"
|
||||
private val IS_APPLE_TARGET = "isAppleTarget"
|
||||
private val CACHE_MODE_NAMES = CacheMode.Alias.entries.map { it.name }
|
||||
private val TEST_MODE_NAMES = TestMode.entries.map { it.name }
|
||||
private val OPTIMIZATION_MODE_NAMES = OptimizationMode.entries.map { it.name }
|
||||
private val GC_TYPE_NAMES = GCType.entries.map { it.name }
|
||||
private val FAMILY_NAMES = Family.entries.map { it.name }
|
||||
private val ARCHITECTURE_NAMES = Architecture.entries.map { it.name }
|
||||
private val BOOLEAN_NAMES = listOf(true.toString(), false.toString())
|
||||
|
||||
private fun Settings.isDisabledNative(directives: Directives) =
|
||||
@@ -965,6 +968,7 @@ private fun Settings.evaluate(directiveValues: List<String?>): Boolean {
|
||||
ClassLevelProperty.TEST_TARGET.shortName -> get<KotlinNativeTargets>().testTarget.name to null
|
||||
ClassLevelProperty.GC_TYPE.shortName -> get<GCType>().name to GC_TYPE_NAMES
|
||||
TARGET_FAMILY -> get<KotlinNativeTargets>().testTarget.family.name to FAMILY_NAMES
|
||||
TARGET_ARCHITECTURE -> get<KotlinNativeTargets>().testTarget.architecture.name to ARCHITECTURE_NAMES
|
||||
IS_APPLE_TARGET -> get<KotlinNativeTargets>().testTarget.family.isAppleFamily.toString() to BOOLEAN_NAMES
|
||||
else -> throw AssertionError("ClassLevelProperty name: $propName is not yet supported in IGNORE_NATIVE* test directives.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user