Add a separate test configurations for JDK 21 dependent test

After it's released, there would be no need in them, but right now
they are unavailable through the toolchain, so we can't require it.
See KT-58765 for tracking

But there should be a dedicated Build configuration with JDK_21_0 env
properly set.

^KT-58716 Fixed
This commit is contained in:
Denis.Zharkov
2023-05-17 18:17:40 +02:00
committed by Space Team
parent 4705207263
commit 67d51eb7ee
17 changed files with 332 additions and 17 deletions
@@ -32,6 +32,9 @@ enum class TestJdkKind(val requiresSeparateProcess: Boolean = false) {
// JDK found at $JDK_17_0
FULL_JDK_17(requiresSeparateProcess = true),
// JDK found at $JDK_21_0
FULL_JDK_21(requiresSeparateProcess = true),
// JDK found at java.home
FULL_JDK,
ANDROID_API,
@@ -159,6 +159,10 @@ public class KtTestUtil {
return getJdkHome("JDK_17_0", "JDK_17");
}
public static File getJdk21Home() {
return getJdkHome("JDK_21_0", "JDK_21");
}
@NotNull
public static String getTestDataPathBase() {
return getHomeDirectory() + "/compiler/testData";