Alexander Udalov
b1e82c78da
Minor, remove obsolete KtMockFileTypeManager.java.183
...
This is a continuation of 4f0c31ef
2018-10-18 11:58:30 +02:00
Dmitry Petrov
ad9953724f
Basic infrastructure for psi2ir tests with JS front-end
2018-10-18 10:59:24 +03:00
Alexander Udalov
e3a332c393
Configure Java module path when compiler is invoked in -Xbuild-file mode
...
#KT-27626 Fixed
2018-10-17 18:39:50 +02:00
Alexander Udalov
f868964e25
Fix most unchecked/deprecation javac warnings in compiler modules
2018-10-17 18:39:49 +02:00
Alexander Udalov
4f0c31eff3
Remove unneeded copied mock test framework classes
...
These classes were copied when tests-common were compiled with JDK 6, to
prevent dependencies on classes compiled with JDK 8
2018-10-17 18:39:49 +02:00
Alexander Udalov
23c210e9f2
Use JvmWildcard on return type of getContributedVariables/getContributedFunctions
2018-10-17 18:39:49 +02:00
Zalim Bashorov
180215f3f8
Don't unmute passed tests by default
2018-10-17 18:29:40 +03:00
Nikolay Krasko
e3d930a6a1
Build maven-like stdlib sources artifacts during dist
...
This is needed to emulate gradle and maven like projects in plugin tests.
2018-10-12 18:50:04 +03:00
Alexander Udalov
009f18f1f4
Split AnalysisFlag values to AnalysisFlags and JvmAnalysisFlags
...
Declare AnalysisFlags in module 'frontend', and JvmAnalysisFlags in
module 'frontend.java', to avoid leaking Java-related logic to common
compiler code
2018-10-01 13:31:00 +02:00
Dmitry Petrov
ec8bdff5c7
Working infrastructure for external dependencies testing
...
(not really, but at least something)
2018-09-21 09:50:21 +03:00
Yan Zhulanow
b38e9b6b05
Make all intellij-core dependencies non-transitive
2018-09-17 20:08:27 +03:00
Anton Bannykh
082c44cb5c
JS: add a flag for more convenient investigation of failing IR tests
2018-09-14 20:34:34 +03:00
Ilya Gorbunov
a18770fbbb
Remove projectDist dependency helper usages
...
Use default configuration dependencies instead of projectDist ones.
2018-09-12 06:05:05 +03:00
Ilya Gorbunov
c4e794b21f
Add nullability annotations jar to debugger test application compile classpath
2018-09-12 00:58:55 +03:00
Yan Zhulanow
6f7741b6bb
Minor: Move AbstractParcelBytecodeListingTest to compiler tests, change its format a bit
2018-09-11 16:40:43 +03:00
Mikhail Zarechenskiy
169599abcc
Add flag to allow using kotlin.Result as a return type
...
#KT-26659 Fixed
2018-09-11 10:39:11 +03:00
Alexander Udalov
c4be039cd1
Support argfiles in CLI with "@argfile"
...
#KT-24613 Fixed
2018-09-10 14:12:32 +03:00
Roman Elizarov
e2713501ce
Rename SuccessOrFailure to Result and hide Failure from ABI
...
* The members of Result are isSuccess, isFailure, exceptionOrNull, getOrNull
* The rest of API is implemented via inline-only extensions
* There are two internal functions to hide detailed mechanics of an internal
Result.Failure class: createFailure and throwOnFailure
* Result.toString is explicit: either Success(v) or Failure(x)
See KT-26538
2018-09-09 11:34:31 +03:00
Zalim Bashorov
69ee88871f
Don't print stack trace for ignored tests by default
2018-09-08 13:37:30 +03:00
Alexander Udalov
87c0d56618
Drop Annotations.getAllAnnotations
2018-09-06 19:13:14 +03:00
Alexander Udalov
5f18439442
Use correct module name when calling internal members from other module
...
This is needed to avoid using the same module name for test root as for
the main source root in the Gradle plugin, which is needed to fix
KT-18955
2018-08-31 13:42:57 +02:00
Denis Zharkov
3bdfd811e8
Add some new String methods in JDK 11 to built-ins mapping blacklist
...
These three methods are conflicting with existing extensions,
thus the behavior might be changed when switching to JDK 11
Probably, it's worth revisiting our strategy here,
e.g. by blacklisting all new methods in
#KT-24974 Fixed
2018-08-31 10:33:09 +03:00
Ilya Gorbunov
e59141e32c
Replace kotlin-stdlib-jreN usages in tests and samples
2018-08-30 14:57:56 +03:00
Ilya Gorbunov
c667340261
Allow pre-release compiler reading pre-release binaries in tests
...
Pre-release compiler should be able to read pre-release binaries in tests
even if a stable language version is used, otherwise no stdlib API can be read.
2018-08-30 14:50:27 +03:00
Denis Vnukov
ddf92ef187
Creating IrLineNumberTestGenerated, adding line numbers for few common expressions
...
This PR enables LineNumberTestGenerated test on IR backend. The testing of
hardcoded sequence of line numbers is replaced with mere checks for set-like
checks for expected line numbers.
2018-08-29 12:52:20 +02:00
Alexander Udalov
4219aff548
Refactor DescriptorRenderer's renderAccessors option
...
In some tests with txt (probably all except loadJava), property
accessors are not rendered at all, so a third option value (NONE) will
be useful to determine whether we need to render annotations on property
accessors as get/set/sparam-targeted annotations on the property
2018-08-27 23:37:06 +02:00
Mikhael Bogdanov
7e7b556018
Minor. Reformat
2018-08-27 15:17:26 +02:00
Mikhael Bogdanov
7843d4e0d4
Minor. Code clean
2018-08-27 15:17:26 +02:00
Mikhael Bogdanov
efd93670f8
Migrate AbstractWriteSignatureTest.kt to CodegenTestCase stuff
2018-08-27 15:17:25 +02:00
Mikhael Bogdanov
f21dd9f801
Minor. Review fixes
2018-08-24 20:22:33 +02:00
Mikhael Bogdanov
367ab5470c
Minor. Code clean
2018-08-24 20:22:32 +02:00
Mikhael Bogdanov
4687381179
Convert AbstractLineNumberTest.java to Kotlin
2018-08-24 20:17:25 +02:00
Mikhael Bogdanov
c28b9f75e3
Rename .java to .kt
2018-08-24 20:17:24 +02:00
Mikhael Bogdanov
de02e97f39
Print generated bytecode on AbstractCheckLocalVariablesTableTest fail
2018-08-24 20:17:23 +02:00
Mikhael Bogdanov
9a1b2daa12
Minor. Code clean
2018-08-24 20:17:21 +02:00
Mikhael Bogdanov
f06b6ed47e
Convert AbstractCheckLocalVariablesTableTest.java to Kotlin
2018-08-24 20:17:20 +02:00
Mikhael Bogdanov
614fad016f
Rename .java to .kt
2018-08-24 20:17:19 +02:00
Mikhael Bogdanov
232170b72a
Migrate AbstractIrCheckLocalVariablesTableTest to CodegenTestCase stuff
2018-08-24 20:17:18 +02:00
Mikhael Bogdanov
25b32b8e1d
Migrate AbstractLineNumberTest to CodegenTestCase stuff
2018-08-24 13:39:22 +02:00
Dmitry Petrov
34548a0667
Fix primitive override with inline class in Kotlin-Java inheritance
2018-08-23 13:07:07 +03:00
Alexander Udalov
3442c7385f
Fix compilation in KotlinTestUtils for IDEA 173
2018-08-21 14:05:07 +02:00
Alexander Udalov
97c0f1712a
Fix compilation in KotlinTestUtils for AS 3.1 & 3.2
2018-08-21 14:03:28 +02:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Denis Zharkov
944b0d058a
Allow calling some pieces of the experimental coroutine API
...
- Calling suspend functions is allowed
- Presence of suspend function type still makes declaration
unusable unless it belongs to a value parameter as a top-level type
containing less then three parameters
Still, warning should be emitted because they will become unsupported in 1.4
#KT-25683 In Progress
2018-08-21 13:44:02 +03:00
victor.petukhov
0a58898817
Add diagnostic spec tests generator and validator, helper functions and classes
2018-08-14 17:33:54 +03:00
Mikhail Zarechenskiy
0fff8ebf71
Fix SOE after enabling SAM conversions
2018-08-10 17:24:19 +03:00
Denis Vnukov
65c79ecfe9
Primitive support for LocalVariables for function parameters
2018-08-09 16:13:21 +03:00
Alexander Udalov
5dadddaecd
Fix version-specific bunch files for KotlinTestUtils
...
After 5da8ce844a
2018-08-08 12:11:58 +02:00
Dmitry Savvinov
2b8ca60c05
Add SKIP_JAVAC in tests where behaviour has diverged with IDEA resolve
...
See a71f09022c
2018-08-08 12:12:15 +03:00
Alexander Udalov
fe829add44
Minor, use TEMP_DIR/TESTDATA_DIR in CLI tests on xml build files
...
Otherwise the "outputDir" in these tests was treated as relative to the
project root, and starting from 63b4302cea , running these tests resulted
in the "whatever" directory being created in the project root
2018-08-07 13:38:30 +02:00