[test] Exclude "K1-only" from FIR IR text tests and "K2-only" from Classic IR text tests
^KT-60390
This commit is contained in:
committed by
Space Team
parent
44d57c7751
commit
b5d8db0267
+3
-43
@@ -22,7 +22,7 @@ import java.util.regex.Pattern;
|
||||
public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmIrTextTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInIrText() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "declarations/multiplatform/k1");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -411,7 +411,7 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
||||
public class Declarations {
|
||||
@Test
|
||||
public void testAllFilesPresentInDeclarations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "multiplatform/k1");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1028,47 +1028,7 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class K1 {
|
||||
@Test
|
||||
public void testAllFilesPresentInK1() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectClassInherited.kt")
|
||||
public void testExpectClassInherited() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectIntersectionOverride.kt")
|
||||
public void testExpectIntersectionOverride() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedEnumClass.kt")
|
||||
public void testExpectedEnumClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedSealedClass.kt")
|
||||
public void testExpectedSealedClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||
}
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "k1");
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java
Generated
+3
-43
@@ -22,7 +22,7 @@ import java.util.regex.Pattern;
|
||||
public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInIrText() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "declarations/multiplatform/k1");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -411,7 +411,7 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
||||
public class Declarations {
|
||||
@Test
|
||||
public void testAllFilesPresentInDeclarations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "multiplatform/k1");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1028,47 +1028,7 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class K1 {
|
||||
@Test
|
||||
public void testAllFilesPresentInK1() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectClassInherited.kt")
|
||||
public void testExpectClassInherited() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectIntersectionOverride.kt")
|
||||
public void testExpectIntersectionOverride() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedEnumClass.kt")
|
||||
public void testExpectedEnumClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedSealedClass.kt")
|
||||
public void testExpectedSealedClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||
}
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "k1");
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user