[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,
|
runnerType = TestRunnerType.DEFAULT,
|
||||||
freeCompilerArgs = [STDLIB_IS_A_FRIEND],
|
freeCompilerArgs = [STDLIB_IS_A_FRIEND],
|
||||||
sourceLocations = ["libraries/kotlin.test/common/src/test/kotlin/**.kt"]
|
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)
|
@UsePartialLinkage(UsePartialLinkage.Mode.DISABLED)
|
||||||
class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||||
@TestFactory
|
@TestFactory
|
||||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||||
|
|
||||||
@TestFactory
|
|
||||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Tag("kotlin-test")
|
@Tag("kotlin-test")
|
||||||
@@ -46,12 +37,6 @@ class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
|||||||
runnerType = TestRunnerType.DEFAULT,
|
runnerType = TestRunnerType.DEFAULT,
|
||||||
freeCompilerArgs = [STDLIB_IS_A_FRIEND],
|
freeCompilerArgs = [STDLIB_IS_A_FRIEND],
|
||||||
sourceLocations = ["libraries/kotlin.test/common/src/test/kotlin/**.kt"]
|
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
|
@FirPipeline
|
||||||
@@ -59,7 +44,4 @@ class KotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
|||||||
class FirKotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
class FirKotlinTestLibraryTest : AbstractNativeBlackBoxTest() {
|
||||||
@TestFactory
|
@TestFactory
|
||||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
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"
|
"kotlin-native/backend.native/tests/stdlib_external/jsCollectionFactoriesActuals.kt"
|
||||||
],
|
],
|
||||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
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)
|
@UsePartialLinkage(UsePartialLinkage.Mode.DISABLED)
|
||||||
class StdlibTest : AbstractNativeBlackBoxTest() {
|
class StdlibTest : AbstractNativeBlackBoxTest() {
|
||||||
@TestFactory
|
@TestFactory
|
||||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||||
|
|
||||||
@TestFactory
|
|
||||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Tag("stdlib")
|
@Tag("stdlib")
|
||||||
@@ -78,27 +62,6 @@ class StdlibTest : AbstractNativeBlackBoxTest() {
|
|||||||
DISABLED_K2_ARRAYS,
|
DISABLED_K2_ARRAYS,
|
||||||
],
|
],
|
||||||
ignoredTests = [DISABLED_STDLIB_TEST]
|
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
|
@FirPipeline
|
||||||
@@ -106,9 +69,6 @@ class StdlibTest : AbstractNativeBlackBoxTest() {
|
|||||||
class FirStdlibTest : AbstractNativeBlackBoxTest() {
|
class FirStdlibTest : AbstractNativeBlackBoxTest() {
|
||||||
@TestFactory
|
@TestFactory
|
||||||
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
fun default() = dynamicTestCase(TestCaseId.Named("default"))
|
||||||
|
|
||||||
@TestFactory
|
|
||||||
fun worker() = dynamicTestCase(TestCaseId.Named("worker"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private const val ENABLE_MPP = "-Xmulti-platform"
|
private const val ENABLE_MPP = "-Xmulti-platform"
|
||||||
|
|||||||
Reference in New Issue
Block a user