Add KotlinTestK2LibraryTest to new test infra
Merge-request: KT-MR-8766
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
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 61a916d..686542a 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 @@
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 @@
@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"))
+}