[KLIB IC] Add test about incremental kotlin-js-stdlib-klib recompliation

This commit is contained in:
Roman Artemev
2020-06-19 14:47:21 +03:00
committed by romanart
parent a493b21c7c
commit cc818025df
13 changed files with 69 additions and 0 deletions
@@ -743,6 +743,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -743,6 +743,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -746,6 +746,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -743,6 +743,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -744,6 +744,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -744,6 +744,11 @@ public class IrIncrementalJvmCompilerRunnerTestGenerated extends AbstractIrIncre
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -3015,6 +3015,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps-plugin/testData/incremental/classHierarchyAffected/inferredTypeChanged/");
}
@TestMetadata("interfaceAnyMethods")
public void testInterfaceAnyMethods() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods/");
}
@TestMetadata("lambdaParameterAffected")
public void testLambdaParameterAffected() throws Exception {
runTest("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected/");
@@ -3386,6 +3391,19 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
}
}
@TestMetadata("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class InterfaceAnyMethods extends AbstractIncrementalJvmJpsTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInInterfaceAnyMethods() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/classHierarchyAffected/interfaceAnyMethods"), Pattern.compile("^([^\\.]+)$"), null, true);
}
}
@TestMetadata("jps-plugin/testData/incremental/classHierarchyAffected/lambdaParameterAffected")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -0,0 +1,2 @@
interface B
@@ -0,0 +1,4 @@
class D : B {
override fun toString(): String = "D"
}
@@ -0,0 +1,13 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/test/B.class
out/production/module/test/UseKt.class
End of files
Compiling files:
src/B.kt
src/use.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,2 @@
fun use(): String = D().toString()