[Native][Tests] Adapt CExport tests to generator changes

This commit is contained in:
Sergey Bogolepov
2024-02-19 10:27:38 +02:00
committed by Space Team
parent 4f9c1860b1
commit 8ae6e98295
8 changed files with 112 additions and 112 deletions
@@ -23,20 +23,20 @@ import java.util.regex.Pattern;
@EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "DYNAMIC") @EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "DYNAMIC")
@EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "NONE") @EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "NONE")
public class CExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest { public class CExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceNone() throws Exception { public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("primitiveTypes") @TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception { public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/"); runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() throws Exception { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
} }
} }
@@ -23,20 +23,20 @@ import java.util.regex.Pattern;
@EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "DYNAMIC") @EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "DYNAMIC")
@EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "V1") @EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "V1")
public class CExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest { public class CExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceV1() { public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("kt36639") @TestMetadata("kt36639")
public void testKt36639() { public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/"); runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
} }
} }
@@ -23,20 +23,20 @@ import java.util.regex.Pattern;
@EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "STATIC") @EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "STATIC")
@EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "NONE") @EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "NONE")
public class CExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest { public class CExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceNone() throws Exception { public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("primitiveTypes") @TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception { public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/"); runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() throws Exception { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
} }
} }
@@ -23,20 +23,20 @@ import java.util.regex.Pattern;
@EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "STATIC") @EnforcedProperty(property = ClassLevelProperty.BINARY_LIBRARY_KIND, propertyValue = "STATIC")
@EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "V1") @EnforcedProperty(property = ClassLevelProperty.C_INTERFACE_MODE, propertyValue = "V1")
public class CExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest { public class CExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceV1() { public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("kt36639") @TestMetadata("kt36639")
public void testKt36639() { public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/"); runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
} }
} }
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir") @Tag("frontend-fir")
@FirPipeline() @FirPipeline()
public class FirCExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest { public class FirCExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceNone() throws Exception { public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("primitiveTypes") @TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception { public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/"); runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() throws Exception { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
} }
} }
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir") @Tag("frontend-fir")
@FirPipeline() @FirPipeline()
public class FirCExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest { public class FirCExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceV1() { public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("kt36639") @TestMetadata("kt36639")
public void testKt36639() { public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/"); runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
} }
} }
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir") @Tag("frontend-fir")
@FirPipeline() @FirPipeline()
public class FirCExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest { public class FirCExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceNone() throws Exception { public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("primitiveTypes") @TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception { public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/"); runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() throws Exception { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
} }
} }
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir") @Tag("frontend-fir")
@FirPipeline() @FirPipeline()
public class FirCExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest { public class FirCExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test @Test
public void testAllFilesPresentInInterfaceV1() { public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false); KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
} }
@Test @Test
@TestMetadata("kt36639") @TestMetadata("kt36639")
public void testKt36639() { public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/"); runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
} }
@Test @Test
@TestMetadata("smoke0") @TestMetadata("smoke0")
public void testSmoke0() { public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/"); runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
} }
} }