Do not exclude codegen/box/script directory from JVM ABI tests

This commit is contained in:
vladislav.grechko
2024-02-21 17:13:35 +01:00
committed by Space Team
parent 9bbf15c14a
commit 224a4e1e3c
4 changed files with 104 additions and 2 deletions
@@ -23,7 +23,7 @@ import java.util.regex.Pattern;
public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistencyTest {
@Test
public void testAllFilesPresentInBox() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "multiplatform/k2", "script");
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "multiplatform/k2");
}
@Nested
@@ -50686,6 +50686,64 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/script")
@TestDataPath("$PROJECT_ROOT")
public class Script {
@Test
public void testAllFilesPresentInScript() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/script"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("classReference.kt")
public void testClassReference() {
runTest("compiler/testData/codegen/box/script/classReference.kt");
}
@Test
@TestMetadata("localCaptureTests.kt")
public void testLocalCaptureTests() {
runTest("compiler/testData/codegen/box/script/localCaptureTests.kt");
}
@Test
@TestMetadata("localCaptureTestsK2.kt")
public void testLocalCaptureTestsK2() {
runTest("compiler/testData/codegen/box/script/localCaptureTestsK2.kt");
}
@Test
@TestMetadata("scripInstance.kt")
public void testScripInstance() {
runTest("compiler/testData/codegen/box/script/scripInstance.kt");
}
@Test
@TestMetadata("scriptNestedClassInstance.kt")
public void testScriptNestedClassInstance() {
runTest("compiler/testData/codegen/box/script/scriptNestedClassInstance.kt");
}
@Test
@TestMetadata("scriptNestedClassInstanceK2.kt")
public void testScriptNestedClassInstanceK2() {
runTest("compiler/testData/codegen/box/script/scriptNestedClassInstanceK2.kt");
}
@Test
@TestMetadata("scriptPropFromAnotherModuleK2.kt")
public void testScriptPropFromAnotherModuleK2() {
runTest("compiler/testData/codegen/box/script/scriptPropFromAnotherModuleK2.kt");
}
@Test
@TestMetadata("syntheticJavaPropertyInScript.kt")
public void testSyntheticJavaPropertyInScript() {
runTest("compiler/testData/codegen/box/script/syntheticJavaPropertyInScript.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sealed")
@TestDataPath("$PROJECT_ROOT")