gradle-plugin, tests: Enable ignored library tests

This commit is contained in:
Ilya Matveev
2017-11-13 16:57:36 +07:00
committed by ilmat192
parent 3c6bcb9244
commit b96ede81d2
2 changed files with 7 additions and 5 deletions
@@ -141,7 +141,7 @@ class KonanProject {
|plugins { id 'konan' }
|
|konan.targets = [${targets.collect { "'$it'" }.join(", ")}]
""".stripMargin()
|""".stripMargin()
)
compilationTasks = [":compileKonan", ":build"]
return result
@@ -234,7 +234,6 @@ class LibrarySpecification extends BaseKonanSpecification {
.build()
}
@Ignore // TODO: Ignored due to an error with recursive klibs
def 'Plugin should support library dependencies in the same project'() {
expect:
def project = KonanProject.createEmpty(projectDirectory) { KonanProject it ->
@@ -255,7 +254,6 @@ class LibrarySpecification extends BaseKonanSpecification {
.build()
}
@Ignore // TODO: Ignored due to an error with recursive klibs
def 'Plugin should support library dependencies from other projects'() {
expect:
def project = KonanProject.createEmpty(projectDirectory)
@@ -272,11 +270,15 @@ class LibrarySpecification extends BaseKonanSpecification {
subproject2.addCompilerArtifact("bar", "fun bar() { println(43) }", ArtifactType.LIBRARY)
subproject2.addSetting("bar", "noDefaultLibs", "true")
subproject2.addLibraryToArtifact("bar", "rootProject.project('subproject1'), foo")
subproject2.addLibraryToArtifactCustom(
"bar", "artifact rootProject.project('subproject1'), 'foo'"
)
project.addCompilerArtifact("main" ,"fun main(args: Array<String>) { foo(); bar() }")
project.addSetting("main", "noDefaultLibs", "true" )
project.addLibraryToArtifact("main", "project(subproject2), bar")
project.addLibraryToArtifactCustom(
"main", "artifact project('subproject2'), 'bar'"
)
project.createRunner()
.withArguments(KonanProject.compilationTask("main"))