Commit Graph

710 Commits

Author SHA1 Message Date
Dmitriy Dolovov 9c70d5088c [Native][tests] Don't warn when committed TestFile is committed again
Actually, there is nothing wrong with calling commit() again: Some TestFiles are created as uncommitted and require calling commit(), while others are created as committed from the very beginning.
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov 407e82adbb [Native][tests] Minor. Make computePackageName() a bit more comprehensive 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov e30f33b18d [Native][tests] Minor. Prefer to use raw string literals for better readability 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov e5bb16c750 [Native][tests] Minor. Comments formatted 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov 24f00f8fda [Native][tests] Warn when committed TestFile is committed again 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov c014daf1b2 [Native][tests] Minor. Simplify StandardTestCaseGroupProvider.runForFirstMeaningfulStatement() 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov 0e1c60d5ab [Native][tests] Split TestExecutable -> TestExecutable/TestRun (part 2) 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov 55a2d5cb4a [Native][tests] Minor. Rename internal functions 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov fb0dda5a24 [Native][tests] Use ThreadSafeCache instead of ConcurrentHashMap 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov c219e53634 [Native][tests] Minor. Prefer using JUnit assertions over Kotlin checks 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov e21c9fe3b2 [Native][tests] Drop useless generated test suite class 2021-11-15 18:15:41 +03:00
Dmitriy Dolovov 4bc48ea466 [Native][tests] Split TestExecutable into TestExecutable and TestRun
The latter keeps the list of run parameters now. It's assumed that the same TestExecutable instance can be run with different TestRuns.
2021-11-15 18:15:41 +03:00
Dmitriy Dolovov 6cef8c1f91 [Native][tests] Minor. Drop unused function 2021-11-15 18:15:41 +03:00
Dmitriy Dolovov ce4d2093cc [Native][tests] Use the single 'generateTests' task 2021-11-15 18:15:41 +03:00
Dmitriy Dolovov 54b09810f0 [Native] Rename :native:tests-blackbox.native to :native:native.tests 2021-11-15 18:15:41 +03:00
Dmitriy Dolovov 54fbadb9c7 [Native][tests] Use -Xbinary=runtimeAssertionsMode=panic in new test infra 2021-11-15 18:15:40 +03:00
Dmitriy Dolovov 8c598a25fd [Native][tests] Reduce test generators verbosity to avoid failing Check Repository Test as TC 2021-11-15 18:15:40 +03:00
Dmitriy Dolovov 5f25b66eec [Native] New test infrastructure for black box tests 2021-11-15 18:15:40 +03:00
Starlight220 e77f72071d migrate KmValueParameter.type (KmType? -> lateinit KmType) 2021-10-26 18:21:38 +02:00
Dmitriy Novozhilov 9baf10cfcc [Build] Remove forgotten comment from build config 2021-10-12 17:26:33 +03:00
Pavel Kirpichenkov 5e874bc3c5 [Commonizer] Check errors in code of commonization tests 2021-10-11 13:00:40 +00:00
Victor Petukhov b957831683 Use WarningAwareUpperBoundChecker independently
^KT-47920 Fixed
^KT-48290 Fixed
2021-09-30 20:08:58 +03:00
Dmitriy Novozhilov e933c7b6d9 [Build] Remove testApi(intellijDep()) dependencies from all modules
Since IDEA moved most of it's jars to java 11 it's illegal to use them
  in our dependencies, so all modules which use `intellijDep()` should
  carefully specify which jars they use
2021-09-30 14:41:31 +03:00
Victor Petukhov a264cbfe7d Move CallUtil.kt under the resolve.util package 2021-09-27 16:12:01 +03:00
Sergey Bogolepov 708931b404 [K/N][Gradle] Use build service to read konan.properties
Also pass additionalCacheFlags when compiling compiler caches.
2021-09-27 11:21:25 +03:00
Vyacheslav Gerasimov f91d6958a8 Build: Rework runtimeJar helper and drop redundant configuration
#KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov ab146bd6d4 Build: Fix deprecated Gradle configurations usages
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Pavel Kunyavskiy fb875c484d [K/N] Implement instantiating of annotation class 2021-09-23 06:59:34 +00:00
sebastian.sellmair a279f682bb [Commonizer] Add additional documentation to ClassOrTypeAliasTypeCommonizer
^KT-48288
2021-09-22 06:45:12 +00:00
sebastian.sellmair 6d17e4da57 [Commonizer] Implement disabled tests for ^KT-48288
^KT-48288
^KT-48850
2021-09-22 06:45:11 +00:00
sebastian.sellmair 104d2b347b [Commonizer] Minor: CirType: Use copyInterned over createInterned
^KT-48288
2021-09-22 06:45:11 +00:00
sebastian.sellmair 3b67bcbf4d [Commonizer] ClassOrTypeAliasTypeCommonizer: Remove faulty argument substitution
Underlying types from CirTypeAliasType do not require
parent argument replacement.

^KT-48288
2021-09-22 06:45:11 +00:00
sebastian.sellmair 7bf62ab159 [Commonizer] Implement tests for 'crossed' type aliases
^KT-48288
2021-09-22 06:45:10 +00:00
sebastian.sellmair 1fca19258d [Commonizer] ParameterizedTypesCommonizationTest: Remove unnecessary symbols
^KT-48288
2021-09-22 06:45:10 +00:00
sebastian.sellmair fa2577dda8 [Commonizer] Improve performance of deserialization
^KT-48288
2021-09-22 06:45:09 +00:00
sebastian.sellmair 16bf5f3df3 [Commonizer] Improve performance of ClassOrTypeAliasTypeCommonizer
Performance is improved by reducing calls to 'backwardsTypeDistance'

^KT-48288
2021-09-22 06:45:09 +00:00
sebastian.sellmair 64d2ba4029 [Commonizer] Improve performance of 'backwardsTypeDistance'
This commit also introduces common sealed interfaces to represent
classifiers and types coming form dependencies or 'sources'

^KT-48288
2021-09-22 06:45:09 +00:00
sebastian.sellmair fadb91fa35 [Commonizer] Rename CirCommonClassifierId to AssociatedClassifierIds
^KT-48288
2021-09-22 06:45:08 +00:00
sebastian.sellmair de1ae970d7 [Commonizer] ClassOrTypeAliasTypeCommonizer: Improve comments
^KT-48288
2021-09-22 06:45:08 +00:00
sebastian.sellmair 7485d2529b [Commonizer] Implement simple BackwardsTypeSubstitutionCommonizationTest
^KT-48288
2021-09-22 06:45:07 +00:00
sebastian.sellmair 38c7337b19 [Commonizer] Add tests to ParameterizedTypesCommonizationTest
^KT-48288
2021-09-22 06:45:07 +00:00
sebastian.sellmair e1bc6c54d7 [Commonizer] Simplify CirClassOrTypeAliasType.withParentArguments()
^KT-48288
2021-09-22 06:45:07 +00:00
sebastian.sellmair 459e01a729 [Commonizer] CirConversions: Ensure consistent function names
^KT-48288
2021-09-22 06:45:06 +00:00
sebastian.sellmair 892512cb67 [Commonizer] Remove unused/old typeAliasUtils
^KT-48288
2021-09-22 06:45:06 +00:00
sebastian.sellmair ba997905d9 [Commonizer] Remove CirClassType.visibility
^KT-48288
2021-09-22 06:45:05 +00:00
sebastian.sellmair da1eb5d96e [Commonizer] Implement CirTypeDistance.penalty
^KT-48288
2021-09-22 06:45:05 +00:00
sebastian.sellmair d0cd7c81ea [Commonizer] Minor: Change signature of CirConversions functions
^KT-48288
2021-09-22 06:45:05 +00:00
sebastian.sellmair 75d7c830e7 [Commonizer] Minor: Improve naming of methods and types
^KT-48288
2021-09-22 06:45:04 +00:00
sebastian.sellmair 808ea11072 [Commonizer] Improve access performance for TargetDependent
^KT-48288
2021-09-22 06:45:04 +00:00
sebastian.sellmair cf0f061db5 [Commonizer] Implement two phased re-approximation
^KT-48288
2021-09-22 06:45:03 +00:00