[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.C_INTERFACE_MODE, propertyValue = "NONE")
public class CExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceNone() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
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.C_INTERFACE_MODE, propertyValue = "V1")
public class CExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
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.C_INTERFACE_MODE, propertyValue = "NONE")
public class CExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceNone() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
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.C_INTERFACE_MODE, propertyValue = "V1")
public class CExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
}
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir")
@FirPipeline()
public class FirCExportDynamicInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceNone() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
}
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir")
@FirPipeline()
public class FirCExportDynamicInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
}
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir")
@FirPipeline()
public class FirCExportStaticInterfaceNoneTestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceNone() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceNone() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceNone"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("primitiveTypes")
public void testPrimitiveTypes() {
runTest("native/native.tests/testData/CExport/InterfaceNone/primitiveTypes/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() throws Exception {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceNone/smoke0/");
}
}
@@ -27,20 +27,20 @@ import java.util.regex.Pattern;
@Tag("frontend-fir")
@FirPipeline()
public class FirCExportStaticInterfaceV1TestGenerated extends AbstractNativeCExportTest {
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
public void testAllFilesPresentInInterfaceV1() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/CExport/InterfaceV1"), Pattern.compile("^([^_](.+))$"), null, false);
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("kt36639")
public void testKt36639() {
runTest("native/native.tests/testData/CExport/InterfaceV1/kt36639/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
@Test
@TestMetadata("smoke0")
public void testSmoke0() {
runTest("native/native.tests/testData/CExport/InterfaceV1/smoke0/");
}
}