[CLI] Add CLI arguments to pass HMPP module structure to the compiler

^KT-56209
This commit is contained in:
Dmitriy Novozhilov
2023-02-08 18:14:12 +02:00
committed by Space Team
parent ec59cc050c
commit 77caa31640
31 changed files with 504 additions and 0 deletions
@@ -105,6 +105,69 @@ public class CliTestGenerated extends AbstractCliTest {
}
}
@TestMetadata("compiler/testData/cli/jvm/hmpp")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Hmpp extends AbstractCliTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doJvmTest, this, testDataFilePath);
}
public void testAllFilesPresentInHmpp() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cli/jvm/hmpp"), Pattern.compile("^(.+)\\.args$"), null, false);
}
@TestMetadata("cycleInDependencies.args")
public void testCycleInDependencies() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/cycleInDependencies.args");
}
@TestMetadata("dependsOnSingleModule.args")
public void testDependsOnSingleModule() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/dependsOnSingleModule.args");
}
@TestMetadata("dependsOnWithoutModules.args")
public void testDependsOnWithoutModules() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/dependsOnWithoutModules.args");
}
@TestMetadata("duplicatedModules.args")
public void testDuplicatedModules() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/duplicatedModules.args");
}
@TestMetadata("lowLanguageVersion.args")
public void testLowLanguageVersion() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/lowLanguageVersion.args");
}
@TestMetadata("missingModule.args")
public void testMissingModule() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/missingModule.args");
}
@TestMetadata("moduleIncorrectSyntax.args")
public void testModuleIncorrectSyntax() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/moduleIncorrectSyntax.args");
}
@TestMetadata("moduleWithoutSources.args")
public void testModuleWithoutSources() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/moduleWithoutSources.args");
}
@TestMetadata("sameSourceInDifferentModules.args")
public void testSameSourceInDifferentModules() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/sameSourceInDifferentModules.args");
}
@TestMetadata("sourceNotInAnyModule.args")
public void testSourceNotInAnyModule() throws Exception {
runTest("compiler/testData/cli/jvm/hmpp/sourceNotInAnyModule.args");
}
}
@TestMetadata("compiler/testData/cli/jvm")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)