From 93baad5f39876cb68e83963cb4d6667a245a0e05 Mon Sep 17 00:00:00 2001 From: Vladimir Sukharev Date: Sat, 11 Feb 2023 13:58:08 +0000 Subject: [PATCH] Add KotlinTestK2LibraryTest to new test infra Merge-request: KT-MR-8766 Merged-by: Vladimir Sukharev --- .../blackboxtest/KotlinTestLibraryTest.kt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/KotlinTestLibraryTest.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/KotlinTestLibraryTest.kt index 61a916dc065..686542af0ca 100644 --- a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/KotlinTestLibraryTest.kt +++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/KotlinTestLibraryTest.kt @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.konan.blackboxtest import org.jetbrains.kotlin.konan.blackboxtest.support.TestCaseId import org.jetbrains.kotlin.konan.blackboxtest.support.TestRunnerType +import org.jetbrains.kotlin.konan.blackboxtest.support.group.K2Pipeline import org.jetbrains.kotlin.konan.blackboxtest.support.group.PredefinedTestCases import org.jetbrains.kotlin.konan.blackboxtest.support.group.PredefinedTestCase as TC import org.junit.jupiter.api.Tag @@ -34,3 +35,27 @@ class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() { @TestFactory fun worker() = dynamicTestCase(TestCaseId.Named("worker")) } + +@Tag("kotlin-test") +@PredefinedTestCases( + TC( + name = "default", + runnerType = TestRunnerType.DEFAULT, + freeCompilerArgs = [STDLIB_IS_A_FRIEND], + sourceLocations = ["libraries/kotlin.test/common/src/test/kotlin/**.kt"] + ), + TC( + name = "worker", + runnerType = TestRunnerType.WORKER, + freeCompilerArgs = [STDLIB_IS_A_FRIEND], + sourceLocations = ["libraries/kotlin.test/common/src/test/kotlin/**.kt"] + ) +) +@K2Pipeline +class KotlinTestK2LibraryTest : AbstractNativeBlackBoxTest() { + @TestFactory + fun default() = dynamicTestCase(TestCaseId.Named("default")) + + @TestFactory + fun worker() = dynamicTestCase(TestCaseId.Named("worker")) +}