[KT-43276] Update tests to support watchos_x64
This commit is contained in:
+2
-2
@@ -1270,7 +1270,7 @@ class CocoaPodsIT : BaseGradleIT() {
|
||||
spec.pod_target_xcconfig = {
|
||||
'KOTLIN_TARGET[sdk=iphonesimulator*]' => 'ios_x64',
|
||||
'KOTLIN_TARGET[sdk=iphoneos*]' => 'ios_arm',
|
||||
'KOTLIN_TARGET[sdk=watchsimulator*]' => 'watchos_x86',
|
||||
'KOTLIN_TARGET[sdk=watchsimulator*]' => 'watchos_x64',
|
||||
'KOTLIN_TARGET[sdk=watchos*]' => 'watchos_arm',
|
||||
'KOTLIN_TARGET[sdk=appletvsimulator*]' => 'tvos_x64',
|
||||
'KOTLIN_TARGET[sdk=appletvos*]' => 'tvos_arm64',
|
||||
@@ -1312,7 +1312,7 @@ class CocoaPodsIT : BaseGradleIT() {
|
||||
spec.pod_target_xcconfig = {
|
||||
'KOTLIN_TARGET[sdk=iphonesimulator*]' => 'ios_x64',
|
||||
'KOTLIN_TARGET[sdk=iphoneos*]' => 'ios_arm',
|
||||
'KOTLIN_TARGET[sdk=watchsimulator*]' => 'watchos_x86',
|
||||
'KOTLIN_TARGET[sdk=watchsimulator*]' => 'watchos_x64',
|
||||
'KOTLIN_TARGET[sdk=watchos*]' => 'watchos_arm',
|
||||
'KOTLIN_TARGET[sdk=appletvsimulator*]' => 'tvos_x64',
|
||||
'KOTLIN_TARGET[sdk=appletvos*]' => 'tvos_arm64',
|
||||
|
||||
+2
-2
@@ -66,8 +66,8 @@ class CommonNativeIT : BaseGradleIT() {
|
||||
fun testCommonWatchos() {
|
||||
doCommonNativeTest(
|
||||
"common-watchos",
|
||||
libTargets = listOf("watchosLibArm32", "watchosLibArm64", "watchosLibX86"),
|
||||
appTargets = listOf("watchosArm32", "watchosArm64", "watchosX86")
|
||||
libTargets = listOf("watchosLibArm32", "watchosLibArm64", "watchosLibX64"),
|
||||
appTargets = listOf("watchosArm32", "watchosArm64", "watchosX64")
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -51,12 +51,12 @@ class FatFrameworkIT : BaseGradleIT() {
|
||||
gradleBuildScript().modify {
|
||||
it.checkedReplace("iosArm32()", "watchosArm32()")
|
||||
.checkedReplace("iosArm64()", "watchosArm64()")
|
||||
.checkedReplace("iosX64()", "watchosX86()")
|
||||
.checkedReplace("iosX64()", "watchosX64()")
|
||||
}
|
||||
|
||||
build("fat") {
|
||||
checkSmokeBuild(
|
||||
archs = listOf("x86", "arm64", "arm32"),
|
||||
archs = listOf("x64", "arm64", "arm32"),
|
||||
targetPrefix = "watchos",
|
||||
expectedPlistPlatform = "WatchOS"
|
||||
)
|
||||
@@ -64,7 +64,7 @@ class FatFrameworkIT : BaseGradleIT() {
|
||||
val binary = fileInWorkingDir("build/fat-framework/smoke.framework/smoke")
|
||||
with(runProcess(listOf("file", binary.absolutePath), projectDir)) {
|
||||
assertTrue(isSuccessful)
|
||||
assertTrue(output.contains("\\(for architecture i386\\):\\s+Mach-O dynamically linked shared library i386".toRegex()))
|
||||
assertTrue(output.contains("\\(for architecture x86_64\\):\\s+Mach-O 64-bit dynamically linked shared library x86_64".toRegex()))
|
||||
assertTrue(output.contains("\\(for architecture armv7k\\):\\s+Mach-O dynamically linked shared library arm_v7k".toRegex()))
|
||||
assertTrue(output.contains("\\(for architecture arm64_32\\):\\s+Mach-O dynamically linked shared library arm64_32_v8".toRegex()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user