[Test] Extract CLI tests for plugins into separate directory
This commit is contained in:
committed by
teamcity
parent
0d1e802db1
commit
8919703448
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 @@
|
||||
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
|
||||
Reference in New Issue
Block a user