From a8382c25b21fcfe4cdd106eeb22cd8b226719f34 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Wed, 12 Apr 2017 12:25:26 +0200 Subject: [PATCH] Add run configuration to run common java backend tests on jdk 8 with jvm target 1.8 --- ...n_Tests_with_JVM_target_1_8_on_JDK_1_8.xml | 28 +++++++++++++++++ .../codegen/CodegenJdkCommonTestSuite.java | 31 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_1_8.xml create mode 100644 compiler/tests/org/jetbrains/kotlin/codegen/CodegenJdkCommonTestSuite.java diff --git a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_1_8.xml b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_1_8.xml new file mode 100644 index 00000000000..739fd86ed97 --- /dev/null +++ b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_1_8.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/CodegenJdkCommonTestSuite.java b/compiler/tests/org/jetbrains/kotlin/codegen/CodegenJdkCommonTestSuite.java new file mode 100644 index 00000000000..e36f5a94b31 --- /dev/null +++ b/compiler/tests/org/jetbrains/kotlin/codegen/CodegenJdkCommonTestSuite.java @@ -0,0 +1,31 @@ +/* + * Copyright 2010-2017 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jetbrains.kotlin.codegen; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/*This suite is used to run common java-backend tests under jdk 8, jdk 9 with default target 1.8 (and in future 1.9)*/ +@RunWith(Suite.class) +@Suite.SuiteClasses({ + BlackBoxCodegenTestGenerated.class, + BlackBoxInlineCodegenTestGenerated.class, + CompileKotlinAgainstInlineKotlinTestGenerated.class, + CompileKotlinAgainstKotlinTestGenerated.class, + BlackBoxAgainstJavaCodegenTestGenerated.class +}) +public class CodegenJdkCommonTestSuite {}