[K/N] Migrate filecheck test redundant_safepoints to new infra

^KT-62157
This commit is contained in:
Vladimir Sukharev
2023-10-27 22:51:09 +02:00
committed by Space Team
parent 35b83a1225
commit 35e5b0613d
10 changed files with 96 additions and 69 deletions
@@ -15827,6 +15827,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt");
}
@Test
@TestMetadata("redundant_safepoints.kt")
public void testRedundant_safepoints() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt");
}
@Test
@TestMetadata("replace_invoke_with_call.kt")
public void testReplace_invoke_with_call() throws Exception {
@@ -16195,6 +16195,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt");
}
@Test
@TestMetadata("redundant_safepoints.kt")
public void testRedundant_safepoints() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt");
}
@Test
@TestMetadata("replace_invoke_with_call.kt")
public void testReplace_invoke_with_call() throws Exception {
@@ -15459,6 +15459,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt");
}
@Test
@TestMetadata("redundant_safepoints.kt")
public void testRedundant_safepoints() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt");
}
@Test
@TestMetadata("replace_invoke_with_call.kt")
public void testReplace_invoke_with_call() throws Exception {
@@ -15828,6 +15828,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt");
}
@Test
@TestMetadata("redundant_safepoints.kt")
public void testRedundant_safepoints() throws Exception {
runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt");
}
@Test
@TestMetadata("replace_invoke_with_call.kt")
public void testReplace_invoke_with_call() throws Exception {
@@ -10,6 +10,7 @@ import com.intellij.openapi.util.text.StringUtilRt.convertLineSeparators
import kotlinx.coroutines.*
import org.jetbrains.kotlin.konan.target.Architecture
import org.jetbrains.kotlin.konan.target.KonanTarget
import org.jetbrains.kotlin.konan.target.needSmallBinary
import org.jetbrains.kotlin.konan.test.blackbox.support.TestCaseId
import org.jetbrains.kotlin.konan.test.blackbox.support.runner.AbstractRunner.AbstractRun
import org.jetbrains.kotlin.konan.test.blackbox.support.runner.TestRunCheck.ExecutionTimeout
@@ -170,6 +171,11 @@ internal abstract class LocalResultHandler<R>(
if (testTarget.family.isAppleFamily) {
add("CHECK-APPLE")
}
if (testTarget.needSmallBinary()) {
add("CHECK-SMALLBINARY")
} else {
add("CHECK-BIGBINARY")
}
}
val optimizationMode = check.settings.get<OptimizationMode>().name
val checkPrefixesWithOptMode = checkPrefixes.map { "$it-$optimizationMode" }