K2 Scripting: restore some codegen scripting tests for K2

This commit is contained in:
Ilya Chernikov
2023-12-21 17:34:32 +01:00
committed by Space Team
parent a83d2b7a67
commit 3b70b3d92d
17 changed files with 248 additions and 4 deletions
@@ -40552,6 +40552,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Script extends AbstractLightAnalysisModeTest {
@TestMetadata("localCaptureTestsK2.kt")
public void ignoreLocalCaptureTestsK2() throws Exception {
runTest("compiler/testData/codegen/box/script/localCaptureTestsK2.kt");
}
@TestMetadata("scriptNestedClassInstanceK2.kt")
public void ignoreScriptNestedClassInstanceK2() throws Exception {
runTest("compiler/testData/codegen/box/script/scriptNestedClassInstanceK2.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
@@ -40579,6 +40589,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
public void testScriptNestedClassInstance() throws Exception {
runTest("compiler/testData/codegen/box/script/scriptNestedClassInstance.kt");
}
@TestMetadata("scriptPropFromAnotherModuleK2.kt")
public void testScriptPropFromAnotherModuleK2() throws Exception {
runTest("compiler/testData/codegen/box/script/scriptPropFromAnotherModuleK2.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/sealed")