Create test
This commit is contained in:
committed by
Sergey Bogolepov
parent
59ac756f22
commit
fd22add3ca
@@ -4366,6 +4366,10 @@ 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("kt49034_struct") {
|
||||
it.defFile 'interop/objc/kt49034/struct/kt49034.def'
|
||||
@@ -5091,6 +5095,11 @@ if (PlatformInfo.isAppleTarget(project)) {
|
||||
}
|
||||
}
|
||||
|
||||
interopTest("interop_objc_kt53151") {
|
||||
source = "interop/objc/kt53151/main.kt"
|
||||
interop = "objc_kt53151"
|
||||
}
|
||||
|
||||
standaloneTest("objc_arc_contract") {
|
||||
doBeforeBuild {
|
||||
mkdir(buildDir)
|
||||
@@ -6352,5 +6361,3 @@ project.afterEvaluate {
|
||||
outputs.upToDateWhen { false }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import kotlin.test.*
|
||||
import objclib.*
|
||||
|
||||
fun main() {
|
||||
assertEquals(1, getFrameworkInt())
|
||||
assertEquals(2, getDefInt())
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
language = Objective-C
|
||||
modules = Foo
|
||||
---
|
||||
static int getDefInt() {
|
||||
return 2;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
static int getFrameworkInt() {
|
||||
return 1;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
framework module Foo {
|
||||
umbrella header "Foo.h"
|
||||
}
|
||||
Reference in New Issue
Block a user