Make tests that use jvm-annotations be targeted to jvm backend

This commit is contained in:
Pavel Punegov
2018-10-11 17:44:09 +03:00
committed by Pavel Punegov
parent 8be3e902a8
commit d9a8a00069
5 changed files with 6 additions and 33 deletions
@@ -1,5 +1,6 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JS, JS_IR, JVM_IR
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
inline class R(private val r: Int) {
@@ -1,5 +1,6 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JS, JS_IR, JVM_IR
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: test.kt
@@ -1,5 +1,6 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR, JS, JS_IR
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
class Foo {
@@ -10324,11 +10324,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt");
}
@TestMetadata("jvmFieldInInlineClassCompanion.kt")
public void testJvmFieldInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt");
}
@TestMetadata("jvmStaticFunInInlineClassCompanion.kt")
public void testJvmStaticFunInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt");
@@ -10612,11 +10607,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt");
}
@TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt")
public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt");
}
public void testAllFilesPresentInContextsAndAccessors() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
}
@@ -10981,11 +10971,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt")
public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateLocalVarToInlineClass.kt")
public void testDelegateLocalVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt");
@@ -11369,11 +11369,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/iterateOverListOfInlineClassValues.kt");
}
@TestMetadata("jvmFieldInInlineClassCompanion.kt")
public void testJvmFieldInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmFieldInInlineClassCompanion.kt");
}
@TestMetadata("jvmStaticFunInInlineClassCompanion.kt")
public void testJvmStaticFunInInlineClassCompanion() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/jvmStaticFunInInlineClassCompanion.kt");
@@ -11657,11 +11652,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt");
}
@TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt")
public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt");
}
public void testAllFilesPresentInContextsAndAccessors() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
}
@@ -12026,11 +12016,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateJvmStaticCompanionVarToInlineClass.kt")
public void testDelegateJvmStaticCompanionVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateLocalVarToInlineClass.kt")
public void testDelegateLocalVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt");