Report error if IR is enabled with incorrect language version

^KT-36338 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-02-03 16:34:48 +03:00
parent feccf9cc1b
commit fee72839bf
14 changed files with 108 additions and 0 deletions
@@ -365,6 +365,21 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/invalidMetadataVersion.args");
}
@TestMetadata("irApiVersionUnsupported.args")
public void testIrApiVersionUnsupported() throws Exception {
runTest("compiler/testData/cli/jvm/irApiVersionUnsupported.args");
}
@TestMetadata("irLanguageVersionUnsupported.args")
public void testIrLanguageVersionUnsupported() throws Exception {
runTest("compiler/testData/cli/jvm/irLanguageVersionUnsupported.args");
}
@TestMetadata("irSupported.args")
public void testIrSupported() throws Exception {
runTest("compiler/testData/cli/jvm/irSupported.args");
}
@TestMetadata("javaSrcWrongPackage.args")
public void testJavaSrcWrongPackage() throws Exception {
runTest("compiler/testData/cli/jvm/javaSrcWrongPackage.args");
@@ -783,6 +798,16 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/js/inlineCycle.args");
}
@TestMetadata("irApiVersionUnsupported.args")
public void testIrApiVersionUnsupported() throws Exception {
runTest("compiler/testData/cli/js/irApiVersionUnsupported.args");
}
@TestMetadata("irLanguageVersionUnsupported.args")
public void testIrLanguageVersionUnsupported() throws Exception {
runTest("compiler/testData/cli/js/irLanguageVersionUnsupported.args");
}
@TestMetadata("jsExtraHelp.args")
public void testJsExtraHelp() throws Exception {
runTest("compiler/testData/cli/js/jsExtraHelp.args");