Commit Graph

1110 Commits

Author SHA1 Message Date
Nikolay Krasko 8a6ed0dac4 Force remove JpsModel in BaseKotlinJpsBuildTestCase tests
Original commit: 6fd3ce07b3
2017-09-08 12:56:28 +03:00
Alexey Sedunov d39c78f5af Kotlin Facet: Avoid reparse of additional arguments during analysis
Original commit: 78b1fb2e93
2017-09-07 17:39:18 +03:00
Alexey Tsvetkov ed553b80e9 Add test where unused file is removed
Original commit: cb1ffdccd7
2017-08-29 04:28:10 +03:00
Alexey Tsvetkov 88798072a6 Fix typo in test name
Original commit: cf72b14b34
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov c6608a057e Make test case more useful
Original commit: 141c889a84
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov 9aef8a5588 Add JS specific build logs to inline properties IC tests
Unlike the JVM target platform, the JS back-end does
not track getters' and setters' usages separately,
so when either accessor of some property is changed,
all usages of that property will be rebuilt.

Original commit: 5f9bad5905
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov 92b567139c Refactor inline properties tests
Original commit: 73b63bb343
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov 30f808400b Mock constant search in JPS tests
Original commit: b73d5cbe1f
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov 3021bce5d1 Move JVM specific IC tests to separate dir
Original commit: 2312013c41
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov 9189d7e51f Update lookup tracker test "classifierMembers"
Before the change, the initial build has been failing,
so lookups from deserialized descriptors were not tested.

Original commit: 556c43ae00
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov b72f00260b Avoid processing JS IC output when compilation failed
Original commit: 4a591bf5b6
2017-08-29 04:28:05 +03:00
Alexey Tsvetkov 4fa346877c Rename IncrementalCacheImpl->IncrementalJvmCache
Original commit: 919daefb0e
2017-08-29 04:28:04 +03:00
Alexey Tsvetkov 32e44dfe91 Fix searching serialized classes package contains multiple fragments
Original commit: 1c4ada2008
2017-08-29 04:28:03 +03:00
Alexey Tsvetkov 602929d142 Move JVM specific IC tests with class hierarchy changes
Original commit: 0a5fe3ef7c
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov 45b383baa3 Avoid using JVM only APIs in IC tests to reuse with JS
Original commit: e16c5ddb97
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov f81f5421a9 Move multi-module IC tests to separate dir
At the moment they are used only with JPS

Original commit: 23bc907d3f
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov c55df3ffab Move JVM specific IC test data to separate dir
Original commit: 166883d847
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov dd44a567d6 Add IC compiler tests with Java
Original commit: 7810da7018
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov 3bb9a54ef3 Refactor incremental services
Original commit: 4aea9b349c
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov 2fbd8c4beb Introduce ChangesCollector
Original commit: 6fedf07f56
2017-08-29 02:24:37 +03:00
Alexey Tsvetkov b5cf0960f4 Remove Target parameter from GeneratedFile
Original commit: 9727ec401b
2017-08-29 02:24:36 +03:00
Alexey Tsvetkov eb98bab102 Minimize usage of TargetId in IC
Original commit: d1fd88fb8e
2017-08-29 02:24:36 +03:00
Mikhail Glukhikh 53911972cb Eliminate a set of warnings, mostly nullability ones
Original commit: 3623f581b8
2017-08-18 15:10:27 +03:00
Sergey Igushkin 733421c92b Fix compilation error in AbstractLookupTrackerTest.kt
Original commit: 71bf649b1e
2017-08-14 19:27:50 +03:00
Alexey Tsvetkov 9d6cd6f0e2 Normalize paths in AbstractLookupTrackerTest
Otherwise the tests are failing on Windows

Original commit: 0226d15d29
2017-08-11 20:51:06 +03:00
Alexey Tsvetkov 23c84d07e2 JPS: completely skip chunk containing only dummy targets
Such chunks were added in intellij-community, see
commit fdeae7754c593e78b6748dfa66ce7198c2780d35
(https://github.com/JetBrains/intellij-community/commit/fdeae7754c593e78b6748dfa66ce7198c2780d35)

Original commit: 99439620d4
2017-08-10 22:05:48 +03:00
Alexey Tsvetkov 450022e5fd Add JS specific proto comparison test
Original commit: 239943867b
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov d36907bc8f Add proto comparison tests where members annotations are changed
Original commit: 0d3b882852
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 6c03741ed3 Treat SEALED_SUBCLASS_FQ_NAME_LIST change as a class signature change
#KT-19580

Original commit: 6354d9d54f
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 2d35732e94 Treat JS class annotation list change as class signature change
Original commit: 856276328e
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov dd2719ade1 Add raw ProtoCompareGenerated output to proto comparison test data
Original commit: e0ef08cf18
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 32af858914 Minor: rename js.result.out->result-js.out
This way result.out and result-js.out are closer in
a list of files (e.g. in Intellij project view).

Original commit: 642c5414a3
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 6358a239f4 Compare lookups after comparing build logs
This way tests are more informative when
compilation goes wrong.

Original commit: 7e7fcd352c
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 309bca8861 Add JS lookup tracker tests
Original commit: 82c977f2d2
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov cc025e5eb1 Extract JVM lookup tracker tests
Original commit: 6cfd090b20
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov f2837bd230 Show in lookup tracker log if there is no lookups in file
Original commit: f3f7ca4b95
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 1faa21470e Minor: reformat AbstractLookupTrackerTest#runCompiler
Original commit: ab90221a93
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 519036b28e Decouple lookup tracker tests from JPS
Original commit: 485e2345a9
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov 083424a4b3 Extract LookupTracker service from IncrementalCompilationComponents
We don't need a `TargetId` to `IncrementalCache` mapping in JS

Original commit: bb2fab5b5d
2017-08-10 21:19:42 +03:00
Alexey Tsvetkov db6a1de155 Remove .touch actions for lookup test cases that fail to compile
It is useless to touch and recompile, because the first compilation
has failed anyway

Original commit: a4c7dbd693
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov bf22bdadc1 Do not print NONE changes in proto tests
otherwise MainKt: NONE is added in all js tests

Original commit: 61b3c1c429
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 0a78d2d299 Isolate JS compiler in proto tests
Proto tests are still in the 'jps-tests' module
which is included in non-compiler tests.

It is not safe to call the compiler
directly in non-compiler tests
because it might affect IDE tests.

Original commit: 1cce1ef1f6
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 8ffde5fa69 Implement JS proto comparison
Original commit: ed5b6e07aa
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 1b34503d35 Minor tweak to proto test data format
Original commit: 8ffd141d17
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 164d133042 Extract JVM specific proto comparison test
Original commit: 1921950a1b
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov 772224fb63 Always print class id in proto comparison test
A name of class file was used for added and removed classes
before the change.
The change is required for reusing the test data in js proto comparison
tests (there is no classfiles in js, so it is hard to
emulate jvm classfiles names for inner/nested classes).

Original commit: cc24b9f4ad
2017-08-10 21:19:41 +03:00
Alexey Tsvetkov dbbfed2ce2 Move JVM specific proto comparison tests to separate dir
Original commit: 5dd4e4cdd4
2017-08-10 21:19:41 +03:00
Alexey Sedunov 25757d134a Kotlin Facet: Fix element ordering in compiler arguments XML
Do not rely on method list as it's ordered differently

Original commit: cf3615d279
2017-08-09 00:03:28 +03:00
Alexey Sedunov cfc6aef1d0 Support mutable/immutable compiler arguments
Original commit: 40163868af
2017-08-01 19:40:37 +03:00
Alexey Sedunov cf4b0a8933 Fix reflection-based operations on compiler arguments after conversion
Original commit: 2984a5a19f
2017-08-01 19:40:22 +03:00