[TEST] support test muting in klib text tests runner

This commit is contained in:
Roman Artemev
2021-06-09 12:42:35 +03:00
committed by teamcityserver
parent 5bc884ce2b
commit e82552975d
2 changed files with 18 additions and 0 deletions
@@ -57,7 +57,15 @@ import java.io.File
import java.util.*
abstract class AbstractKlibTextTestCase : CodegenTestCase() {
companion object {
val SKIP_KLIB_TEST = Regex("""// SKIP_KLIB_TEST""")
}
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
if (SKIP_KLIB_TEST.containsMatchIn(wholeFile.readText())) return
setupEnvironment(files)
loadMultiFiles(files)
@@ -57,6 +57,11 @@ public class KlibTextTestCaseGenerated extends AbstractKlibTextTestCase {
runTest("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt");
}
@TestMetadata("clashingFakeOverrideSignatures.kt")
public void testClashingFakeOverrideSignatures() throws Exception {
runTest("compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt");
}
@TestMetadata("classMembers.kt")
public void testClassMembers() throws Exception {
runTest("compiler/testData/ir/irText/classes/classMembers.kt");
@@ -67,6 +72,11 @@ public class KlibTextTestCaseGenerated extends AbstractKlibTextTestCase {
runTest("compiler/testData/ir/irText/classes/classes.kt");
}
@TestMetadata("cloneable.kt")
public void testCloneable() throws Exception {
runTest("compiler/testData/ir/irText/classes/cloneable.kt");
}
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
runTest("compiler/testData/ir/irText/classes/companionObject.kt");