Alexander Shabalin
2abf9bccba
[K/N][tests] Close stdin after piping all the data ^KT-61259
2023-11-29 16:22:28 +00:00
Alexander Shabalin
97a86e0ee3
[K/N][tests] Add global TEST_KIND override ^KT-61259
2023-11-29 16:22:28 +00:00
Dmitriy Novozhilov
06af6adf4f
[Test] Unify all fir2ir facades for non-jvm platforms
...
Setup of fir2ir for JS, Native and Wasm is very similar, so it makes
sense to extract all common parts of it into common base facade
2023-11-27 10:17:54 +00:00
Dmitriy Novozhilov
e38b25c278
[FIR2IR] Make convertAndActualize method the only entrypoint to fir2ir
...
Fir2Ir conversion consists of multiple steps with complex logic (like
conversion of each module, actualization, plugins application, constant
evaluation), and to ensure that they all are executed correctly it's
convenient to have the single entry point for all this machinery
2023-11-27 10:17:54 +00:00
Dmitriy Novozhilov
075010b14e
[Test] Get rid of some properties in IrBackendInput
...
`fir2IrComponents`, `irActualizerResult` and `dependentIrModuleFragments`
were used in `IrActualizerAndPluginsFacade`, which was removed in the
previous commit
2023-11-27 10:17:54 +00:00
Vladimir Sukharev
5ea59f57d6
[K/N] Verbose possible cinterop tool exceptions
...
^KT-59288
2023-11-23 18:36:00 +00:00
Vladimir Sukharev
6cff71e7d1
[K/N] Add objc-related clang options to cinterop executable tests
...
^KT-63287
2023-11-22 11:18:09 +00:00
Alexander Shabalin
9ad7b00613
[K/N] Migrate some runtime/workers tests to new testing infra ^KT-61259
2023-11-17 07:42:28 +00:00
Ilya Kirillov
6aeabc83ea
[kotlin] fix "IllegalStateException: Could not find stdlib"
...
The commit removes all the KLib resolution logic,
now Analysis API Standalone clients need to provide all the KLib
list directly.
The resolution logic was removed as too error-prone and requiring compiler configurations.
Kotlin Gradle plugin can provide a full set of required KLibs,
so if a client is a Gradle plugin, this should not be an issue.
Probably, some fancy API which will explicitly perform all KLib dependency searches
should be introduced in the future (KT-63395)
^KT-63126 fixed
2023-11-16 13:31:53 +00:00
Dmitriy Dolovov
1183244455
[tests] Use full paths with the proper extensions to KLIBs in LibraryProvider
...
^KT-61098
2023-11-15 19:38:25 +00:00
Dmitriy Dolovov
2fe49f2e5a
[Native][tests] Don't use KLIB repositories in new test infrastructure
...
Don't pass KLIB repositories via '-repo' or '-r' compiler parameters.
^KT-61098
2023-11-15 19:38:25 +00:00
Vladimir Sukharev
c38a0e10af
[K/N] Implement a concept of conditional ignore of K/N blackbox tests
...
^KT-59288 Fixed
2023-11-15 19:03:07 +00:00
Svyatoslav Scherbina
6ce33e80a5
Native: fix ConcurrentModificationException in test infra
...
Synchronously copy system properties before iterating over them, because
other thread sometimes tries to modify them in the meantime, which leads
to ConcurrentModificationException otherwise.
2023-11-15 18:52:12 +00:00
Vladimir Sukharev
1b1df9f0db
[K/N] Create test model for building/executing C-Interop tests
...
^KT-63287 Fixed
2023-11-14 19:35:52 +00:00
Svyatoslav Scherbina
8d20d5b16c
Native: support objcExportReportNameCollisions=true binary option
...
This binary option makes the compiler emit a warning whenever it mangles
a name emitted by ObjCExport.
^KT-63153 Fixed
2023-11-14 19:24:43 +00:00
Alexander Shabalin
fa9c620261
[K/N] Migrate some runtime/basic tests to new testing infra ^KT-61259
2023-11-10 15:51:05 +00:00
Ilya Kirillov
b6fdd7cacc
[FIR, Native] extract test initialization code to functions from AbstractDiagnosticsNativeTest for further reuse in LL FIR tests
...
^KT-62910
2023-11-10 06:41:03 +00:00
Vladimir Sukharev
4d4ad6c0d8
[K/N] Fix K2 ObjC interop: Fields are not supported for Companion of subclass of ObjC type
...
^KT-63048
2023-11-07 18:51:10 +00:00
Vladimir Sukharev
3ea4a6a937
[K/N] Add test for KT-63048, K1greenK2red
...
^KT-63048
2023-11-07 18:51:10 +00:00
Vladimir Sukharev
9e7bb90e44
[K/N] Don't pass language version to the second stage.
2023-11-01 01:51:12 +00:00
Dmitriy Dolovov
e18a2d0a2e
[KLIB tool] Add tests for dumping metadata signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
88a297b022
[KLIB tool] Run tests for 'dump-metadata' with & without signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
aa9b901926
[KLIB tool] Migrate 'dump-metadata' tests to K/N test infra
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
57e004e2b0
[KLIB tool] Respect '-signature-version' in 'dump-metadata' and 'dump-ir' commands
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
93506bcb95
[KLIB tool] Add tests for dumping IR signatures
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
a49723e35c
[KLIB tool] Minor. Rename ir() to dumpIr()
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
02f52371c1
[KLIB tool] Rename "contents" to "dump-metadata"
...
To make KLIB tool command names more uniform.
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
447b0eddac
[KLIB tool] Drop useless arg: -target
2023-10-27 09:27:59 +00:00
Alexander Shabalin
b3e13fb2c2
[K/N] Migrate runtime/collections tests to new testing infra ^KT-61259
2023-10-24 09:27:46 +00:00
Vladimir Sukharev
e43b634122
[K/N] Migrate most simple filecheck tests to new infra
...
^KT-62157
Merge-request: KT-MR-12376
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-23 10:07:28 +00:00
Vladimir Sukharev
5acdc865b6
Properly handle multi-line diagnostics test directives
2023-10-13 10:14:21 +00:00
Pavel Kunyavskiy
4175a0d258
[K/N] Enable test muted because of wrong test infra setup
...
^KT-61773
2023-10-09 16:52:15 +00:00
Pavel Punegov
a72eafc92b
[K/N][test] Fix cache mode selection for test targets without cache
...
Execution of tests without cache support should be restricted. Such runs
should use default cache mode (without).
2023-10-04 19:21:51 +00:00
Vladimir Sukharev
cd4c241fa3
[K/N] Run irText tests for K2/Native
...
^KT-58240
2023-10-04 18:20:05 +00:00
Pavel Kunyavskiy
ed7e458828
[IR] Don't use linker fake override builder in Ir actualizer
...
Now, it uses fake override builder from in Fir2IrComponents.
It would also allow using it in lazy classes in the future.
^KT-61934
2023-09-24 16:11:49 +00:00
Vladimir Sukharev
690d18e541
[K/N, Test] Move test code "org.jetbrains.kotlin.konan" -> "org.jetbrains.kotlin.konan.test.*"
2023-09-22 17:27:09 +00:00
Dmitriy Dolovov
70d12b271d
[Native][tests] Drop obsolete EXPECT_ACTUAL_LINKER test directive
...
This directive was earlier used in KMP tests that were rewritten
and do not require this directive anymore.
^KT-61136
2023-09-20 07:54:36 +00:00
Vladimir Sukharev
ef5346e62e
[K/N] Use enforced property PIPELINE_TYPE in CompilerOutputTest to avoid duplicated "-language-version" setting.
2023-09-19 15:46:30 +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
bbdaa8c3ff
LV 2.0: prevent double-set of LV in Native compilation tests
2023-09-19 15:46:29 +00:00
Sergej Jaskiewicz
904f8706ee
[K/N] Don't use reflection in irText tests for obtaining manglers
...
See KT-61248
2023-09-13 14:25:12 +00:00
Alexander Shabalin
2f22b0a6b0
[K/N] Migrate runtime/atomics tests to new testing infra ^KT-61259
2023-09-09 07:25:35 +00:00
Alexander Shabalin
ce371df5f6
[K/N] Set 2 minute timeout for StdlibTest
2023-09-08 14:01:43 +00:00
Alexander Shabalin
ff88c76e3c
[K/N] Parse duration for EXECUTION_TIMEOUT
2023-09-08 14:01:43 +00:00
Vladimir Sukharev
f14b48a4b0
[K/N] Don't use KonanIrModuleFragmentImpl in irText test pipeline
...
^KT-58240
2023-09-05 15:33:25 +00:00
Vladimir Sukharev
3aa6c9e74d
[K/N] Run irText tests for K1/Native
...
^KT-58240
2023-09-05 11:42:45 +00:00
Alexander Shabalin
9ab6a5ff56
[K/N] Migrate all stdlib_external tests to new testing infra ^KT-61259
...
- Move backend.native/tests/stdlib_external to runtime/test This mirrors
tests location (in relation to sources) on other backends.
- Remove all backend.native/tests tasks using stdlib_external.
Additionally remove now unused KonanGTest.
- Include complete native-wasm/test and runtime/test in
native/native.test
- In runtime/test/numbers/MathTest.kt leave only native-specific part.
2023-09-04 18:51:10 +00:00
Alexander Shabalin
cb25ef80a9
[K/N] Reenable disabled FirStdlibTest
2023-09-01 14:45:05 +00:00
Alexander Shabalin
bd797ed503
[K/N] Run stdlib tests only in normal mode ^KT-61259
2023-08-30 17:34:34 +00:00
Johan Bay
0a612e4268
[klib] Add an option to write out header klibs
...
The header klib is supposed to only contain the public abi of the module
similar to jvm-abi-gen. It is intended to be used as a dependency for other
klib compilations instead of the full klib for compilation avoidance.
^KT-60807
2023-08-29 13:25:07 +00:00