Mikhail Glukhikh
8ac576614f
Revert "Temporary: mute PRE_RELEASE_CLASS in some tests (KT-66551)"
...
This reverts commit 893e5cac
2024-03-15 11:33:10 +00:00
Mikhail Glukhikh
893e5cac94
Temporary: mute PRE_RELEASE_CLASS in some tests (KT-66551)
2024-03-13 20:38:44 +00:00
Mikhail Glukhikh
f9c7a88175
Add -Xuse-fir-lt=false to some scripting tests
...
make them compatible with K2
2023-08-25 08:57:53 +00:00
Alexander Udalov
bb4bb58453
Remove tests on -Xuse-ir compiler flag
...
This flag is going to be removed because old backend is not supported
anymore, therefore there's no need to test it.
2023-05-30 14:46:09 +00:00
Alexander Udalov
2a80e70860
Install jansi only when colors are enabled, add test
...
Also minor cleanup. Remove the comment about the issue jansi#35 because
although the issue is fixed, the behavior is correct right now: we
enable colors by default iff stderr is a TTY (and the platform is not
Windows), and to determine that we need to call `CLibrary.isatty`.
#KT-55784
2023-01-17 16:59:51 +01:00
Ilya Chernikov
855059b93c
Scripting: update scripts in source roots handling
...
#KT-52525 fixed
related to #KT-52735
2022-06-16 21:28:06 +00:00
Mikhael Bogdanov
d8f839a7e4
Properly process separate process inputStream/outputStream
2021-07-21 13:19:31 +00:00
Alexander Udalov
c898805ac5
CLI: improve path relativization for compiler messages
...
On Windows, the absolute file for the root of the drive is `"C:\"`,
which differs from the absolute file for any other directory, which
doesn't end with `\`. This resulted in incorrect trimming of the first
character of the path name in `descendantRelativeTo`.
Also, do not use canonicalPath because there is no point in expanding
symbolic links here.
#KT-40979 Fixed
2021-05-11 18:44:14 +03:00
Alexander Udalov
f63dac26e6
Minor, extract ProgramWithDependencyOnCompiler for tests
...
Also use ProcessBuilder instead of GeneralCommandLine for simplicity.
2021-05-11 18:44:12 +03:00
scaventz
329be4f906
Add a test to for the situation where pathname of destination does not name a parent.
2021-03-16 18:44:12 +01:00
Alexander Udalov
a3a745e7a5
Fix ParallelBuildTest for Windows
...
Enclose file paths in raw strings. Otherwise in the string
"C:\Users\...", "\U" was detected as an illegal escape which led to an
error.
2021-03-10 14:25:06 +01:00
Alexander Udalov
027df41740
Add test which runs Kotlin compiler in parallel
...
This will be useful in diagnosing issues like KT-45007 in the future.
#KT-45007
2021-03-05 17:58:42 +01:00
scaventz
28452fc38e
Kotlinc: catch FileNotFoundException caused by problematic destination.
2021-03-04 11:25:35 -08:00
scaventz
bd205317aa
CLI: improve behavior of -include-runtime
...
1.fix KT-17344: Include kotlin-reflect to resulting jar if "-include-runtime" is specified, unless the -no-reflect option is specified.
2.fix KT-43220: -include-runtime should add .kotlin_builtins to the output
2021-02-02 12:49:23 -08:00
Dmitriy Novozhilov
c8f3a4802e
[TEST] Introduce test-infrastructure-utils module and extract common test utilities here
2020-12-16 19:52:22 +03:00
Dmitriy Novozhilov
1ee38286a8
[TEST] Move generated compiler tests to test-gen directory
2020-11-27 12:55:45 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Kristoffer Andersen
5b62c9e54d
[WIP] Add Compiler Smoke Tests for (suspend) main methods
...
This commit ports the (parameterless) main integration tests in
`CompilerSmokeTest` to the IR backend. It also includes a simple
suspend main test.
The advanced ones (like `helloAppSuspendParameterlessMain`) are
currently blocked by pending changes to capturing suspend lambdas,
which are underway.
2020-02-21 12:00:50 +01:00
Alexander Udalov
8a4510c21b
Regenerate tests
2020-01-02 10:31:00 +01:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Ilya Gorbunov
8ed2facc8c
Remove integration test involving kotlin-stdlib-jre7/8
2019-02-18 18:45:20 +03:00
Mikhael Bogdanov
cf47bc0130
Update copyright in generated compiler tests
2019-01-02 12:37:06 +01:00
Alexander Udalov
d28c6559b8
Fix support of directories as sources in build files (-Xbuild-file)
...
#KT-27775 Fixed
2018-10-29 11:36:29 +01:00
Mikhail Glukhikh
cb92009862
Fix maven build + ~50 compiler tests broken by UNUSED_PARAMETER in main
2018-10-26 19:51:20 +03:00
Denis Zharkov
fc3c4ad883
Support parameterless and suspend main functions in multifile classes
...
#KT-26574 Fixed
2018-09-12 09:49:25 +03:00
Denis Zharkov
bc722f9c5f
Support main entry-point without arguments in JVM
...
#KT-26574 In Progress
2018-09-12 09:48:13 +03:00
Denis Zharkov
c3f6ba3302
Support suspend fun main in JVM
...
#KT-17679 Fixed
2018-09-12 09:48:13 +03:00
Ilya Gorbunov
38d8451d1c
Remove unused and unnecessary classpath entries in compiler tests
...
Also remove obsolete additional path arguments for runIde task.
2018-08-30 14:58:01 +03:00
Zalim Bashorov
ab03ab84bb
Regenerate tests
2018-04-19 13:17:27 +03:00
Zalim Bashorov
9970dd051f
Fix copyright's start year in generated tests
2018-03-14 15:04:58 +03:00
Ilya Chernikov
9766508512
Drop drop lib folder and all (arguably obsolete) dependent usages
2018-01-30 17:06:09 +03:00
Dmitry Jemerov
e80dae1802
Update copyright in generated tests
2018-01-10 11:55:28 +01:00
Alexander Udalov
a4f378d04d
Decrease resolution priority of declarations from kotlin-stdlib-jre7/8
...
In order to allow "overload resolution ambiguity" when both
kotlin-stdlib-jre7/8 and kotlin-stdlib-jdk7/8 are in the dependencies
2017-10-11 19:23:38 +03:00
Mikhail Zarechenskiy
0b358fb693
Fix collection literals resolve in gradle-based projects
...
#KT-19441 Fixed
2017-08-07 17:52:08 +03:00
Alexander Udalov
d1c9d0328a
Report error if <withKotlin> is run in fork mode
...
Otherwise the error message is confusing, see #KT-9292
2017-05-18 19:25:21 +03:00
Alexander Udalov
fcf44af294
Change how kotlinc and tools display their version
...
- Display the Kotlin version in kotlin-gradle-plugin. This is needed
because if "-version" is specified in compiler arguments, the "info"
level of the message printed by the compiler in CLICompiler prevents
it from being displayed by default (unless "--debug" is passed to
Gradle).
- Display the version of JRE the compiler is running on. This will be
helpful to diagnose Java 9 related issues in the future.
- In CLI, also display the executable name (kotlinc-jvm or kotlinc-js)
2017-04-28 20:49:54 +03:00
Alexander Udalov
8aba862e97
CLI: use "--" to separate free arguments from compiler options
...
#KT-9370 Fixed
2017-04-20 16:20:54 +03:00
Dmitry Jemerov
406714a1f4
Remove warning for running the compiler under Java 6/7
...
Now the compiler won't even start, so no need to check this manually.
2017-04-10 17:30:03 +02:00
Alexander Udalov
d440f07111
Use Java 7+ diamond operator in compiler modules
2017-04-03 14:51:15 +03:00
Dmitry Jemerov
af7de9a0c5
Warn when running the compiler under Java 6 or 7
...
(cherry picked from commit 5537800)
(cherry picked from commit 5614874)
2017-03-01 16:21:57 +01:00
Mikhail Zarechenskiy
6cccad9647
Update year in license and regenerate tests
2017-01-10 12:01:17 +03:00
Zalim Bashorov
1dedb38481
Regenerate tests
2016-11-09 21:41:12 +03:00
Stanislav Erokhin
9fa6fb213b
Potential fix for some random errors about "cannot choose between equals invoke functions".
2016-09-01 18:01:56 +03:00
Alexander Udalov
0d26087040
CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
...
Note that now "-no-stdlib" implies "-no-reflect".
#KT-13237 Fixed
2016-08-09 11:24:24 +03:00
Alexander Udalov
2c516f18a0
Add tests on "-language-version" usage from Ant, Maven, Gradle
2016-05-26 22:15:39 +03:00
Stanislav Erokhin
c4778bfe5a
Fixed type checking recursive problem.
...
#KT-11995 Fixed
2016-05-20 09:26:56 +03:00
Nikolay Krasko
47c7181f2a
Extract tests-common module without any actual tests
...
The main reasoning for the module is to avoid running any compiler tests while executing run configuration that searches tests across module dependencies.
2016-04-08 17:40:38 +03:00
Nikolay Krasko
9fd5568425
Uncomment and move AntTaskJsTest test to js module
2016-04-05 00:39:46 +03:00