Commit Graph

104802 Commits

Author SHA1 Message Date
Mikhail Glukhikh 7c68e73816 LV 2.0: fix test data in HierarchicalMppIT.testProjectDependencies
This commit contains two kind of fixes:
1) K2 does not create entries for empty subpackages anymore,
so for the file with 'package foo.bar.baz' it creates an entry
only for the main package 'foo.bar.baz' and not for 'foo' or 'foo.bar'
2) K2 uses changed format of the classpath for third party common lib,
now it looks like other dependencies 'name-of-lib-<version>-commonMain'
instead of 'name-of-lib-metadata-<version>'
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh 556f3ee8d5 K2: use LATEST_STABLE in compiler tests instead of explicit 2.0 2023-09-19 15:46:29 +00:00
Anton Lakotka 58b0d6ffa8 [Gradle] Update MppHighlightingTestDataWithGradleIT for K2
^KT-61106 Verification Pending
2023-09-19 15:46:29 +00:00
Anton Lakotka c290a44f2b [Gradle] Update UnnamedTaskInputsIT to use correct MPP project
And fix incorrect code in hierarchical-mpp-multi-modules

^KT-61106 Verification Pending
2023-09-19 15:46:29 +00:00
Anton Lakotka 311b4c2deb [Gradle] Remove tests related to Legacy Metadata Compilation
it is no longer supported in k2

^KT-61817
^KT-61106 Verification Pending
2023-09-19 15:46:29 +00:00
Anton Lakotka 642c9e4261 [Gradle] Remove tests for legacy multiplatform plugin
Stdlib is already migrated, kotlin-test is on the way. In Kotlin 2.0
this should be removed completely.

^KT-61816
^KT-61106 Verification Pending
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 91acabc286 K2: don't use FastJarFS if output jar is used in classpath (KT-61883) 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh e8115820dd LV 2.0: mute CompilerOutputTest.testReleaseCompilerAgainstPreReleaseLibrary
Related to KT-61773
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 45a12e0cfd LV 2.0: fix JvmIdeServicesTest.testDependency by allowing unstable deps 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 796b9287e2 LV 2.0: fix diagnostic text in CliTestGenerated$Jvm.testWrongAbiVersion 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 96ea0c2eb8 LV 2.0: move testStrictMetadataVersionSemanticsOldVersion to pure K2 tests 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 8ba2cab989 LV 2.0: fix test data in CompilerSmokeTest 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh f6af5e6d03 LV 2.0: unmute/fix/delete some FirCompileKotlinAgainstCustomBinaries tests 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh bbdaa8c3ff LV 2.0: prevent double-set of LV in Native compilation tests 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh d8b3dd683e Use FIR compiler properly in AbstractTopLevelMembersInvocationTest 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 2dd9bdb89d Separate incremental JS legacy / standard incremental test fails 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh fc2041e5b9 LV 2.0: allow unstable dependencies in kotlin-native/build-tools
Without this commit, build of this module fails during bootstrap
with FIR_COMPILED_CLASS
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 4133988d62 LV 2.0: temporarily mute 4 incremental MPP tests (KT-60831) 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh e4309c3318 LV 2.0: mute testCircularDependenciesWrongInternalFromTests (KT-61716) 2023-09-19 15:46:29 +00:00
Mikhail Glukhikh 6314183a55 LV 2.0: update diagnostics around visibility checks in JPS tests 2023-09-19 15:46:28 +00:00
Yahor Berdnikau e71f86ee98 [repo] Fix configuration cache issues in scripting-compiler project 2023-09-19 15:46:28 +00:00
Anton Lakotka c7e4fa8654 [K2, Gradle, Test]: Remove check for languageVersion=2.0 in tests
Since Kotlin default version is already 2.0
then this check can be removed.

^KT-60860 Fixed
2023-09-19 15:46:28 +00:00
Mikhail Glukhikh cc2be502f6 LV 2.0: mute two MPP integration tests 2023-09-19 15:46:28 +00:00
Ilya Chernikov 129c1b4f92 IC: temporarily mute lookup tracker test on K2
Test most likely fails due to the missing precise java tracker
See #KT-57147 and #KT-60736 for details
2023-09-19 15:46:28 +00:00
Ilya Chernikov a182c907bc Fix scripting testdata for changed diagnostics in K2 2023-09-19 15:46:28 +00:00
Ilya Chernikov 8a10070772 LV20 update scripting test mute logic for K2
after switching to LV20 by default
2023-09-19 15:46:28 +00:00
Ilya Chernikov 5b64741609 LV20: unmute scripting test
the test doesn't fail anymore, but should
see #KT-60452
2023-09-19 15:46:28 +00:00
Ilya Chernikov beeae2772e LV20: fix / mute failing main-kts test 2023-09-19 15:46:28 +00:00
Ilya Chernikov c639febf36 LV20: remove redundant scripting plugin registration
related to #KT-61452
2023-09-19 15:46:28 +00:00
Ilya Chernikov 3dc1b26d83 Fix cli testdata for changed diagnostics in K2 2023-09-19 15:46:28 +00:00
Ilya Chernikov 7b49acb490 Fix ant testdata for changed diagnostics in K2 2023-09-19 15:46:28 +00:00
Ilya Chernikov 21b7945216 Fix ant testdata due to the newly added suppression warning 2023-09-19 15:46:28 +00:00
Ilya Chernikov effb2f801d Fix cli testdata for the newly added warning suppression tests 2023-09-19 15:46:28 +00:00
Ilya Chernikov 562ede4c7d LV20: Fix maven plugins test metadata 2023-09-19 15:46:28 +00:00
Ilya Chernikov 7cbe728e35 LV20: mute scripting test testLazyScriptDefinitionDiscovery 2023-09-19 15:46:28 +00:00
Ilya Chernikov 856e801cbc LV20: fix CompilerSmokeTest testdata for changed K2 error reporting 2023-09-19 15:46:28 +00:00
Denis.Zharkov ea0d0097ba Fix testSelfUpperBoundInference test in LV 2.0 branch
The test starts failing after switching to 2.0 because we don't support
TypeInferenceOnCallsWithSelfTypes though it's planned (see KT-59012).

This particular test was introduced in 1.5.x (see KT-48026) to check
if the flag -Xself-upper-bound-inference actually enables
the feature TypeInferenceOnCallsWithSelfTypes.

While the feature is enabled by default since 1.6, it doesn't make sense
to have it with earlier versions.
Another solution would be removing it at all, but that might require
removing related code as well (as we would have some dead code in CLI
arguments processing).

^KT-60885 Fixed
2023-09-19 15:46:28 +00:00
Ilya Chernikov 9fed50c03b LV20: fix CliTestGenerated testdata for changed K2 error reporting 2023-09-19 15:46:28 +00:00
Ilya Chernikov e29cd3d0b3 LV20: fix testdata for OldCompileKotlinAgainstCustomBinariesTest
fake future version changed
2023-09-19 15:46:27 +00:00
Aleksei.Cherepanov 39a0829f39 Fix Maven tests for K2
1) Update test data according to K2 compiler output
2) Finally switch logic of choosing compiler runner depends on language version instead of deprecated useK2 flag

#KT-60859 Fixed
2023-09-19 15:46:27 +00:00
Ilya Chernikov e7ff1d4cd9 LV20: mute noStdLib test for K2 until the issue is resolved
K2 do not track builtins properly to provide appropriate
diagnostics yet
related to #KT-61033
2023-09-19 15:46:27 +00:00
Ilya Chernikov e3dae559d0 LV20: refactor K2 scripting tests - rename tasks 2023-09-19 15:46:27 +00:00
Ilya Chernikov 2c4cca5785 LV20: fix K2 scripting tests - plugin registration 2023-09-19 15:46:27 +00:00
Ilya Chernikov 60603de042 LV20: fix JPS testdata where the error reporting slightly changed 2023-09-19 15:46:27 +00:00
Ilya Chernikov 0883b4468b LV20 mute test related to main function detection
related to #KT-44557
2023-09-19 15:46:27 +00:00
Ilya Chernikov 137dfbaca4 LV20: fix LauncherScriptTest testdata
note: the follow-up ussue for one of the changes - KT-60865
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh ab2053df4b Use K2/PSI in lookup tracker tests, fix test data in accordance with 2.0
#KT-60736 Submitted
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh f1a297279d Fix Java LC test for LV 2.0 (see KT-60646) 2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 876a0768e4 Mute a pair of intrinsic trim tests for old BE in LV 2.0
We muted tests in this commit because LV 2.0 shouldn't support old BE,
so this behavior is not important
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh e077be38f7 Migrate some Gradle tests to Kotlin 2.0 2023-09-19 15:46:27 +00:00