[mpp, tests] Add few simple KpmCoreCases
This commit is contained in:
+23
@@ -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)
|
||||
}
|
||||
}
|
||||
+20
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user