[K/N] Implement lightweight tests for ObjC header generation

This commit is contained in:
Sebastian Sellmair
2023-11-21 13:59:09 +01:00
committed by Space Team
parent 06811dfc2f
commit ddd97e84b9
41 changed files with 1074 additions and 2 deletions
+30 -2
View File
@@ -29,6 +29,12 @@ sourceSets {
cli_bc {
kotlin.srcDir 'cli.bc/src'
}
test {
kotlin {
srcDir 'functionalTest/src'
}
}
}
compileCompilerKotlin {
@@ -119,7 +125,6 @@ kotlinNativeInterop {
}
}
configurations {
compilerApi {
extendsFrom kotlinNativeInterop['llvm'].configuration
@@ -182,8 +187,9 @@ dependencies {
cli_bcApi sourceSets.compiler.output
cli_bcApiElements sourceSets.cli_bc.output
}
testImplementation(project(path: ":compiler:tests-common", configuration: "tests-jar"))
}
classes.dependsOn 'compilerClasses', 'cli_bcClasses'
@@ -243,3 +249,25 @@ RepoArtifacts.sourcesJar(project) {
}
RepoArtifacts.javadocJar(project)
/*
Configure 'test' task
*/
TasksKt.projectTest(project)
tasks {
test {
dependsOn ':kotlin-native:dist'
systemProperty("org.jetbrains.kotlin.native.home", distDir.canonicalPath)
workingDir(rootProject.projectDir)
}
}
kotlin {
target {
compilations {
test.associateWith(compiler)
}
}
}