Support "-module-name" argument for common code compiler

#KT-20892 Fixed
This commit is contained in:
Alexander Udalov
2017-11-02 18:57:08 +01:00
parent 3ede503042
commit c5c4c9cfcc
9 changed files with 35 additions and 1 deletions
@@ -818,4 +818,19 @@ public class CliTestGenerated extends AbstractCliTest {
doJsDceTest(fileName);
}
}
@TestMetadata("compiler/testData/cli/metadata")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Metadata extends AbstractCliTest {
public void testAllFilesPresentInMetadata() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/cli/metadata"), Pattern.compile("^(.+)\\.args$"), TargetBackend.ANY, false);
}
@TestMetadata("moduleName.args")
public void testModuleName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cli/metadata/moduleName.args");
doMetadataTest(fileName);
}
}
}