[Test] Migrate AbstractIrBlackBoxCodegenTest to new infrastructure

This commit is contained in:
Dmitriy Novozhilov
2020-12-29 15:48:38 +03:00
committed by TeamCityServer
parent f1a2e66ba4
commit e3c7bd5f85
7 changed files with 6827 additions and 2385 deletions
@@ -377,10 +377,6 @@ fun generateJUnit3CompilerTests(args: Array<String>) {
model("codegen/composeLikeBytecodeText", targetBackend = TargetBackend.JVM_IR)
}
testClass<AbstractIrBlackBoxCodegenTest> {
model("codegen/box", targetBackend = TargetBackend.JVM_IR, excludeDirs = listOf("oldLanguageVersions"))
}
testClass<AbstractIrBlackBoxAgainstJavaCodegenTest> {
model("codegen/boxAgainstJava", targetBackend = TargetBackend.JVM_IR, excludeDirs = listOf("oldLanguageVersions"))
}
@@ -9,6 +9,7 @@ import org.jetbrains.kotlin.generators.util.TestGeneratorUtil
import org.jetbrains.kotlin.test.TargetBackend
import org.jetbrains.kotlin.test.runners.*
import org.jetbrains.kotlin.test.runners.codegen.AbstractBlackBoxCodegenTest
import org.jetbrains.kotlin.test.runners.codegen.AbstractIrBlackBoxCodegenTest
fun generateJUnit5CompilerTests(args: Array<String>) {
val excludedFirTestdataPattern = "^(.+)\\.fir\\.kts?\$"
@@ -58,6 +59,10 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
testClass<AbstractBlackBoxCodegenTest> {
model("codegen/box")
}
testClass<AbstractIrBlackBoxCodegenTest> {
model("codegen/box", excludeDirs = listOf("oldLanguageVersions"))
}
}
// ---------------------------------------------- FIR tests ----------------------------------------------