Rewrite ir interpreter's dump tests to box

Box tests will check the correctness of interpreter, meantime
by dumped ir we can understand that expression was folded.
This commit is contained in:
Ivan Kylchik
2021-12-13 18:01:28 +03:00
parent fac98b7787
commit 0b22cf6cb9
21 changed files with 199 additions and 541 deletions
@@ -10,7 +10,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.*
import org.jetbrains.kotlin.test.runners.ir.AbstractDumpLoweredIrTest
import org.jetbrains.kotlin.test.runners.ir.AbstractLoweredIrInterpreterTest
import org.jetbrains.kotlin.test.runners.ir.AbstractFir2IrTextTest
import org.jetbrains.kotlin.test.runners.ir.AbstractIrTextTest
import org.jetbrains.kotlin.test.runners.ir.AbstractLightTreeFir2IrTextTest
@@ -118,10 +118,6 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
model("ir/irText")
}
testClass<AbstractDumpLoweredIrTest> {
model("ir/loweredIr")
}
testClass<AbstractBytecodeTextTest> {
model("codegen/bytecodeText")
}
@@ -247,6 +243,10 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
testClass<AbstractFirLocalVariableTest> {
model("debug/localVariables")
}
testClass<AbstractLoweredIrInterpreterTest> {
model("ir/loweredIr")
}
}
testGroup(testsRoot = "compiler/fir/fir2ir/tests-gen", testDataRoot = "compiler/fir/fir2ir/testData") {