mvicsokolova
76a1091820
[K/N]: Do not require JDK11 for :native:native.tests
...
This commit provides a small fix in the code of a native test runner so that JDK11 is not required and removes the JDK11 target for the atomicfu-compiler-plugin.
Fixes KT-61293
Merge-request: KT-MR-11757
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-08-22 13:32:38 +00:00
Dmitriy Dolovov
d691ab61d7
[KLIB] Keep "API for KLIB ABI" test data under "compiler/testData/klib/" dir
...
The test data is used both in ":kotlin-util-klib-abi" and
":native:native.tests" modules. It's better to keep it together with
the test data for other KLIB tests which are also used in more than one
module, i.e. in "compiler/testData/klib/" dir.
2023-08-16 19:11:35 +00:00
Dmitriy Dolovov
cb92990ed6
[KLIB][tests] Reorganize "klib dump-metadata" tests
...
- Keep the test data under "native/native.tests/testData/klib/" dir
- Rename tests from "klib contents" to "klib dump-metadata"
2023-08-16 19:11:35 +00:00
Dmitriy Dolovov
ec9370c30b
[KLIB][tests] Reorganize "klib dump-ir" tests
...
- Keep the test data under "native/native.tests/testData/klib/" dir
- Rename tests from "klib ir" to "klib dump-ir"
2023-08-16 19:11:35 +00:00
Dmitriy Dolovov
60b950b9bd
[KLIB][tests] Keep "klib evolution" test data under "testData/klib/" dir
2023-08-16 19:11:34 +00:00
Dmitriy Dolovov
5c3e63e19a
[PL][tests] Keep PL test data under "testData/klib/" dir
2023-08-16 19:11:34 +00:00
mvicsokolova
9ff0e0b046
[atomicfu-K/N] Tests for K/N atomicfu-compiler-plugin
...
* `nativeTest` task now allows to provide compiler plugins that may be enabled during test compilation
* test sets for JVM and K/N backends are equal
KT-60800 describes all the issues with native tests that were solved in this commit.
Co-authored-by: Dmitriy Dolovov <Dmitriy.Dolovov@jetbrains.com >
Merge-request: KT-MR-11401
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-08-16 09:41:29 +00:00
Vladimir Sukharev
8f03eb9314
[K/N] Fix stdlib import in DiagnosticsNativeTests
...
Merge-request: KT-MR-11635
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-08-16 08:27:16 +00:00
Dmitriy Dolovov
da2e6d93ff
[Native][tests] Don't use trove4j in K/N new test infra
2023-08-09 12:15:39 +00:00
Igor Chevdar
9a719066e3
[K/N][tests] Added a reproducer for #KT-60371
2023-08-08 10:10:47 +00:00
Igor Chevdar
2f463f740f
[K/N][tests] Fixed CachesAutoBuildTest & IncrementalCompilationTest
...
In auto-cache mode, the compiler itself chooses the system cache directory,
and it is important to not pass it explicitly.
2023-08-08 10:10:47 +00:00
Dmitriy Dolovov
748eb2f9ee
[KLIB] ABI reader: Tests for classes inherited from classes produced by Native interop tool
...
^KT-54402
2023-07-31 20:22:21 +00:00
Dmitriy Dolovov
ac3c000ab1
[KLIB] Native K1 & K2 tests for dumping KLIB ABI
...
^KT-54402
2023-07-31 20:22:20 +00:00
Dmitriy Dolovov
ca00c38fca
[Native][tests] Use common test tag "klib" for all KLIB-related tests
2023-07-31 20:22:20 +00:00
mvicsokolova
bed16f92b1
[atomicfu-K/N]: Support Native backend in atomicfu compiler plugin
...
Atomicfu compiler plugin supported transformations for K/N:
* atomic properties are replaced with volatile properties and all the operations are delegated to native atomic intrinsics
* atomic arrays are replaced with kotlin.concurrent.Atomic*Arrays
* all other features available on JVM are covered as well (custom atomic extensions, delegated properties, debug tracing)
See (KT-58358, https://github.com/Kotlin/kotlinx-atomicfu/issues/261 )
Merge-request: KT-MR-11253
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-07-31 14:48:28 +00:00
Johan Bay
fafea27283
[klib tool] Add option to print ir
...
Dumping the IR from a klib is useful for debugging klib compilations.
^KT-58877
2023-07-31 09:45:19 +00:00
Aleksei.Cherepanov
f6963d04e9
Run K1 configuration on TC with languageVersion="1.9"
...
KotlinVersion is overrided on TC, so we need to rely on LanguageVersion
#KT-60589 Fixed
2023-07-27 14:15:49 +00:00
Svyatoslav Scherbina
bcc4a891be
Native: add tests for ExperimentalForeignApi on cinterop declarations
...
Add tests checking that all (top-level) declarations generated by
cinterop now have ExperimentalForeignApi annotation.
^KT-58362
2023-07-21 11:54:14 +00:00
Svyatoslav Scherbina
3280d3ef80
Native: prepare existing tests for cinterop adding ExperimentalForeignApi
...
cinterop tool should add ExperimentalForeignApi to all generated
declarations by default. This commit prepares existing tests for this.
^KT-58362
2023-07-21 11:54:14 +00:00
Mikhail Glukhikh
08222c83cf
K1/K2: set language version explicitly in Native tests pipeline
2023-07-19 06:46:53 +00:00
Dmitriy Dolovov
938146749d
[PL][tests] K/JS: Avoid any unexpected warnings to appear in tests
2023-07-17 21:09:40 +00:00
Dmitriy Dolovov
19c6208cc0
[PL][tests] K/N: Avoid any unexpected warnings to appear in tests
2023-07-17 21:09:40 +00:00
Vladimir Sukharev
32a390ea18
[K/N] K1/MPP: Enable splitting 1-stage to two CLI invocations
...
^KT-59245 Fixed
2023-07-07 17:51:46 +00:00
Vladimir Sukharev
a87b662bc5
[K/N] Split 1-stage K1 compilations to two stages
...
^KT-59245 Fixed
2023-07-07 17:51:46 +00:00
Ilya Goncharov
148d8c9246
[Gradle, JS] Migrate JS cli tests to ir backend
2023-07-05 07:10:06 +00:00
Vladimir Sukharev
4d9f93e4eb
[K2/N/MPP] Disable one-stage MPP compilation
...
^KT-56855
Merge-request: KT-MR-10735
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 15:51:59 +00:00
Vladimir Sukharev
a036e41809
[Test] Convert IGNORE: NATIVE directives in box tests from D to I
...
^KT-59057
Merge-request: KT-MR-10748
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 09:11:17 +00:00
Dmitriy Dolovov
2e43fa7cd0
[PL][tests] Adapt tests for K/N to the conditions when static cache is used w/o lazy IR
2023-06-22 08:10:11 +00:00
Alexander Shabalin
da1fde2477
[K/N] Enable custom allocator by default ^KT-55364
2023-06-13 10:22:04 +00:00
Alexander Shabalin
7815eec7c1
[K/N] Rework GC switches with better naming
...
Additionally, deprecate -Xgc in favour of a new binary option "gc".
This will allow setting gc right in gradle.properties
Merge-request: KT-MR-10498
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-06-09 12:04:19 +00:00
Nikolay Lunyak
45bbd432fc
[FIR Native] Stop requiring :dist for native diagnostic test
...
Native uses its own klib stdlib generated
via `:kotlin-native:dist`.
2023-06-07 05:20:01 +00:00
Vladimir Sukharev
37adc99b9a
[K/N] Don't pass -language_version to the second stage of new test system.
...
^KT-56182
Merge-request: KT-MR-10414
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-05 17:59:16 +00:00
Dmitriy Dolovov
cf9aa6a360
[Native][tests] Clean-up in c-interop tests
2023-06-05 12:47:56 +00:00
Dmitriy Dolovov
502cbe8b17
[PL][tests] W/a for broken @Deprecated annotations in existing c-interop KLIBs
...
^KT-59030
2023-06-05 12:47:56 +00:00
Nikolay Lunyak
a3cd7d074e
[FIR Native] KT-58549: Ensure :dist is run before the native diagnostics
...
Turns out `:native:tests` prepares `:kotlin-native:dist` only.
2023-06-01 10:27:54 +00:00
Nikolay Lunyak
70605c84df
[FIR Native] KT-58549: Get rid of the builtin provider
...
According to
`FirNativeCodegenBoxTestGenerated.testNestedClassesInAnnotations`,
the annotation
`kotlin.internal.PlatformDependent` is
unresolved reference.
^KT-58549 Fixed
2023-06-01 10:27:54 +00:00
Alexander Shabalin
aea8bac7d2
[K/N] Do not compile for deprecated targets and legacy MM
...
^KT-56533
^KT-58853
2023-05-30 16:44:58 +00:00
Dmitriy Dolovov
a01a6b64ad
[PL] Fix: Don't use locations in compiler messages
...
^KT-58837
2023-05-26 14:03:33 +00:00
Dmitriy Dolovov
69a1514b14
[PL] Unmute FIR-based tests that pass now
2023-05-23 16:23:41 +00:00
Vladimir Sukharev
bbe1e708f9
[K2/N] Rewrite mpp tests from old native infra to new
...
^KT-58543
Merge-request: KT-MR-10065
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-05-16 08:41:39 +00:00
Dmitriy Dolovov
42a8b28337
[Native][tests] Don't track used memory when running in TeamCity
2023-05-12 13:58:18 +00:00
Dmitriy Dolovov
6f249ab615
[Native][tests] Minor. Fix condition for generating intermediate build dir
2023-05-12 13:58:18 +00:00
Dmitriy Dolovov
bb5c1eea90
[Native][tests] Minor. Use "default" module name in AbstractNativeObjCExportTest
2023-05-12 13:58:18 +00:00
Dmitriy Dolovov
82984d782a
[Native][tests] Unify work with build directories across BB & Simple tests
...
* Drop 'SimpleTestDirectories' in favor of 'Binaries'
* Make 'Binaries' lazy
2023-05-12 13:58:18 +00:00
Dmitriy Dolovov
f7848133a6
[Native][tests] Fix generated framework log file name
...
$frameworkName.log -> $frameworkName.framework.log
2023-05-12 13:58:18 +00:00
Igor Chevdar
9fcb4ece64
[K/N][tests] Added a bunch of tests on incremental compilation
2023-05-10 08:37:32 +00:00
Alexander Shabalin
142e2b4b2a
[K/N] Add RosettaExecutor
...
Merge-request: KT-MR-9986
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-05-06 13:44:25 +00:00
Dmitriy Dolovov
5beec6b543
[Native][tests] Avoid failing with IO exceptions when the process under test is intentionally killed
2023-05-04 23:17:58 +00:00
Vladimir Sukharev
79599ab69e
[K2/N] Add ObjCExport test for kdoc strings
...
^KT-56090
Merge-request: KT-MR-9926
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-05-04 19:17:00 +00:00
Dmitriy Dolovov
57ba28ae3d
[K/N][tests] Drop obsolete test tags
...
The obsolete tags that are no more used and are dropped by this commit:
* 'stdlibK2'
* 'kotlin-testK2'
* 'codegenK2'
* 'k2libContents'
* 'firInfrastructure'
2023-05-04 10:35:08 +00:00