[K/N][tests] Migrate console runtime tests to new testing infra ^KT-61259

This commit is contained in:
Alexander Shabalin
2023-11-01 13:32:25 +01:00
committed by Space Team
parent 2abf9bccba
commit 6ca8f546fe
62 changed files with 311 additions and 347 deletions
@@ -399,6 +399,29 @@ fun main() {
model("klib/header-klibs/compilation", extension = null, recursive = false)
}
}
// Plain executable tests
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
testClass<AbstractNativeBlackBoxTest>(
suiteTestClassName = "NativeStandaloneTestGenerated",
annotations = listOf(
*standalone(),
provider<UseStandardTestCaseGroupProvider>(),
)
) {
model("standalone")
}
testClass<AbstractNativeBlackBoxTest>(
suiteTestClassName = "FirNativeStandaloneTestGenerated",
annotations = listOf(
*standalone(),
provider<UseStandardTestCaseGroupProvider>(),
*frontendFir(),
)
) {
model("standalone")
}
}
}
}
@@ -441,3 +464,11 @@ private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
private fun k1libContents() = annotation(Tag::class.java, "k1libContents")
private fun k2libContents() = annotation(Tag::class.java, "k2libContents")
private fun atomicfuNative() = annotation(Tag::class.java, "atomicfu-native")
private fun standalone() = arrayOf(
annotation(Tag::class.java, "standalone"),
annotation(
EnforcedProperty::class.java,
"property" to ClassLevelProperty.TEST_KIND,
"propertyValue" to "STANDALONE_NO_TR"
)
)