[Test] Extract CLI tests for plugins into separate directory

This commit is contained in:
Dmitriy Novozhilov
2022-06-30 11:50:45 +03:00
committed by teamcity
parent 0d1e802db1
commit 8919703448
11 changed files with 33 additions and 19 deletions
@@ -0,0 +1,6 @@
-d
$TEMP_DIR$
-Xplugin=dist/kotlinc/lib/allopen-compiler-plugin.jar
-P
plugin\:org.jetbrains.kotlin.allopen\:annotation=foo.AllOpen
$TESTDATA_DIR$/firAllOpenPlugin.kt
+14
View File
@@ -0,0 +1,14 @@
package foo
annotation class AllOpen
@AllOpen
class Base {
fun method() {}
val property = "hello"
}
class Derived : Base() {
override fun method() {}
override val property = "world"
}
@@ -0,0 +1 @@
OK
+9
View File
@@ -0,0 +1,9 @@
-d
$TEMP_DIR$
-Xplugin=dist/kotlinc/lib/android-extensions-compiler.jar
-P
plugin\:org.jetbrains.kotlin.android\:package=com.myapp
-P
plugin\:org.jetbrains.kotlin.android\:variant=main;$TESTDATA_DIR$/../androidPlugin/res
$TESTDATA_DIR$/pluginSimple.kt
$TESTDATA_DIR$/../androidPlugin
+8
View File
@@ -0,0 +1,8 @@
import android.view.*
import android.app.*
import android.widget.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity : Activity() {
init { textView.setText("Some text") }
}
+1
View File
@@ -0,0 +1 @@
OK
@@ -0,0 +1,10 @@
-d
$TEMP_DIR$
-Xplugin=dist/kotlinc/lib/android-extensions-compiler.jar
-P
plugin\:org.jetbrains.kotlin.android\:package=com.myapp
-P
plugin\:org.jetbrains.kotlin.android\:variant=main;$TESTDATA_DIR$/../androidPlugin/res
$TESTDATA_DIR$/pluginSimple.kt
$TESTDATA_DIR$/../androidPlugin
-Xuse-k2
@@ -0,0 +1,8 @@
import android.view.*
import android.app.*
import android.widget.*
import kotlinx.android.synthetic.main.layout.*
class MyActivity : Activity() {
init { textView.setText("Some text") }
}
@@ -0,0 +1,7 @@
warning: ATTENTION!
This build uses experimental K2 compiler:
-Xuse-k2
error: there are some plugins incompatible with K2 compiler:
org.jetbrains.kotlin.android.synthetic.AndroidComponentRegistrar
Please remove -Xuse-k2
COMPILATION_ERROR