[K/N][tests] Add EnforcedHostTarget to atomicfu tests ^KT-65977
This commit is contained in:
committed by
Space Team
parent
a8fcef9cca
commit
c491858a49
+5
-2
@@ -363,7 +363,7 @@ fun main() {
|
|||||||
testGroup("plugins/atomicfu/atomicfu-compiler/test", "plugins/atomicfu/atomicfu-compiler/testData") {
|
testGroup("plugins/atomicfu/atomicfu-compiler/test", "plugins/atomicfu/atomicfu-compiler/testData") {
|
||||||
testClass<AbstractNativeBlackBoxTest>(
|
testClass<AbstractNativeBlackBoxTest>(
|
||||||
suiteTestClassName = "AtomicfuNativeTestGenerated",
|
suiteTestClassName = "AtomicfuNativeTestGenerated",
|
||||||
annotations = listOf(atomicfuNative(), provider<UseStandardTestCaseGroupProvider>())
|
annotations = listOf(*atomicfuNative(), provider<UseStandardTestCaseGroupProvider>())
|
||||||
) {
|
) {
|
||||||
model("nativeBox")
|
model("nativeBox")
|
||||||
}
|
}
|
||||||
@@ -559,7 +559,10 @@ private fun debugger() = annotation(Tag::class.java, "debugger")
|
|||||||
private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
|
private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
|
||||||
private fun k1libContents() = annotation(Tag::class.java, "k1libContents")
|
private fun k1libContents() = annotation(Tag::class.java, "k1libContents")
|
||||||
private fun k2libContents() = annotation(Tag::class.java, "k2libContents")
|
private fun k2libContents() = annotation(Tag::class.java, "k2libContents")
|
||||||
private fun atomicfuNative() = annotation(Tag::class.java, "atomicfu-native")
|
private fun atomicfuNative() = arrayOf(
|
||||||
|
annotation(Tag::class.java, "atomicfu-native"),
|
||||||
|
annotation(EnforcedHostTarget::class.java), // TODO(KT-65977): Make atomicfu tests run on all targets.
|
||||||
|
)
|
||||||
private fun standalone() = arrayOf(
|
private fun standalone() = arrayOf(
|
||||||
annotation(Tag::class.java, "standalone"),
|
annotation(Tag::class.java, "standalone"),
|
||||||
annotation(
|
annotation(
|
||||||
|
|||||||
+8
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.konan.test.blackbox;
|
|||||||
import com.intellij.testFramework.TestDataPath;
|
import com.intellij.testFramework.TestDataPath;
|
||||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||||
import org.junit.jupiter.api.Tag;
|
import org.junit.jupiter.api.Tag;
|
||||||
|
import org.jetbrains.kotlin.konan.test.blackbox.support.EnforcedHostTarget;
|
||||||
import org.jetbrains.kotlin.konan.test.blackbox.support.group.UseStandardTestCaseGroupProvider;
|
import org.jetbrains.kotlin.konan.test.blackbox.support.group.UseStandardTestCaseGroupProvider;
|
||||||
import org.jetbrains.kotlin.test.TestMetadata;
|
import org.jetbrains.kotlin.test.TestMetadata;
|
||||||
import org.junit.jupiter.api.Nested;
|
import org.junit.jupiter.api.Nested;
|
||||||
@@ -21,6 +22,7 @@ import java.util.regex.Pattern;
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
||||||
@Test
|
@Test
|
||||||
@@ -32,6 +34,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/atomic_extensions")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/atomic_extensions")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Atomic_extensions {
|
public class Atomic_extensions {
|
||||||
@Test
|
@Test
|
||||||
@@ -104,6 +107,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/atomics_basic")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/atomics_basic")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Atomics_basic {
|
public class Atomics_basic {
|
||||||
@Test
|
@Test
|
||||||
@@ -194,6 +198,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/delegated")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/delegated")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Delegated {
|
public class Delegated {
|
||||||
@Test
|
@Test
|
||||||
@@ -212,6 +217,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/locks")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/locks")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Locks {
|
public class Locks {
|
||||||
@Test
|
@Test
|
||||||
@@ -236,6 +242,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/top-level")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/top-level")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Top_level {
|
public class Top_level {
|
||||||
@Test
|
@Test
|
||||||
@@ -260,6 +267,7 @@ public class AtomicfuNativeTestGenerated extends AbstractNativeBlackBoxTest {
|
|||||||
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/trace")
|
@TestMetadata("plugins/atomicfu/atomicfu-compiler/testData/nativeBox/trace")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@Tag("atomicfu-native")
|
@Tag("atomicfu-native")
|
||||||
|
@EnforcedHostTarget()
|
||||||
@UseStandardTestCaseGroupProvider()
|
@UseStandardTestCaseGroupProvider()
|
||||||
public class Trace {
|
public class Trace {
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user