Dmitriy Dolovov
8d2e999776
HMPP: Parameterize NativePlatform with KonanTarget
2020-04-14 21:06:48 +07:00
Mikhail Bogdanov
dec93c8b49
Add ANDROID target
2020-04-14 13:53:22 +02:00
Mikhail Bogdanov
115cf4666e
Get rid of CodegenTestCase from CodegenTestsOnAndroidGenerator superclass
2020-04-14 13:53:22 +02:00
Nikolay Krasko
dbbb81c78d
201: Minor: remove author to fix conformance test
2020-04-13 19:50:59 +03:00
Mikhail Glukhikh
5c758af0a6
[FIR] Use ScopeSession from resolve transformer in FIR2IR
2020-04-09 15:22:55 +03:00
Ilya Gorbunov
fcada0a5e3
Make use of contracts of time measurement functions
2020-04-03 19:36:36 +03:00
Dmitriy Novozhilov
bb8d743741
[FIR-TEST] Throw RuntimeException instead of AssertionError in FirResolveBench
...
This is needed for better usability of testing of changes which
brake testdata and introduce new exceptions from compiler at same time
2020-04-03 10:08:23 +03:00
Nikolay Krasko
b199403c57
201: Revert adding RUN_SLOW_ASSERTIONS enabling in KtUsefulTestCase
2020-04-01 18:03:41 +03:00
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
6c9dd8bb22
[FIR] Reorganize modules of raw fir builders
2020-03-25 18:07:27 +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