[mpp, tests] Add few simple KpmCoreCases

This commit is contained in:
Dmitry Savvinov
2022-08-10 14:32:51 +02:00
parent a2c9864adc
commit 309b2f569d
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,23 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.project.model.coreCases
import org.jetbrains.kotlin.project.model.infra.KpmTestCase
import org.jetbrains.kotlin.project.model.testDsl.*
object SimpleProjectToProject : KpmTestCaseDescriptor {
override fun KpmTestCase.describeCase() {
allModules {
jvm()
macosX64()
}
val a = project("a")
val b = project("b")
a.depends(b)
}
}
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.project.model.coreCases
import org.jetbrains.kotlin.project.model.infra.KpmTestCase
import org.jetbrains.kotlin.project.model.testDsl.*
object SimpleTwoLevel : KpmTestCaseDescriptor {
override fun KpmTestCase.describeCase() {
project("p") {
allModules {
jvm()
macosX64()
}
}
}
}