[test] Remove TARGET_BACKEND: JVM_IR for non JVM-specific irText tests

If they fail on other backends, use the IGNORE_BACKEND directive instead
This commit is contained in:
Sergej Jaskiewicz
2023-04-11 17:46:04 +02:00
committed by Space Team
parent a224feefd2
commit 973adb6a38
21 changed files with 376 additions and 15 deletions
@@ -709,24 +709,60 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}
@@ -709,24 +709,60 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}
@@ -709,24 +709,60 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("arrayAccessCompositeOperators.kt")
public void testArrayAccessCompositeOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt");
}
@Test
@TestMetadata("arrayAccessOperators.kt")
public void testArrayAccessOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt");
}
@Test
@TestMetadata("compoundAssignmentOperators.kt")
public void testCompoundAssignmentOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt");
}
@Test
@TestMetadata("contextReceiverMethod.kt")
public void testContextReceiverMethod() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt");
}
@Test
@TestMetadata("contextualFunctionConversion.kt")
public void testContextualFunctionConversion() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt");
}
@Test
@TestMetadata("contextualInlineCall.kt")
public void testContextualInlineCall() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt");
}
@Test
@TestMetadata("contextualPrimaryConstructorWithParams.kt")
public void testContextualPrimaryConstructorWithParams() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt");
}
@Test
@TestMetadata("delegatedPropertiesOperators.kt")
public void testDelegatedPropertiesOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
@@ -745,6 +781,18 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt");
}
@Test
@TestMetadata("iteratorOperator.kt")
public void testIteratorOperator() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt");
}
@Test
@TestMetadata("kt52791.kt")
public void testKt52791() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt");
}
@Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
@@ -763,6 +811,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt");
}
@Test
@TestMetadata("passingLambdaToContextualParam.kt")
public void testPassingLambdaToContextualParam() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt");
}
@Test
@TestMetadata("plusMatrix.kt")
public void testPlusMatrix() throws Exception {
@@ -787,6 +841,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt");
}
@Test
@TestMetadata("unaryOperators.kt")
public void testUnaryOperators() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt");
}
@Nested
@TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP")
@TestDataPath("$PROJECT_ROOT")
@@ -795,6 +855,36 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
public void testAllFilesPresentInFromKEEP() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("canvas.kt")
public void testCanvas() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt");
}
@Test
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt");
}
@Test
@TestMetadata("dp.kt")
public void testDp() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt");
}
@Test
@TestMetadata("monoidSum.kt")
public void testMonoidSum() throws Exception {
runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt");
}
}
}