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:
committed by
Space Team
parent
a0fa438735
commit
090a58ccc4
+5
-5
@@ -58,11 +58,6 @@ public class IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated extends Abs
|
||||
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.*"), TargetBackend.JVM_IR, false);
|
||||
}
|
||||
@@ -92,6 +87,11 @@ public class IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated extends Abs
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -58,11 +58,6 @@ public class IncrementalFirJvmCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
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.*"), TargetBackend.JVM_IR, false);
|
||||
}
|
||||
@@ -92,6 +87,11 @@ public class IncrementalFirJvmCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -58,11 +58,6 @@ public class IncrementalFirLightTreeJvmCompilerRunnerTestGenerated extends Abstr
|
||||
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.*"), TargetBackend.JVM_IR, false);
|
||||
}
|
||||
@@ -92,6 +87,11 @@ public class IncrementalFirLightTreeJvmCompilerRunnerTestGenerated extends Abstr
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -57,11 +57,6 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
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"), false);
|
||||
}
|
||||
@@ -86,6 +81,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -57,11 +57,6 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
||||
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"), false);
|
||||
}
|
||||
@@ -86,6 +81,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -57,11 +57,6 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
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("(^sealed.*)|(.*SinceK2)"), false);
|
||||
}
|
||||
@@ -86,6 +81,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -57,11 +57,6 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
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("^sealed.*"), false);
|
||||
}
|
||||
@@ -91,6 +86,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
|
||||
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/");
|
||||
|
||||
+5
-5
@@ -58,11 +58,6 @@ public class IncrementalJvmCompilerRunnerTestGenerated 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(".*SinceK2"), TargetBackend.JVM_IR, false);
|
||||
}
|
||||
@@ -87,6 +82,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated 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/");
|
||||
|
||||
Reference in New Issue
Block a user