[K2/N] Rewrite mpp tests from old native infra to new
^KT-58543 Merge-request: KT-MR-10065 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
2b913d7c47
commit
bbe1e708f9
Generated
+71
@@ -21006,6 +21006,77 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/withTypeParameter.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MigratedOldTests extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mpp1.kt")
|
||||
public void testMpp1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp2.kt")
|
||||
public void testMpp2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp_default_args.kt")
|
||||
public void testMpp_default_args() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_default_args.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp_optional_expectation.kt")
|
||||
public void testMpp_optional_expectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("remap_expect_property_ref.kt")
|
||||
public void testRemap_expect_property_ref() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/remap_expect_property_ref.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MigratedOldTests extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/migratedOldTests"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mpp1.kt")
|
||||
public void testMpp1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp2.kt")
|
||||
public void testMpp2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp_default_args.kt")
|
||||
public void testMpp_default_args() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/mpp_default_args.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("remap_expect_property_ref.kt")
|
||||
public void testRemap_expect_property_ref() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/migratedOldTests/remap_expect_property_ref.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/multiModule")
|
||||
|
||||
Reference in New Issue
Block a user