Commit Graph

578 Commits

Author SHA1 Message Date
Dmitriy Dolovov 445156f2fc [Native][tests] Minor. Rename PackageName to PackageFQN 2021-11-18 22:37:38 +03:00
Dmitriy Dolovov 502fb96ccc [Native][tests] Multi-file testData file sample with the same test methods in different packages 2021-11-18 22:37:30 +03:00
Dmitriy Dolovov 6cae6dc5e0 [Native][tests] Re-organize TestCaseGroupProvider 2021-11-18 17:02:44 +03:00
Dmitriy Dolovov 5f9bf1611e [Native][tests] Re-organize packages in 'native.tests' module 2021-11-18 16:12:17 +03:00
Dmitriy Dolovov e2d68fd239 [Native][tests] Make AbstractRunner.AbstractRun to be fun interface 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov fec63a5f1c [Native][tests] Use a separate directory per every test module 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 358f1216ad [Native][tests] Fix multimodule test samples to avoid @Test functions in modules compiled to KLIBs
Such functions are not included into the test-runner generated during compilation of the main module.
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 200d92c287 [Native][tests] Handle unexpected errors during test run 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov d13b4bfb25 [Native][tests] Minor. Simplify verification of expectations in LocalTestRunner 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 0f77c078e8 [Native][tests] Introduce TestRunner that knows how exactly to run an arbitrary test 2021-11-18 13:29:10 +03:00
Dmitry Petrov 30ceb49442 JVM_IR KT-48945 generate special bridge with unsubstituted signature 2021-11-17 17:44:01 +03:00
Dmitriy Novozhilov 8cdfec7c40 Regenerate tests 2021-11-17 09:43:27 +03:00
Dmitriy Dolovov 7ed3941580 [Native][tests] Update generated tests 2021-11-15 18:24:58 +03:00
Dmitriy Dolovov 503f159f4d [Native] External tests: Preserve original line offsets 2021-11-15 18:15:43 +03:00
Dmitriy Dolovov cc667189ec [Native] External tests: Don't clean up test directives
This does not make sense anymore since external test data files are patched during test execution on the fly.
2021-11-15 18:15:43 +03:00
Dmitriy Dolovov 61b8fb8fc2 [Native][tests] Allow overriding test properties via Gradle properties 2021-11-15 18:15:43 +03:00
Dmitriy Dolovov a029b50755 [Native][tests] Enable codegen_box_callableReference/genericConstructorReference.kt 2021-11-15 18:15:42 +03:00
Dmitriy Dolovov 4900aa673b [Native][tests] Fix formatting of error message about failed test 2021-11-15 18:15:42 +03:00
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