[K/N][tests] Migrate first platform-dependent test to new testing infra
^KT-61259
This commit is contained in:
committed by
Vladimir Sukharev
parent
4786c945d9
commit
b7fbfb2fde
@@ -429,11 +429,6 @@ open class KonanInteropTest : KonanStandaloneTest() {
|
||||
var lib: String? = null
|
||||
}
|
||||
|
||||
open class KonanLinkTest : KonanStandaloneTest() {
|
||||
@Input
|
||||
lateinit var lib: String
|
||||
}
|
||||
|
||||
/**
|
||||
* Test task to check a library built by `-produce dynamic`.
|
||||
* C source code should contain `testlib` as a reference to a testing library.
|
||||
|
||||
@@ -86,11 +86,6 @@ fun Task.dependsOnPlatformLibs() {
|
||||
this.dependsOn(":kotlin-native:platformLibs:${project.testTarget.name}-$it")
|
||||
//this.dependsOn(":kotlin-native:platformLibs:${project.testTarget.name}-${it}Cache")
|
||||
}
|
||||
if (this is KonanLinkTest) {
|
||||
project.file(lib).dependencies().forEach {
|
||||
this.dependsOn(":kotlin-native:platformLibs:${project.testTarget.name}-$it")
|
||||
}
|
||||
}
|
||||
this.dependsOnDist()
|
||||
} ?: error("unsupported task : $this")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user