[K/N][Tests] Migrate test embedStaticLibraries.kt
^KT-61259
This commit is contained in:
committed by
Space Team
parent
6e8a7d4662
commit
3ad8fed5a3
@@ -947,30 +947,6 @@ createInterop("sockets") {
|
||||
it.defFile 'interop/basics/sockets.def'
|
||||
}
|
||||
|
||||
createInterop("embedStaticLibraries") {
|
||||
it.defFile 'interop/embedStaticLibraries/embedStaticLibraries.def'
|
||||
it.headers "$projectDir/interop/embedStaticLibraries/embedStaticLibraries.h"
|
||||
|
||||
// Note: also hardcoded in def file.
|
||||
final File libDir = project.layout.buildDirectory.dir("embedStaticLibraries").get().asFile
|
||||
|
||||
it.getByTarget(target.name).configure {
|
||||
doFirst {
|
||||
1.upto(4) {
|
||||
UtilsKt.buildStaticLibrary(
|
||||
project,
|
||||
[file("$projectDir/interop/embedStaticLibraries/${it}.c")],
|
||||
file("$libDir/${it}.a"),
|
||||
file("$libDir/${it}.objs"),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
it.extraOpts '-staticLibrary', "1.a"
|
||||
it.extraOpts '-staticLibrary', "2.a"
|
||||
}
|
||||
|
||||
createInterop("kt43502") {
|
||||
it.defFile 'interop/kt43502/kt43502.def'
|
||||
it.headers "$projectDir/interop/kt43502/kt43502.h"
|
||||
@@ -1150,11 +1126,6 @@ standaloneTest("interop_objc_allocException") {
|
||||
UtilsKt.dependsOnPlatformLibs(it)
|
||||
}
|
||||
|
||||
interopTest("interop_embedStaticLibraries") {
|
||||
source = "interop/embedStaticLibraries/main.kt"
|
||||
interop = 'embedStaticLibraries'
|
||||
}
|
||||
|
||||
dynamicTest("interop_kt43502") {
|
||||
interop = "kt43502"
|
||||
source = "interop/kt43502/main.kt"
|
||||
|
||||
Reference in New Issue
Block a user