Commit Graph

594 Commits

Author SHA1 Message Date
Victor Petukhov 218c13efc5 [FIR] Remove links to spec sentences during comparison fir and old front-end test data 2020-03-30 11:15:55 +03:00
Victor Petukhov a29385e758 [Spec tests] Small clean-up CheckerTestUtil and around it 2020-03-30 11:15:55 +03:00
Victor Petukhov f76faaf1b0 [Spec tests] Unify platform dependent part of fixed exception 2020-03-30 11:15:53 +03:00
Dmitriy Dolovov 9bbfe9c1ac Rename: KonanPlatform, KonanPlatforms -> NativePlatform, NativePlatforms 2020-03-29 23:20:52 +07:00
Alexander Udalov 9e014e462b Do not use CommonPlatforms directly in CommonResolverForModuleFactory
This allows to get rid of dependency of this code on CommonPlatforms,
which depends on all platforms (JVM, JS, Native), and eventually move it
to 'frontend'.
2020-03-28 21:30:03 +01:00
Mikhail Glukhikh b27152f903 Replace some FIR syntax errors with more proper diagnostics 2020-03-27 16:46:59 +03:00
Mikhail Glukhikh 2f63c8a46a [FIR] Enhance diagnostic DSL to be able to use concrete factories
Before this commit, things like DiagnosticFactory0<KtDeclaration>
were effectively unusable.
2020-03-27 16:46:58 +03:00
Juan Chen aba7706dec [FIR] fix test module set up (this fixes 193 BB tests)
Added creation and initialization of the test module and its dependencies.
When looking at the emptyProgression test,
I found that getProgressionLastElement was not found,
which should be resolved from the dependencies.
2020-03-26 10:30:47 +03:00
Dmitriy Novozhilov 84ed3f5cf2 [FIR-TEST] Add validation of diagnostics for light tree tests 2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov 2c37627b15 [FIR] Add unified diagnostics for psi and light tree 2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov 1a3fef5fa1 [FIR] Switch names of FirDiagnostic and ConeDiagnostic 2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov caafe84611 [FIR-TEST] Get rid of FirDiagnosticsTestLightTreeHelper 2020-03-25 11:35:42 +03:00
simon.ogorodnik 0afbf25943 [FIR2IR] Implement JvmBackendClassResolver for boxing optimizer 2020-03-24 18:58:18 +03:00
Dmitriy Novozhilov 496489cdf4 [FIR] Introduce CheckerContext for call and declaration checkers 2020-03-19 23:11:17 +03:00
Mikhail Bogdanov 8b330193ac Minor. Throw proper exception in test framework on directive processing 2020-03-19 16:45:11 +01:00
Mikhail Bogdanov 3f87899014 Switch converter test to new directive scheme 2020-03-19 16:45:10 +01:00
Mikhail Bogdanov d793fea8d2 Use multimap for directives 2020-03-19 16:45:10 +01:00
Mikhail Bogdanov 420dd0d440 Extract directive map to separate class 2020-03-19 16:45:10 +01:00
Mikhael Bogdanov ab7e71fd68 Support per files test directives 2020-03-19 16:45:10 +01:00
Mikhael Bogdanov 34547b4e27 Minor. Remove redundant getters 2020-03-19 16:45:10 +01:00
Dmitriy Novozhilov 39372c06cf [FIR] Move all checkers and theirs infrastructure to separate module 2020-03-19 09:51:01 +03:00
Jinseong Jeon b71b0fa32c Update stepping tests to inspect source name, instead of method info. 2020-03-17 13:39:35 +01:00
Alexander Udalov 3762b5cba7 Minor, remove extraneous field CodegenTestCase.coroutinesPackage
After a795c38eb7, this field is available in the base class
KotlinBaseTest.
2020-03-12 13:51:40 +01:00
Mikhail Glukhikh 7ea4c20f3d [FIR TEST] Fix FIR_IDENTICAL adding for Fir2IrTextTestGenerated 2020-03-10 15:19:34 +03:00
Mikhail Glukhikh db38dfc21b Diagnostic test: make messages about FIR_IDENTICAL inconsistency clearer 2020-03-05 09:41:07 +03:00
Mikhail Glukhikh 737c91c5cf FIR test merging: compare diagnostic files symbol-by-symbol 2020-03-05 09:40:45 +03:00
Mikhail Glukhikh 48d30daa47 Diagnostic tests: don't create '.fir.kt' file if FIR_IDENTICAL 2020-03-05 09:40:24 +03:00
Mikhail Glukhikh 951fb0b7e7 Move loadTestDataWithoutDiagnostics to FirTestUtils 2020-03-05 09:40:02 +03:00
Mikhail Glukhikh 8884cbe415 Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed 2020-03-05 09:39:40 +03:00
Mikhael Bogdanov 1ffde2a3c4 Minor. Fix test compilation 2020-03-04 15:24:08 +01:00
Mikhael Bogdanov 32bcab2867 Switch rest of test to new scheme with configuration kind processing 2020-03-04 14:51:21 +01:00
Mikhael Bogdanov ae9a91e17d Switch 'AbstractCompilerLightClassTest' to new scheme with configuration kind 2020-03-04 14:51:19 +01:00
Mikhael Bogdanov f84ac5e3f9 Remove configuration kind from AbstractDumpDeclarationsTest tests 2020-03-04 14:51:18 +01:00
Mikhael Bogdanov 0a8454d5fc Remove FULL_JDK from AbstractForeignAnnotationsTest tests 2020-03-04 14:51:16 +01:00
Mikhael Bogdanov 59679476f6 Always create test files, directive processing would be based on them
This is required for extracted 'getTestJdkKind' in previous commits
2020-03-04 14:51:16 +01:00
Mikhael Bogdanov dbdc4d9ee0 Move 'extractConfigurationKind' to base class, use it in KotlinMultiFileTestWithJava 2020-03-04 14:51:15 +01:00
Mikhael Bogdanov 7040857d77 Convert KotlinMultiFileTestWithJava.java to Kotlin 2020-03-04 14:51:14 +01:00
Mikhael Bogdanov 06a36465a5 Rename .java to .kt 2020-03-04 14:51:13 +01:00
Mikhael Bogdanov 999b762288 Merge 'getTestJdkKind' and 'getJdkKind' and move to base class 2020-03-04 14:51:12 +01:00
Mikhael Bogdanov 6e855f3bbd Split 'analyzeAndCheck' into 'shouldSkipTest' and 'setupEnvironment' 2020-03-04 14:51:11 +01:00
Mikhael Bogdanov 9052ef06a7 Introduce configureEnvironment, avoid 'createEnvironment' calls 2020-03-04 14:51:10 +01:00
Mikhael Bogdanov a795c38eb7 Introduce base class for codegen and diagnostic tests
Extract base TestFile and TestModule classes.
 Move coroutinePackage related logic to base class
2020-03-04 14:51:10 +01:00
Georgy Bronnikov 8b559b20e2 Add a test for getOrDefault() bridge 2020-03-04 16:02:54 +03:00
Ilmir Usmanov 42420cb6fc JVM_IR: Generate inner classes for continuations
Also, generate correct visibilities for constructors and continuation's fields.
2020-03-02 14:03:33 +01:00
Nikolay Krasko c22272bbca Enable mute for KotlinCompletionTestCase 2020-02-28 11:36:34 +03:00
Nikolay Krasko 3c3b1bb5e4 Support auto-mute in parametrized JUnit 4 tests 2020-02-28 11:36:33 +03:00
Dmitry Petrov 84baa0b4c2 Check more flags in bytecode listing tests 2020-02-26 12:03:37 +03:00
Dmitriy Novozhilov 82c960d40d [FIR-TEST] Run fir test in diagnostic test if fir testdata is missing 2020-02-20 16:56:34 +03:00
Dmitriy Novozhilov 3edbf7f541 [FIR-TEST] Move abstract diagnostics tests to tests-common module 2020-02-20 16:56:34 +03:00
Nikolay Krasko 2340a86d8d Update to 201.5259.13-EAP-SNAPSHOT
- No UIUtil.removeLeakingAppleListeners anymore
- getParameterHints nullability
- versions of lz4-java and guava were changed
2020-02-18 14:13:55 +03:00