Add KlibABIK2TestGenerated to new test infra
diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/KlibABIK2TestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/KlibABIK2TestGenerated.java
new file mode 100644
index 0000000..3941ac1
--- /dev/null
+++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/KlibABIK2TestGenerated.java
@@ -0,0 +1,184 @@
+/*
+ * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.konan.blackboxtest;
+
+import com.intellij.testFramework.TestDataPath;
+import org.jetbrains.kotlin.test.util.KtTestUtil;
+import org.jetbrains.kotlin.konan.blackboxtest.support.group.K2Pipeline;
+import org.jetbrains.kotlin.test.TestMetadata;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
+
+import java.io.File;
+import java.util.regex.Pattern;
+
+/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateNativeTestsKt}. DO NOT MODIFY MANUALLY */
+@SuppressWarnings("all")
+@TestMetadata("compiler/testData/klibABI")
+@TestDataPath("$PROJECT_ROOT")
+@K2Pipeline()
+public class KlibABIK2TestGenerated extends AbstractNativeKlibABITest {
+ @Test
+ public void testAllFilesPresentInKlibABI() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/klibABI"), Pattern.compile("^([^_](.+))$"), null, false);
+ }
+
+ @Test
+ @TestMetadata("changeFunctionVisibility")
+ public void testChangeFunctionVisibility() throws Exception {
+ runTest("compiler/testData/klibABI/changeFunctionVisibility/");
+ }
+
+ @Test
+ @TestMetadata("changePropertyVisibility")
+ public void testChangePropertyVisibility() throws Exception {
+ runTest("compiler/testData/klibABI/changePropertyVisibility/");
+ }
+
+ @Test
+ @TestMetadata("noNonImplementedCallableFalsePositives")
+ public void testNoNonImplementedCallableFalsePositives() throws Exception {
+ runTest("compiler/testData/klibABI/noNonImplementedCallableFalsePositives/");
+ }
+
+ @Test
+ @TestMetadata("nonAbstractFunctionInAbstractClassBecomesAbstract")
+ public void testNonAbstractFunctionInAbstractClassBecomesAbstract() throws Exception {
+ runTest("compiler/testData/klibABI/nonAbstractFunctionInAbstractClassBecomesAbstract/");
+ }
+
+ @Test
+ @TestMetadata("nonAbstractFunctionInInterfaceBecomesAbstract")
+ public void testNonAbstractFunctionInInterfaceBecomesAbstract() throws Exception {
+ runTest("compiler/testData/klibABI/nonAbstractFunctionInInterfaceBecomesAbstract/");
+ }
+
+ @Test
+ @TestMetadata("nonAbstractPropertyInAbstractClassBecomesAbstract")
+ public void testNonAbstractPropertyInAbstractClassBecomesAbstract() throws Exception {
+ runTest("compiler/testData/klibABI/nonAbstractPropertyInAbstractClassBecomesAbstract/");
+ }
+
+ @Test
+ @TestMetadata("nonAbstractPropertyInInterfaceBecomesAbstract")
+ public void testNonAbstractPropertyInInterfaceBecomesAbstract() throws Exception {
+ runTest("compiler/testData/klibABI/nonAbstractPropertyInInterfaceBecomesAbstract/");
+ }
+
+ @Test
+ @TestMetadata("removeAbstractFunctionFromAbstractClass")
+ public void testRemoveAbstractFunctionFromAbstractClass() throws Exception {
+ runTest("compiler/testData/klibABI/removeAbstractFunctionFromAbstractClass/");
+ }
+
+ @Test
+ @TestMetadata("removeAbstractFunctionFromInterface")
+ public void testRemoveAbstractFunctionFromInterface() throws Exception {
+ runTest("compiler/testData/klibABI/removeAbstractFunctionFromInterface/");
+ }
+
+ @Test
+ @TestMetadata("removeAbstractPropertyFromAbstractClass")
+ public void testRemoveAbstractPropertyFromAbstractClass() throws Exception {
+ runTest("compiler/testData/klibABI/removeAbstractPropertyFromAbstractClass/");
+ }
+
+ @Test
+ @TestMetadata("removeAbstractPropertyFromInterface")
+ public void testRemoveAbstractPropertyFromInterface() throws Exception {
+ runTest("compiler/testData/klibABI/removeAbstractPropertyFromInterface/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsConstructorCall")
+ public void testRemoveClassAsConstructorCall() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsConstructorCall/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsParameterType")
+ public void testRemoveClassAsParameterType() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsParameterType/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsReturnType")
+ public void testRemoveClassAsReturnType() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsReturnType/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsSuperTypeArgument")
+ public void testRemoveClassAsSuperTypeArgument() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsSuperTypeArgument/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsTypeArgument")
+ public void testRemoveClassAsTypeArgument() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsTypeArgument/");
+ }
+
+ @Test
+ @TestMetadata("removeClassAsVariableType")
+ public void testRemoveClassAsVariableType() throws Exception {
+ runTest("compiler/testData/klibABI/removeClassAsVariableType/");
+ }
+
+ @Test
+ @TestMetadata("removeFunction")
+ public void testRemoveFunction() throws Exception {
+ runTest("compiler/testData/klibABI/removeFunction/");
+ }
+
+ @Test
+ @TestMetadata("removeInlinedClass")
+ public void testRemoveInlinedClass() throws Exception {
+ runTest("compiler/testData/klibABI/removeInlinedClass/");
+ }
+
+ @Test
+ @TestMetadata("removeInlinedFunction")
+ public void testRemoveInlinedFunction() throws Exception {
+ runTest("compiler/testData/klibABI/removeInlinedFunction/");
+ }
+
+ @Test
+ @TestMetadata("removeInlinedProperty")
+ public void testRemoveInlinedProperty() throws Exception {
+ runTest("compiler/testData/klibABI/removeInlinedProperty/");
+ }
+
+ @Test
+ @TestMetadata("removeOpenFunction")
+ public void testRemoveOpenFunction() throws Exception {
+ runTest("compiler/testData/klibABI/removeOpenFunction/");
+ }
+
+ @Test
+ @TestMetadata("removeOpenProperty")
+ public void testRemoveOpenProperty() throws Exception {
+ runTest("compiler/testData/klibABI/removeOpenProperty/");
+ }
+
+ @Test
+ @TestMetadata("removeProperty")
+ public void testRemoveProperty() throws Exception {
+ runTest("compiler/testData/klibABI/removeProperty/");
+ }
+
+ @Test
+ @TestMetadata("replaceCallableReturnType")
+ public void testReplaceCallableReturnType() throws Exception {
+ runTest("compiler/testData/klibABI/replaceCallableReturnType/");
+ }
+
+ @Test
+ @TestMetadata("typeAliasRHSTypeChange")
+ public void testTypeAliasRHSTypeChange() throws Exception {
+ runTest("compiler/testData/klibABI/typeAliasRHSTypeChange/");
+ }
+}
diff --git a/native/native.tests/tests/org/jetbrains/kotlin/generators/tests/GenerateNativeTests.kt b/native/native.tests/tests/org/jetbrains/kotlin/generators/tests/GenerateNativeTests.kt
index a7122af..a43de46 100644
--- a/native/native.tests/tests/org/jetbrains/kotlin/generators/tests/GenerateNativeTests.kt
+++ b/native/native.tests/tests/org/jetbrains/kotlin/generators/tests/GenerateNativeTests.kt
@@ -61,6 +61,15 @@
}
}
+ testGroup("native/native.tests/tests-gen", "compiler/testData") {
+ testClass<AbstractNativeKlibABITest>(
+ suiteTestClassName = "KlibABIK2TestGenerated",
+ annotations = listOf(provider<K2Pipeline>())
+ ) {
+ model("klibABI/", pattern = "^([^_](.+))$", recursive = false)
+ }
+ }
+
// KLIB binary compatibility tests.
testGroup("native/native.tests/tests-gen", "compiler/testData") {
testClass<AbstractNativeKlibBinaryCompatibilityTest>(