K1/K2: add a group of BB test around primitives in Java

Related to KT-62554, KT-63242
This commit is contained in:
Mikhail Glukhikh
2024-01-22 18:12:48 +01:00
committed by Space Team
parent e42c1be354
commit 51093a4764
27 changed files with 724 additions and 53 deletions
@@ -16688,6 +16688,19 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
}
}
@Nested
@@ -17076,6 +17076,21 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@Tag("frontend-fir")
@FirPipeline()
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
}
}
@Nested
@@ -16300,6 +16300,17 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
}
}
@Nested
@@ -16689,6 +16689,19 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
public void testToLong() throws Exception {
runTest("compiler/testData/codegen/box/fir/toLong.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fir/primitivesInJava")
@TestDataPath("$PROJECT_ROOT")
@UseExtTestCaseGroupProvider()
@UsePartialLinkage(mode = Mode.DISABLED)
@Tag("no-partial-linkage-may-be-skipped")
public class PrimitivesInJava {
@Test
public void testAllFilesPresentInPrimitivesInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir/primitivesInJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
}
}
@Nested