Move IR interpreter's tests from ir/loweredIr directory into box
This commit is contained in:
+164
-30
@@ -263,12 +263,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/annotations/kt25489.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55108.kt")
|
||||
public void testKt55108() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/kt55108.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mustBeDocumented.kt")
|
||||
public void testMustBeDocumented() throws Exception {
|
||||
@@ -8295,12 +8289,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/constants/foldingBinaryOpsUnsignedConst.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53480.kt")
|
||||
public void testKt53480() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/kt53480.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9532.kt")
|
||||
public void testKt9532() throws Exception {
|
||||
@@ -17123,12 +17111,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/evaluate/plus.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceNameFromStaticInDifferentModule.kt")
|
||||
public void testReferenceNameFromStaticInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/evaluate/referenceNameFromStaticInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("rem.kt")
|
||||
public void testRem() throws Exception {
|
||||
@@ -17141,18 +17123,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/evaluate/simpleCallBinary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringConcatenationWithObject.kt")
|
||||
public void testStringConcatenationWithObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/evaluate/stringConcatenationWithObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("thisPlusString.kt")
|
||||
public void testThisPlusString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/evaluate/thisPlusString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unaryMinus.kt")
|
||||
public void testUnaryMinus() throws Exception {
|
||||
@@ -28106,6 +28076,170 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class InvolvesIrInterpreter {
|
||||
@Test
|
||||
public void testAllFilesPresentInInvolvesIrInterpreter() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53480.kt")
|
||||
public void testKt53480() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt53480.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55108.kt")
|
||||
public void testKt55108() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/kt55108.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceNameFromStaticInDifferentModule.kt")
|
||||
public void testReferenceNameFromStaticInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/referenceNameFromStaticInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringConcatenationWithObject.kt")
|
||||
public void testStringConcatenationWithObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenationWithObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("thisPlusString.kt")
|
||||
public void testThisPlusString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/thisPlusString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("useCorrectToString.kt")
|
||||
public void testUseCorrectToString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/useCorrectToString.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DumpIrAndCheck {
|
||||
@Test
|
||||
public void testAllFilesPresentInDumpIrAndCheck() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("booleanOperations.kt")
|
||||
public void testBooleanOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/booleanOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("byteOperations.kt")
|
||||
public void testByteOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/byteOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charOperations.kt")
|
||||
public void testCharOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constTrimIndent.kt")
|
||||
public void testConstTrimIndent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/constTrimIndent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constTrimMargin.kt")
|
||||
public void testConstTrimMargin() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/constTrimMargin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/doubleOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/enumName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumRecursiveName.kt")
|
||||
public void testEnumRecursiveName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/enumRecursiveName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("floatOperations.kt")
|
||||
public void testFloatOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifConstVal.kt")
|
||||
public void testIfConstVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/ifConstVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/intOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kCallableName.kt")
|
||||
public void testKCallableName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/kCallableName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53272.kt")
|
||||
public void testKt53272() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/kt53272.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("longOperations.kt")
|
||||
public void testLongOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/longOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("shortOperations.kt")
|
||||
public void testShortOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/shortOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stdlibConst.kt")
|
||||
public void testStdlibConst() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/stdlibConst.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringOperations.kt")
|
||||
public void testStringOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/stringOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsignedConst.kt")
|
||||
public void testUnsignedConst() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/dumpIrAndCheck/unsignedConst.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-151
@@ -1,151 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.test.runners.ir;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/ir/loweredIr")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class LoweredIrInterpreterTestGenerated extends AbstractLoweredIrInterpreterTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInLoweredIr() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/loweredIr"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/loweredIr/interpreter")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Interpreter {
|
||||
@Test
|
||||
public void testAllFilesPresentInInterpreter() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/loweredIr/interpreter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("booleanOperations.kt")
|
||||
public void testBooleanOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/booleanOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("byteOperations.kt")
|
||||
public void testByteOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/byteOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charOperations.kt")
|
||||
public void testCharOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constTrimIndent.kt")
|
||||
public void testConstTrimIndent() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/constTrimIndent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constTrimMargin.kt")
|
||||
public void testConstTrimMargin() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/constTrimMargin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/doubleOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumName.kt")
|
||||
public void testEnumName() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/enumName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumRecursiveName.kt")
|
||||
public void testEnumRecursiveName() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/enumRecursiveName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("floatOperations.kt")
|
||||
public void testFloatOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifConstVal.kt")
|
||||
public void testIfConstVal() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/ifConstVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/intOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kCallableName.kt")
|
||||
public void testKCallableName() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/kCallableName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53272.kt")
|
||||
public void testKt53272() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/kt53272.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("longOperations.kt")
|
||||
public void testLongOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/longOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("shortOperations.kt")
|
||||
public void testShortOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/shortOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stdlibConst.kt")
|
||||
public void testStdlibConst() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/stdlibConst.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringOperations.kt")
|
||||
public void testStringOperations() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/stringOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsignedConst.kt")
|
||||
public void testUnsignedConst() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/unsignedConst.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("useCorrectToString.kt")
|
||||
public void testUseCorrectToString() throws Exception {
|
||||
runTest("compiler/testData/ir/loweredIr/interpreter/useCorrectToString.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user