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")) +}