[K/N] Run stdlib tests only in normal mode ^KT-61259
This commit is contained in:
committed by
Space Team
parent
1fa0ef6f56
commit
bd797ed503
-18
@@ -21,21 +21,12 @@ import org.junit.jupiter.api.TestFactory
|
||||
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"]
|
||||
)
|
||||
)
|
||||
@UsePartialLinkage(UsePartialLinkage.Mode.DISABLED)
|
||||
class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||
@TestFactory
|
||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||
|
||||
@TestFactory
|
||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
||||
}
|
||||
|
||||
@Tag("kotlin-test")
|
||||
@@ -46,12 +37,6 @@ class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||
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"]
|
||||
)
|
||||
)
|
||||
@FirPipeline
|
||||
@@ -59,7 +44,4 @@ class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||
class FirKotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||
@TestFactory
|
||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||
|
||||
@TestFactory
|
||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
||||
}
|
||||
|
||||
@@ -31,28 +31,12 @@ import org.junit.jupiter.api.TestFactory
|
||||
"kotlin-native/backend.native/tests/stdlib_external/jsCollectionFactoriesActuals.kt"
|
||||
],
|
||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
||||
),
|
||||
TC(
|
||||
name = "worker",
|
||||
runnerType = TestRunnerType.WORKER,
|
||||
freeCompilerArgs = [ENABLE_MPP, STDLIB_IS_A_FRIEND, ENABLE_X_STDLIB_API, ENABLE_X_ENCODING_API, ENABLE_RANGE_UNTIL],
|
||||
sourceLocations = [
|
||||
"libraries/stdlib/test/**.kt",
|
||||
"libraries/stdlib/common/test/**.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/text/**.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/utils.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/jsCollectionFactoriesActuals.kt"
|
||||
],
|
||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
||||
)
|
||||
)
|
||||
@UsePartialLinkage(UsePartialLinkage.Mode.DISABLED)
|
||||
class StdlibTest : AbstractNativeBlackBoxTest() {
|
||||
@TestFactory
|
||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||
|
||||
@TestFactory
|
||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
||||
}
|
||||
|
||||
@Tag("stdlib")
|
||||
@@ -78,27 +62,6 @@ class StdlibTest : AbstractNativeBlackBoxTest() {
|
||||
DISABLED_K2_ARRAYS,
|
||||
],
|
||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
||||
),
|
||||
TC(
|
||||
name = "worker",
|
||||
runnerType = TestRunnerType.WORKER,
|
||||
freeCompilerArgs = [ENABLE_MPP, STDLIB_IS_A_FRIEND, ENABLE_X_STDLIB_API, ENABLE_X_ENCODING_API, ENABLE_RANGE_UNTIL,
|
||||
"-Xcommon-sources=libraries/stdlib/common/test/jsCollectionFactories.kt",
|
||||
"-Xcommon-sources=libraries/stdlib/common/test/testUtils.kt",
|
||||
"-Xcommon-sources=libraries/stdlib/test/testUtils.kt",
|
||||
"-Xcommon-sources=libraries/stdlib/test/text/StringEncodingTest.kt",
|
||||
],
|
||||
sourceLocations = [
|
||||
"libraries/stdlib/test/**.kt",
|
||||
"libraries/stdlib/common/test/**.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/text/**.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/utils.kt",
|
||||
"kotlin-native/backend.native/tests/stdlib_external/jsCollectionFactoriesActuals.kt"
|
||||
],
|
||||
ignoredFiles = [
|
||||
DISABLED_K2_ARRAYS,
|
||||
],
|
||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
||||
)
|
||||
)
|
||||
@FirPipeline
|
||||
@@ -106,9 +69,6 @@ class StdlibTest : AbstractNativeBlackBoxTest() {
|
||||
class FirStdlibTest : AbstractNativeBlackBoxTest() {
|
||||
@TestFactory
|
||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||
|
||||
@TestFactory
|
||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
||||
}
|
||||
|
||||
private const val ENABLE_MPP = "-Xmulti-platform"
|
||||
|
||||
Reference in New Issue
Block a user