[TEST] support test muting in klib text tests runner
This commit is contained in:
committed by
teamcityserver
parent
5bc884ce2b
commit
e82552975d
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user