[PL][tests] Add Native K2 ABI compatibility tests
This commit is contained in:
committed by
Space Team
parent
8147aa7dd6
commit
b677112992
+7
-1
@@ -56,7 +56,13 @@ fun main() {
|
||||
// KLIB ABI tests.
|
||||
testGroup("native/native.tests/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractNativeKlibABITest>(
|
||||
suiteTestClassName = "KlibABITestGenerated"
|
||||
suiteTestClassName = "K1KlibABITestGenerated"
|
||||
) {
|
||||
model("klibABI/", pattern = "^([^_](.+))$", recursive = false)
|
||||
}
|
||||
testClass<AbstractNativeKlibABITest>(
|
||||
suiteTestClassName = "FirKlibABITestGenerated",
|
||||
annotations = listOf(provider<FirPipeline>())
|
||||
) {
|
||||
model("klibABI/", pattern = "^([^_](.+))$", recursive = false)
|
||||
}
|
||||
|
||||
+6
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.konan.blackboxtest
|
||||
|
||||
import com.intellij.testFramework.TestDataFile
|
||||
import org.jetbrains.kotlin.codegen.ProjectInfo
|
||||
import org.jetbrains.kotlin.klib.KlibABITestUtils
|
||||
import org.jetbrains.kotlin.klib.KlibABITestUtils.Dependencies
|
||||
import org.jetbrains.kotlin.klib.KlibABITestUtils.MAIN_MODULE_NAME
|
||||
@@ -53,6 +54,11 @@ abstract class AbstractNativeKlibABITest : AbstractNativeSimpleTest() {
|
||||
|
||||
override fun onNonEmptyBuildDirectory(directory: File) = backupDirectoryContents(directory)
|
||||
|
||||
// Temporarily mute TA tests on FIR FE with caches.
|
||||
override fun isIgnoredTest(projectInfo: ProjectInfo) = super.isIgnoredTest(projectInfo)
|
||||
|| (projectInfo.name == "typeAliasChanges" && testModeName.endsWith("STATIC_EVERYWHERE")
|
||||
&& this@AbstractNativePartialLinkageTest::class.java.simpleName.startsWith("Fir"))
|
||||
|
||||
override fun onIgnoredTest() = throw TestAbortedException()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user