[Test] Introduce new syntax for dependsOn dependencies

This commit is contained in:
Dmitriy Novozhilov
2021-05-13 13:54:09 +03:00
committed by TeamCityServer
parent 47e258ef6e
commit 06b2efe65f
127 changed files with 203 additions and 193 deletions
@@ -18,11 +18,17 @@ data class TestModule(
val frontendKind: FrontendKind<*>,
val binaryKind: BinaryKind<*>,
val files: List<TestFile>,
val dependencies: List<DependencyDescription>,
val friends: List<DependencyDescription>,
val allDependencies: List<DependencyDescription>,
val directives: RegisteredDirectives,
val languageVersionSettings: LanguageVersionSettings
) {
val regularDependencies: List<DependencyDescription>
get() = allDependencies.filter { it.relation == DependencyRelation.RegularDependency }
val friendDependencies: List<DependencyDescription>
get() = allDependencies.filter { it.relation == DependencyRelation.FriendDependency }
val dependsOnDependencies: List<DependencyDescription>
get() = allDependencies.filter { it.relation == DependencyRelation.DependsOnDependency }
override fun equals(other: Any?): Boolean =
other is TestModule && name == other.name
@@ -33,7 +39,7 @@ data class TestModule(
appendLine("Module: $name")
appendLine("targetPlatform = $targetPlatform")
appendLine("Dependencies:")
dependencies.forEach { appendLine(" $it") }
allDependencies.forEach { appendLine(" $it") }
appendLine("Directives:\n $directives")
files.forEach { appendLine(it) }
}
@@ -56,8 +62,9 @@ class TestFile(
}
enum class DependencyRelation {
Dependency,
DependsOn
RegularDependency,
FriendDependency,
DependsOnDependency
}
enum class DependencyKind {