gradle-plugin: Correct some incremental tests
This commit is contained in:
+3
-1
@@ -124,7 +124,7 @@ class IncrementalSpecification extends Specification {
|
|||||||
it.generateSrcFile('main.kt')
|
it.generateSrcFile('main.kt')
|
||||||
it.newFolder('src', 'foo', 'kotlin')
|
it.newFolder('src', 'foo', 'kotlin')
|
||||||
it.generateSrcFile('src/foo/kotlin/', 'bar.kt', """
|
it.generateSrcFile('src/foo/kotlin/', 'bar.kt', """
|
||||||
fun bar() { println("Hello!") }
|
fun main(args: Array<String>) { println("Hello!") }
|
||||||
""".stripIndent())
|
""".stripIndent())
|
||||||
}
|
}
|
||||||
def results = buildTwice(project) { KonanInteropProject it ->
|
def results = buildTwice(project) { KonanInteropProject it ->
|
||||||
@@ -257,11 +257,13 @@ class IncrementalSpecification extends Specification {
|
|||||||
def project = KonanInteropProject.createEmpty(tmpFolder) { KonanInteropProject it ->
|
def project = KonanInteropProject.createEmpty(tmpFolder) { KonanInteropProject it ->
|
||||||
it.generateSrcFile('main.kt')
|
it.generateSrcFile('main.kt')
|
||||||
it.newFolder('src', 'lib', 'kotlin')
|
it.newFolder('src', 'lib', 'kotlin')
|
||||||
|
it.generateSrcFile('src/lib/kotlin', 'lib.kt', 'fun foo() { println(42) }')
|
||||||
it.buildFile.append("""
|
it.buildFile.append("""
|
||||||
konanArtifacts {
|
konanArtifacts {
|
||||||
lib {
|
lib {
|
||||||
inputFiles fileTree('src/lib/kotlin')
|
inputFiles fileTree('src/lib/kotlin')
|
||||||
produce 'bitcode'
|
produce 'bitcode'
|
||||||
|
noMain()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""".stripIndent())
|
""".stripIndent())
|
||||||
|
|||||||
Reference in New Issue
Block a user