[K/N][Tests] Migrate first ObjC test with framework
^KT-61259
This commit is contained in:
@@ -1189,10 +1189,6 @@ if (PlatformInfo.isAppleTarget(project)) {
|
||||
createInterop("objc_kt50648") {
|
||||
it.defFile 'interop/objc/kt50648/objclib.def'
|
||||
}
|
||||
createInterop("objc_kt53151") {
|
||||
it.defFile 'interop/objc/kt53151/objclib.def'
|
||||
it.compilerOpts "-F$projectDir/interop/objc/kt53151/testFramework"
|
||||
}
|
||||
createInterop("objc_kt55938") {
|
||||
it.defFile 'interop/objc/kt55938/objclib.def'
|
||||
it.headers "$projectDir/interop/objc/kt55938/objclib.h"
|
||||
@@ -1694,11 +1690,6 @@ if (PlatformInfo.isAppleTarget(project)) {
|
||||
}
|
||||
}
|
||||
|
||||
interopTest("interop_objc_kt53151") {
|
||||
source = "interop/objc/kt53151/main.kt"
|
||||
interop = "objc_kt53151"
|
||||
}
|
||||
|
||||
interopTest("interop_objc_kt55938") {
|
||||
source = "interop/objc/kt55938/main.kt"
|
||||
lib = "interop/objc/kt55938/lib.kt"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import kotlin.test.*
|
||||
import objclib.*
|
||||
|
||||
fun main() {
|
||||
assertEquals(1, getFrameworkInt())
|
||||
assertEquals(2, getDefInt())
|
||||
assertEquals(1, getFrameworkIntFromDef())
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
language = Objective-C
|
||||
modules = Foo
|
||||
---
|
||||
static int getDefInt() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int getFrameworkIntFromDef() {
|
||||
return getFrameworkInt();
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
static int getFrameworkInt() {
|
||||
return 1;
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
framework module Foo {
|
||||
umbrella header "Foo.h"
|
||||
}
|
||||
Reference in New Issue
Block a user