Change allConstants test

Currently, FIR compilation of `const val b: Byte = 50 + 50` shows an error, but old compiler doesn't (it shows only warning). Since this is an incremental test, it should not be affected by compiler errors, but should only test for .kt usage without recompilation.

#KT-54991 In Progress
This commit is contained in:
Aleksei.Cherepanov
2022-11-30 15:21:11 +01:00
committed by Space Team
parent a0fa438735
commit 090a58ccc4
26 changed files with 200 additions and 130 deletions
@@ -727,11 +727,6 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/allConstants/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile(".*SinceK2"), TargetBackend.JVM_IR, false);
}
@@ -756,6 +751,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");
@@ -58,11 +58,6 @@ public class IncrementalK2FirICLightTreeJvmJpsTestGenerated extends AbstractIncr
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/allConstants/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("(^.*Expect.*)|(^companionConstantChanged)"), TargetBackend.JVM_IR, false);
}
@@ -92,6 +87,11 @@ public class IncrementalK2FirICLightTreeJvmJpsTestGenerated extends AbstractIncr
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");
@@ -58,11 +58,6 @@ public class IncrementalK2JvmJpsTestGenerated extends AbstractIncrementalK2JvmJp
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/allConstants/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("(^.*Expect.*)|(^companionConstantChanged)"), TargetBackend.JVM_IR, false);
}
@@ -92,6 +87,11 @@ public class IncrementalK2JvmJpsTestGenerated extends AbstractIncrementalK2JvmJp
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");
@@ -58,11 +58,6 @@ public class IncrementalK2LightTreeJvmJpsTestGenerated extends AbstractIncrement
runTest("jps/jps-plugin/testData/incremental/pureKotlin/addTopLevelTypeAlias/");
}
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/allConstants/");
}
public void testAllFilesPresentInPureKotlin() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/pureKotlin"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("(^.*Expect.*)|(^companionConstantChanged)"), TargetBackend.JVM_IR, false);
}
@@ -92,6 +87,11 @@ public class IncrementalK2LightTreeJvmJpsTestGenerated extends AbstractIncrement
runTest("jps/jps-plugin/testData/incremental/pureKotlin/changeWithRemovingUsage/");
}
@TestMetadata("checkConstants")
public void testCheckConstants() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/checkConstants/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/classInlineFunctionChanged/");