Put tags to klib contents tests
Merge-request: KT-MR-8641 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
da98a47c4c
commit
ab32f90117
@@ -52,6 +52,8 @@ val klibBinaryCompatibilityTest = nativeTest("klibBinaryCompatibilityTest", "kli
|
|||||||
val cinteropTest = nativeTest("cinteropTest", "cinterop")
|
val cinteropTest = nativeTest("cinteropTest", "cinterop")
|
||||||
val debuggerTest = nativeTest("debuggerTest", "debugger")
|
val debuggerTest = nativeTest("debuggerTest", "debugger")
|
||||||
val cachesTest = nativeTest("cachesTest", "caches")
|
val cachesTest = nativeTest("cachesTest", "caches")
|
||||||
|
val k1libContentsTest = nativeTest("k1libContentsTest", "k1libContents")
|
||||||
|
val k2libContentsTest = nativeTest("k2libContentsTest", "k2libContents")
|
||||||
|
|
||||||
// "test" task is created by convention. We can't just remove it. Let's enable it in developer's environment, so it can be used
|
// "test" task is created by convention. We can't just remove it. Let's enable it in developer's environment, so it can be used
|
||||||
// to run any test from IDE or from console, but disable it at TeamCity where it is not supposed to be ever used.
|
// to run any test from IDE or from console, but disable it at TeamCity where it is not supposed to be ever used.
|
||||||
|
|||||||
+5
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.konan.blackboxtest;
|
|||||||
|
|
||||||
import com.intellij.testFramework.TestDataPath;
|
import com.intellij.testFramework.TestDataPath;
|
||||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||||
|
import org.junit.jupiter.api.Tag;
|
||||||
import org.jetbrains.kotlin.test.TestMetadata;
|
import org.jetbrains.kotlin.test.TestMetadata;
|
||||||
import org.junit.jupiter.api.Nested;
|
import org.junit.jupiter.api.Nested;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
@@ -18,6 +19,7 @@ import java.util.regex.Pattern;
|
|||||||
@SuppressWarnings("all")
|
@SuppressWarnings("all")
|
||||||
@TestMetadata("native/native.tests/testData/klibContents")
|
@TestMetadata("native/native.tests/testData/klibContents")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k1libContents")
|
||||||
public class NativeK1LibContentsTestGenerated extends AbstractNativeKlibContentsTest {
|
public class NativeK1LibContentsTestGenerated extends AbstractNativeKlibContentsTest {
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInKlibContents() throws Exception {
|
public void testAllFilesPresentInKlibContents() throws Exception {
|
||||||
@@ -57,6 +59,7 @@ public class NativeK1LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer")
|
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k1libContents")
|
||||||
public class BuiltinsSerializer {
|
public class BuiltinsSerializer {
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInBuiltinsSerializer() throws Exception {
|
public void testAllFilesPresentInBuiltinsSerializer() throws Exception {
|
||||||
@@ -120,6 +123,7 @@ public class NativeK1LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer/annotationArguments")
|
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer/annotationArguments")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k1libContents")
|
||||||
public class AnnotationArguments {
|
public class AnnotationArguments {
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInAnnotationArguments() throws Exception {
|
public void testAllFilesPresentInAnnotationArguments() throws Exception {
|
||||||
@@ -167,6 +171,7 @@ public class NativeK1LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/klib")
|
@TestMetadata("native/native.tests/testData/klibContents/klib")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k1libContents")
|
||||||
public class Klib {
|
public class Klib {
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInKlib() throws Exception {
|
public void testAllFilesPresentInKlib() throws Exception {
|
||||||
|
|||||||
+5
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.konan.blackboxtest;
|
|||||||
|
|
||||||
import com.intellij.testFramework.TestDataPath;
|
import com.intellij.testFramework.TestDataPath;
|
||||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||||
|
import org.junit.jupiter.api.Tag;
|
||||||
import org.jetbrains.kotlin.konan.blackboxtest.support.group.K2Pipeline;
|
import org.jetbrains.kotlin.konan.blackboxtest.support.group.K2Pipeline;
|
||||||
import org.jetbrains.kotlin.test.TestMetadata;
|
import org.jetbrains.kotlin.test.TestMetadata;
|
||||||
import org.junit.jupiter.api.Nested;
|
import org.junit.jupiter.api.Nested;
|
||||||
@@ -19,6 +20,7 @@ import java.util.regex.Pattern;
|
|||||||
@SuppressWarnings("all")
|
@SuppressWarnings("all")
|
||||||
@TestMetadata("native/native.tests/testData/klibContents")
|
@TestMetadata("native/native.tests/testData/klibContents")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k2libContents")
|
||||||
@K2Pipeline()
|
@K2Pipeline()
|
||||||
public class NativeK2LibContentsTestGenerated extends AbstractNativeKlibContentsTest {
|
public class NativeK2LibContentsTestGenerated extends AbstractNativeKlibContentsTest {
|
||||||
@Test
|
@Test
|
||||||
@@ -59,6 +61,7 @@ public class NativeK2LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer")
|
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k2libContents")
|
||||||
@K2Pipeline()
|
@K2Pipeline()
|
||||||
public class BuiltinsSerializer {
|
public class BuiltinsSerializer {
|
||||||
@Test
|
@Test
|
||||||
@@ -123,6 +126,7 @@ public class NativeK2LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer/annotationArguments")
|
@TestMetadata("native/native.tests/testData/klibContents/builtinsSerializer/annotationArguments")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k2libContents")
|
||||||
@K2Pipeline()
|
@K2Pipeline()
|
||||||
public class AnnotationArguments {
|
public class AnnotationArguments {
|
||||||
@Test
|
@Test
|
||||||
@@ -171,6 +175,7 @@ public class NativeK2LibContentsTestGenerated extends AbstractNativeKlibContents
|
|||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("native/native.tests/testData/klibContents/klib")
|
@TestMetadata("native/native.tests/testData/klibContents/klib")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("k2libContents")
|
||||||
@K2Pipeline()
|
@K2Pipeline()
|
||||||
public class Klib {
|
public class Klib {
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
+5
-2
@@ -103,7 +103,8 @@ fun main() {
|
|||||||
// Klib contents tests
|
// Klib contents tests
|
||||||
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
|
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
|
||||||
testClass<AbstractNativeKlibContentsTest>(
|
testClass<AbstractNativeKlibContentsTest>(
|
||||||
suiteTestClassName = "NativeK1LibContentsTestGenerated"
|
suiteTestClassName = "NativeK1LibContentsTestGenerated",
|
||||||
|
annotations = listOf(k1libContents())
|
||||||
) {
|
) {
|
||||||
model("klibContents", pattern = "^([^_](.+)).kt$", recursive = true)
|
model("klibContents", pattern = "^([^_](.+)).kt$", recursive = true)
|
||||||
}
|
}
|
||||||
@@ -111,7 +112,7 @@ fun main() {
|
|||||||
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
|
testGroup("native/native.tests/tests-gen", "native/native.tests/testData") {
|
||||||
testClass<AbstractNativeKlibContentsTest>(
|
testClass<AbstractNativeKlibContentsTest>(
|
||||||
suiteTestClassName = "NativeK2LibContentsTestGenerated",
|
suiteTestClassName = "NativeK2LibContentsTestGenerated",
|
||||||
annotations = listOf(provider<K2Pipeline>())
|
annotations = listOf(k2libContents(), provider<K2Pipeline>())
|
||||||
) {
|
) {
|
||||||
model("klibContents", pattern = "^([^_](.+)).kt$", recursive = true)
|
model("klibContents", pattern = "^([^_](.+)).kt$", recursive = true)
|
||||||
}
|
}
|
||||||
@@ -141,3 +142,5 @@ private fun codegen() = annotation(Tag::class.java, "codegen")
|
|||||||
private fun codegenK2() = annotation(Tag::class.java, "codegenK2")
|
private fun codegenK2() = annotation(Tag::class.java, "codegenK2")
|
||||||
private fun debugger() = annotation(Tag::class.java, "debugger")
|
private fun debugger() = annotation(Tag::class.java, "debugger")
|
||||||
private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
|
private fun infrastructure() = annotation(Tag::class.java, "infrastructure")
|
||||||
|
private fun k1libContents() = annotation(Tag::class.java, "k1libContents")
|
||||||
|
private fun k2libContents() = annotation(Tag::class.java, "k2libContents")
|
||||||
|
|||||||
Reference in New Issue
Block a user