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
Alexander Udalov
19feacb96b
Minor, expand TESTDATA_DIR with absolute path in CLI tests
...
To be able to use it correctly inside an xml build file where, if the
path is not absolute, it's treated as relative to the build file path
(which is TMP_DIR in several tests of the subsequent commit)
2018-08-07 13:38:30 +02:00
Alexander Udalov
5da8ce844a
Minor, move ContentRoot and KotlinSourceRoot to module 'cli'
...
Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
2018-08-07 13:38:30 +02:00
Alexander Udalov
14b8f4b52b
Minor, change package of outputUtils.kt
2018-08-07 13:38:30 +02:00
Mikhail Zarechenskiy
659289b41a
Report diagnostics about experimentality on unsigned literals
...
#KT-25580 Fixed
2018-08-06 17:45:22 +03:00
Alexander Udalov
6f9441d3f4
Do not output empty non-root packages in tests with txt
...
Mostly to avoid listing every internal package in
kotlin-stdlib/kotlin-reflect, as in
https://github.com/JetBrains/kotlin/blob/acd5b62148d797ffd24c4811d1d663f0c1ae7885/compiler/testData/diagnostics/testsWithUnsignedTypes/conversions/conversionOfSignedToUnsigned.txt#L144
2018-08-06 13:43:32 +02:00
Vyacheslav Gerasimov
ebb90f8260
183: Build against 183-SNAPSHOT
2018-08-03 21:29:19 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Ilmir Usmanov
0c867b4804
Disable callable references to suspend functions in 1.2
...
#KT-25604: Fixed
2018-08-02 18:55:49 +03:00
Vyacheslav Gerasimov
0103c0d2fd
Switch to 182 platform
2018-08-02 18:17:06 +03:00
Mikhael Bogdanov
7a98f5c5f7
Add 'boxAgainstJava' tests to ir test suite
2018-08-02 13:19:26 +02:00
Mikhael Bogdanov
261a00eec7
Remove IrCompileKotlinAgainstInlineKotlinTestGenerated tests
2018-08-02 13:19:26 +02:00
Mikhael Bogdanov
b22352a60d
Get rid of 'externalPackageFragments' and 'dependencyModules' in IrModuleFragment
2018-08-01 12:29:29 +02:00