Mads Ager
e2a1cb1077
JVM_IR: Generate fake inlining local variables for debugging.
2019-11-29 13:38:34 +01:00
Vyacheslav Gerasimov
26113b1e0f
Create target directories while copying compiler.xml for tests
2019-11-28 16:02:41 +03:00
Yan Zhulanow
60a77acd7a
Pill: Fix compiler tests (support both JPS build and Pill in JUnit 3 runner)
2019-11-28 20:02:40 +09:00
Jiaxiang Chen
e49431a12c
Debug information test: make stepping information more readable.
2019-11-26 17:59:28 +03:00
Nikolay Krasko
5d6333f0f4
193: Better services registration for parser tests
2019-11-26 15:39:27 +03:00
Jiaxiang Chen
0ea407fef9
debug information test: handle vm resume correctly.
2019-11-26 14:52:58 +03:00
Nikolay Krasko
6797fb476c
Support auto-mute from file for database with mutes
2019-11-22 22:12:37 +03:00
Vyacheslav Gerasimov
027bc671c1
Build: Remove duplicated compiler.xml from idea module
...
Workaround for JPS build by copying compiler.xml in test runner before tests
For gradle just copy it in the processResourcesTask of idea project
#KT-34528
2019-11-22 18:52:00 +03:00
Mikhail Glukhikh
1bc4642fc9
Run CompileKotlinAgainstJava tests in both APT / non-APT modes
2019-11-21 14:25:16 +03:00
Mikhail Glukhikh
338b4e2eab
Refactor AbstractCompileKotlinAgainstJavaTest
2019-11-21 10:10:58 +03:00
Mikhail Glukhikh
32aba31819
Cleanup: AbstractCompileKotlinAgainstJavaTest
2019-11-21 10:10:53 +03:00
Alexander Udalov
608449f41d
IR: introduce StubGeneratorExtensions for ExternalDependenciesGenerator
...
This is a refactoring to simplify the API of
ExternalDependenciesGenerator and to constrain future additions of
platform-specific stub generator extensions.
2019-11-20 15:16:57 +01:00
Mikhail Glukhikh
2ab3769998
Generation test utils: extract compileFilesUsing standard mode / FIR
2019-11-19 11:00:09 +03:00
Mark Punzalan
fc9ccafb84
[FIR] Generate and enable blackbox codegen tests.
2019-11-19 11:00:06 +03:00
Alexander Udalov
57a674e9e6
Make fast class files reading mode default in compiler tests
...
This makes sense because this mode is the default in the production
compiler. Forgetting to enable it where necessary led to different
bizarre test failures, see for example changes around 3fee84b966 and
KT-34826
2019-11-11 15:40:49 +01:00
Alexander Udalov
de54e549af
Refactor CHECK_BYTECODE_LISTING directive for JVM IR tests
...
Create a separate _ir.txt bytecode listing file for JVM IR, to avoid
duplicate tests and to fix "Codegent tests on different JDKs"
configuration where this test is muted but passes because only execution
is checked there, not bytecode listing.
2019-11-11 12:10:31 +01:00
Alexander Udalov
ce09be3f59
Add TargetBackend.isIR, simplify JVM IR test configuration
2019-11-11 12:10:29 +01:00
Georgy Bronnikov
688a2185fa
Tests for Kapt3 with JVM_IR backend
2019-11-07 13:28:09 +03:00
Leonid Startsev
3b100e57f2
Change NO_EXPLICIT_VISIBILITY_IN_API_MODE diagnostic range to 'declaration modifiers + name'.
...
Motivation: missing visibility modifier is an error in visibility modifiers list, so we should highlight this list.
Including a name in the range is convenient for using alt+enter (you don't have to move cursor from name to fun/class/val keyword)
Also change NO_EXPLICIT_RETURN_TYPE_IN_API_MODE diagnostic range to 'declaration name' to match corresponding IDE inspection.
Fix stylistic problems and typos after review
2019-11-06 19:54:00 +03:00
Leonid Startsev
5ab262c977
Skip explicit API inspection for data class properties and add inspection for public API in interfaces
...
Add tests for almost all the cases
2019-11-06 19:54:00 +03:00
Nikolay Krasko
5d19b2c3c4
Allow to mute tests with spaces in names
2019-11-05 20:13:30 +03:00
Dmitriy Novozhilov
297d07f465
[FIR] Refactor fir resolve tests
...
Now there is only base test runner for all kinds of diagnostics test
(`AbstractFirBaseDiagnosticsTest`)
2019-11-05 15:22:22 +03:00
Steven Schäfer
733c7579aa
Normalize names of temporary variables in IrTextTests
2019-11-05 14:58:47 +03:00
Dmitry Petrov
edaa42ea46
IR: IrField.isFakeOverride
2019-11-01 14:55:10 +03:00
Dmitry Petrov
82c527c2cc
IR: IrProperty.isFakeOverride
2019-11-01 14:55:10 +03:00
Dmitry Petrov
65e6a84831
IR tests: check IrSimpleFunction.isFakeOverride
2019-11-01 14:55:09 +03:00
Mikhael Bogdanov
8e2943ae2a
Temporary increase timeout to avoid NPE
2019-10-31 13:15:51 +01:00
Nikolay Krasko
4ef063c656
Log information about failed test
2019-10-31 11:11:49 +03:00
Jiaxiang Chen
6454cfad87
add local variable test. This test runs box() method and checks local variable types and names avaiable at every step.
2019-10-30 14:13:12 +03:00
Jiaxiang Chen
6b73ef4b0b
refactor stepping test to extract common logic for other debug information test
2019-10-30 14:13:12 +03:00
Vladimir Dolzhenko
26255f8501
Added AllowNullableArrayArgsInMain (1.4+) language setting
2019-10-29 19:20:35 +01:00
Nikolay Krasko
8d50aea471
Allow to use mutations from several files
2019-10-29 13:45:04 +03:00
Nikolay Krasko
01d3b8d9c4
Store mute tests database in the code instead of build server
2019-10-28 14:06:06 +03:00
Nikolay Krasko
6d5dc6ea9a
Allow to auto-generate files for asserting failures
2019-10-23 12:49:48 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Nikolay Krasko
b885b848f4
Allow to mute test working with directories
2019-10-23 12:49:47 +03:00
Nikolay Krasko
f3e5b8c67f
Allow to setup additional extension for mute with annotation
2019-10-23 12:49:47 +03:00
Nikolay Krasko
98ac2af402
Use TargetBackend.ANY as default parameter and migrate to more generic runTest method
2019-10-23 12:49:47 +03:00
Nikolay Krasko
3891f9fcaa
Refactoring: extract tests files utilities to separate class
2019-10-23 12:49:47 +03:00
Nikolay Krasko
2c0ce40f75
Refactoring: extract test dummy traces
2019-10-23 12:49:47 +03:00
Nikolay Krasko
fda2022214
Refactoring: extract mutation with file logic to separate file
2019-10-23 12:49:47 +03:00
Nikolay Krasko
a9c84299c6
Allow to auto-mute tests with file
2019-10-23 12:49:46 +03:00
Nikolay Krasko
e4436c80c4
Refactoring: extract mute with file to the separate method
2019-10-23 12:49:38 +03:00
Vitaliy.Tikhonov
cf5a1615ea
[IR] add JsTextTest for IrScript
2019-10-10 12:52:05 +03:00
Yan Zhulanow
472ec72eb9
Refactor debugger tests
...
1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
2019-10-08 19:13:56 +09:00
Mads Ager
3b2843fe7a
Introduce local variable type checker.
...
CheckLocalVariablesTableTests will now check the validity of
the locals table against types of locals computed based on the
bytecode.
These checks and the new destructuringInFor test act as a
regression test for the changes in
https://github.com/JetBrains/kotlin/pull/2613
These checks also caught a similar issue for destructuring
lambda parameters, where the local is introduced before the
value has been written to the local slot. This change also
fixes that.
Finally, this change fixes the asmLike tests to correctly
look up the name of parameters in the locals table.
2019-10-07 15:06:44 +02:00
Jiaxiang Chen
2c78f1fe85
debug information test: instantiate a single thread for all tests under same test class
2019-10-05 10:41:11 +02:00
Jiaxiang Chen
0a2812f83b
Add a JVM backend debug information test, this commit is for verifying
...
line numbers for stepping.
Running JVM instance and read stepping events from it to verify with the
test data.
2019-10-05 10:41:11 +02:00
Mikhail Glukhikh
e8cf0b5d4f
Add test for kotlin.streams function usage in Kotlin code
...
NB: does not pass in javac mode due to lack of JvmPackageName support
2019-10-03 11:16:24 +03:00
Dmitry Petrov
107ab06042
Minor: make diagnostic tests usable with IDEA & JPS
2019-10-02 17:14:48 +04:00