Dmitriy Novozhilov
b43fa94cb6
[TEST] Migrate AbstractDiagnosticsWithUnsignedTypes to new test runners
2020-12-16 19:52:26 +03:00
Dmitriy Novozhilov
23e704f361
[TEST] Migrate AbstractDiagnosticsWithExplicitApi to new test runners
2020-12-16 19:52:26 +03:00
Dmitriy Novozhilov
c0e4452cf8
[TEST] Migrate AbstractDiagnosticsWithJdk9Test to new test runners
2020-12-16 19:52:25 +03:00
Dmitriy Novozhilov
61302a2e08
[TEST] Migrate duplicating javac tests to new test runners
...
Also minimize scope of DiagnosticUsingJavac tests to
`compiler/testData/diagnostics/tests/javac`. This is fine since
javac compilation mode is still not finished and no one not going to
support it
2020-12-16 19:52:25 +03:00
Dmitriy Novozhilov
b44dc55109
[TD] Mute some javac tests or update their testdata
...
There was a refactoring of AbstractDiagnosticsTest in 9052ef06 which
contains bug that `setupEnvironment` for AbstractDiagnosticsTestUsingJavac
was not called, so for last year tests `UsingJavac` had no difference
with usual diagnostics tests which causes some contradictions in test data
2020-12-16 19:52:25 +03:00
Dmitriy Novozhilov
8ddf419be5
[Build] Fix gradle tests filter for JUnit 5
...
There is an a optimization in our `projectTest` config which filters
out some compiled test classes if they didn't contain specified test
(if user ran :test task with --tests flag). This optimization for one
tests left only one .class file which contains test. But JUnit 5 for
tests in inner classes (with @Nested annotation) requires not only
target class, but and all it's containers
Test: package.SomeTest$Nested.testMethod
JUnit4: package/SomeTest$Nested.class
JUnit5:
- package/SomeTest.class
- package/SomeTest$Nested.class
2020-12-16 19:52:25 +03:00
Dmitriy Novozhilov
e6b5cb5216
[TD] Update diagnostics test data due to new test runners
...
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
2020-12-16 19:52:25 +03:00
Dmitriy Novozhilov
1d04fecd29
[TD] Remove some outdated tests with unsupported EXPLICIT_FLEXIBLE directive
2020-12-16 19:52:24 +03:00
Dmitriy Novozhilov
0b0e2c3ad2
[TD] Create real helpers files for coroutines checkers
2020-12-16 19:52:24 +03:00
Dmitriy Novozhilov
710c5ec8cc
[TEST] Drop old generated tests which are duplicated by new ones
2020-12-16 19:52:24 +03:00
Dmitriy Novozhilov
6128d5e7f2
[TEST] Generate new tests using new runners and old testdata
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
d7224ad63e
[Build] Add generating and running new compiler tests to gradle
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
3bd3545a05
[TEST] Add abstract test runners for some of compiler test in new infrastructure
...
This commit includes runners for FE 1.0 and FIR diagnostics tests and
JVM black box tests for old backend
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
32fda13ef9
[TEST] Implement test generators for junit 5 based tests
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
cb5183ab4d
[TEST] Add implementation of new infrastructure services for compiler tests
...
All of new classes lays in lays in :compiler:tests-common-new module
which includes classes for FE 1.0 and FIR diagnostics tests and
JVM black boxtests
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
dd402b16d9
[TEST] Add core of new tests infrastructure
...
It contains different abstractions which represents parts of compiler
pipeline and artifacts produced by them, service structure, handlers
for analysis of artifacts
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
35437e6da9
[FE] Allow explicitly specify dependent modules fin TopDownAnalyzerFacade
2020-12-16 19:52:22 +03: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
1c91b74ff0
[CMI] Fix clearing code meta infos from original text
2020-12-16 19:52:22 +03:00
Dmitriy Novozhilov
7960182674
[CMI] Fix CodeMetaInfoParser to properly handle nested meta infos
...
There was a problem with cases like that:
<!FOO!><!BAR!>some text<!><!>
^ ^
1 2
(1) is a closing tag for <!FOO!> and (2) is for <!BAR!>, but before the
fix they were matched contrariwise
2020-12-16 19:52:22 +03:00
Dmitriy Novozhilov
c558df5b4a
[CMI] Fix rendering metainfos at the end of file
2020-12-16 19:52:22 +03:00
Dmitriy Novozhilov
ceb44ddccd
[CMI] Improve CodeMetaInfoRenderer
...
1. Properly handle meta which start == end
2. Sort metainfos of one range by tag
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
98a2f29f95
[CMI] Allow using right angle bracket symbol in MetaInfo message
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
09df07349c
[CMI] Add ability to replace render configuration of DiagnosticCodeMetaInfo
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
d6ff83c7d8
[CMI] Add ability to copy ParsedCodeMetaInfo
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
3bf60b3acc
[CMI] Rename CodeMetaInfo.platforms to attributes
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
ced9a6fe35
[CMI] Replace getTag with tag property in CodeMetaInfo
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
9e31b049fc
[CMI] Add additional constructor for DiagnosticCodeMetaInfo
2020-12-16 19:52:21 +03:00
Dmitriy Novozhilov
87a6a66953
[CMI] Parse description of meta info and save it to ParsedCodeMetaInfo
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
2bbab3170f
[CMI] Replace StringBuffer with StringBuilder in CodeMetaInfoRenderer
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
25c011ca40
[CMI] Extract core of CodeMetaInfo to :compiler:tests-common
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
4ad9f48642
[CMI] Cleanup code of CodeMetaInfo
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
23c088afd6
[TEST-GEN] Reorganize package structure in :generators:test-generator module
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
380e8a3814
[TEST-GEN] Extract run of TestGenerator to top of test generation DSL
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
2a73aaba4d
[TEST-GEN] Move all generation data to TestGroup.TestClass
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
c51ea6b142
[TEST-GEN] Create abstract TestGenerator and move current generator logic to TestGeneratorImpl
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
d45fb4dfd8
[TEST-GEN] Extract logic of generating test methods into separate abstraction MethodGenerator
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
2acbe96f15
[TEST-GEN] Convert Test Generation DSL classes from java to kotlin
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
31bccb4fb0
[TEST-GEN] Rename .java to .kt
2020-12-16 19:52:18 +03:00
Dmitriy Novozhilov
580d2ed693
[TEST-GEN] Add some comments to TestGenerationDSL
2020-12-16 19:52:18 +03:00
Mikhail Glukhikh
0e43eaa662
Don't call possibleGetterNamesByPropertyName without a reason
2020-12-16 19:50:13 +03:00
Dmitriy Novozhilov
44948aa9a2
[FE] Properly report diagnostics about type arguments of implicit invoke
...
#KT-40396 Fixed
2020-12-16 17:57:58 +03:00
Dmitriy Novozhilov
329066a4f3
[Parser] Fix parsing of unfinished dot access in string template
...
Problem appeared in cases like this: "{someVar.}"
#KT-34440 Fixed
2020-12-16 17:57:56 +03:00
Dmitry Petrov
8999fd88b1
JVM_IR KT-43401 KT-43518 fix ACC_STRICT and ACC_SYNCHRONIZED flags
2020-12-16 14:10:36 +03:00
Dmitry Petrov
7ed3860c70
JVM_IR KT-43043 fix nullability annotations for inline class members
2020-12-16 13:43:29 +03:00
Andrei Klunnyi
2b3fc330ad
KTIJ-664 [SealedClassInheritorsProvider]: test fixes
2020-12-16 11:35:27 +01:00
Igor Yakovlev
c2bf124d86
[FIR IDE] File symbol scope and symbol test
2020-12-16 12:29:54 +03:00
Igor Yakovlev
2f4842b271
[FIR IDE] Add KtFileScope to support KtFileSymbol
2020-12-16 12:29:54 +03:00
Igor Yakovlev
2fa5ab6e31
[FIR IDE] LC Remove difficult caching from FirLightClassBase
2020-12-16 12:29:54 +03:00
Igor Yakovlev
f282b721bc
[FIR IDE] LC Fix test data
2020-12-16 12:29:53 +03:00