Tests: remove bytecode listing tests for old JVM backend

These tests are mostly used to check ABI in case you're compiling a
library or library-like code, which is no longer possible (since old JVM
backend is only used in the IDE).
This commit is contained in:
Alexander Udalov
2023-11-01 15:44:42 +01:00
committed by Space Team
parent 56936e2012
commit 1cf04916d6
8 changed files with 10 additions and 2725 deletions
@@ -43,13 +43,6 @@ open class AbstractFirLightTreeBlackBoxCodegenTestForNoArg : AbstractFirLightTre
// ---------------------------- bytecode ----------------------------
open class AbstractBytecodeListingTestForNoArg : AbstractBytecodeListingTest() {
override fun configure(builder: TestConfigurationBuilder) {
super.configure(builder)
builder.enableNoArg()
}
}
open class AbstractIrBytecodeListingTestForNoArg : AbstractIrBytecodeListingTest() {
override fun configure(builder: TestConfigurationBuilder) {
super.configure(builder)
@@ -1,81 +0,0 @@
/*
* Copyright 2010-2023 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.noarg;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("plugins/noarg/testData/bytecodeListing")
@TestDataPath("$PROJECT_ROOT")
public class BytecodeListingTestForNoArgGenerated extends AbstractBytecodeListingTestForNoArg {
@Test
public void testAllFilesPresentInBytecodeListing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/noarg/testData/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JVM, true);
}
@Test
@TestMetadata("annoOnNotClass.kt")
public void testAnnoOnNotClass() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/annoOnNotClass.kt");
}
@Test
@TestMetadata("constructorVisibility.kt")
public void testConstructorVisibility() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/constructorVisibility.kt");
}
@Test
@TestMetadata("defaultParameters.kt")
public void testDefaultParameters() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/defaultParameters.kt");
}
@Test
@TestMetadata("inherited.kt")
public void testInherited() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/inherited.kt");
}
@Test
@TestMetadata("nestedClass.kt")
public void testNestedClass() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/nestedClass.kt");
}
@Test
@TestMetadata("noNoArg.kt")
public void testNoNoArg() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/noNoArg.kt");
}
@Test
@TestMetadata("severalNoArg.kt")
public void testSeveralNoArg() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/severalNoArg.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/simple.kt");
}
@Test
@TestMetadata("superTypes.kt")
public void testSuperTypes() throws Exception {
runTest("plugins/noarg/testData/bytecodeListing/superTypes.kt");
}
}