Generate IR tests in GenerateCompilerTests.kt

This commit is contained in:
Alexander Udalov
2017-11-02 11:36:18 +01:00
parent 61b78d7eda
commit 8c6ed3e872
2 changed files with 16 additions and 14 deletions
@@ -29,6 +29,8 @@ import org.jetbrains.kotlin.codegen.*
import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsReflectionTest
import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest
import org.jetbrains.kotlin.codegen.ir.AbstractIrBlackBoxCodegenTest
import org.jetbrains.kotlin.codegen.ir.AbstractIrBlackBoxInlineCodegenTest
import org.jetbrains.kotlin.codegen.ir.AbstractIrCompileKotlinAgainstInlineKotlinTest
import org.jetbrains.kotlin.generators.tests.generator.testGroup
import org.jetbrains.kotlin.integration.AbstractAntTaskTest
import org.jetbrains.kotlin.ir.AbstractIrCfgTestCase
@@ -351,4 +353,18 @@ fun main(args: Array<String>) {
model("kdoc/lexer")
}
}
testGroup("compiler/tests-ir-jvm/tests", "compiler/testData") {
testClass<AbstractIrBlackBoxCodegenTest> {
model("codegen/box", targetBackend = TargetBackend.JVM)
}
testClass<AbstractIrBlackBoxInlineCodegenTest> {
model("codegen/boxInline")
}
testClass<AbstractIrCompileKotlinAgainstInlineKotlinTest> {
model("codegen/boxInline")
}
}
}
@@ -170,20 +170,6 @@ import org.jetbrains.kotlin.test.TargetBackend
fun main(args: Array<String>) {
System.setProperty("java.awt.headless", "true")
testGroup("compiler/tests-ir-jvm/tests", "compiler/testData") {
testClass<AbstractIrBlackBoxCodegenTest> {
model("codegen/box", targetBackend = TargetBackend.JVM)
}
testClass<AbstractIrBlackBoxInlineCodegenTest> {
model("codegen/boxInline")
}
testClass<AbstractIrCompileKotlinAgainstInlineKotlinTest> {
model("codegen/boxInline")
}
}
testGroup("compiler/tests-java8/tests", "compiler/testData") {
testClass<AbstractBlackBoxCodegenTest>("BlackBoxWithJava8CodegenTestGenerated") {
model("codegen/java8/box")