[K/N] Migrate most simple filecheck tests to new infra

^KT-62157


Merge-request: KT-MR-12376
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-10-23 10:07:28 +00:00
committed by Space Team
parent 3d399a8b25
commit e43b634122
113 changed files with 3245 additions and 1595 deletions
@@ -13904,6 +13904,42 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck")
@TestDataPath("$PROJECT_ROOT")
public class FileCheck {
@Test
public void testAllFilesPresentInFileCheck() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261")
@TestDataPath("$PROJECT_ROOT")
public class Kt53261 {
@Test
public void testAllFilesPresentInKt53261() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing")
@TestDataPath("$PROJECT_ROOT")
public class StringConcatenationTypeNarrowing {
@Test
public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("kt53119_side_effect.kt")
public void testKt53119_side_effect() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/finally")
@TestDataPath("$PROJECT_ROOT")
@@ -13904,6 +13904,42 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck")
@TestDataPath("$PROJECT_ROOT")
public class FileCheck {
@Test
public void testAllFilesPresentInFileCheck() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261")
@TestDataPath("$PROJECT_ROOT")
public class Kt53261 {
@Test
public void testAllFilesPresentInKt53261() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing")
@TestDataPath("$PROJECT_ROOT")
public class StringConcatenationTypeNarrowing {
@Test
public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("kt53119_side_effect.kt")
public void testKt53119_side_effect() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/finally")
@TestDataPath("$PROJECT_ROOT")
@@ -13904,6 +13904,42 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck")
@TestDataPath("$PROJECT_ROOT")
public class FileCheck {
@Test
public void testAllFilesPresentInFileCheck() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261")
@TestDataPath("$PROJECT_ROOT")
public class Kt53261 {
@Test
public void testAllFilesPresentInKt53261() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing")
@TestDataPath("$PROJECT_ROOT")
public class StringConcatenationTypeNarrowing {
@Test
public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("kt53119_side_effect.kt")
public void testKt53119_side_effect() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/finally")
@TestDataPath("$PROJECT_ROOT")
@@ -13904,6 +13904,42 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck")
@TestDataPath("$PROJECT_ROOT")
public class FileCheck {
@Test
public void testAllFilesPresentInFileCheck() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261")
@TestDataPath("$PROJECT_ROOT")
public class Kt53261 {
@Test
public void testAllFilesPresentInKt53261() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing")
@TestDataPath("$PROJECT_ROOT")
public class StringConcatenationTypeNarrowing {
@Test
public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("kt53119_side_effect.kt")
public void testKt53119_side_effect() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt");
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/finally")
@TestDataPath("$PROJECT_ROOT")