Create test

This commit is contained in:
Rick Clephas
2022-07-12 22:13:02 +02:00
committed by Sergey Bogolepov
parent 59ac756f22
commit fd22add3ca
5 changed files with 28 additions and 2 deletions
@@ -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;
}
@@ -0,0 +1,3 @@
static int getFrameworkInt() {
return 1;
}
@@ -0,0 +1,3 @@
framework module Foo {
umbrella header "Foo.h"
}