Skip to content

Commit 84a85ed

Browse files
carlescufifabiobaltieri
authored andcommitted
tests: Add LTO tests variants with LTO_SINGLE_THREADED
Add variants of existing tests to cover this new Kconfig option. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
1 parent d0547b6 commit 84a85ed

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

‎tests/kernel/common/testcase.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,17 @@ tests:
8989
integration_platforms:
9090
- qemu_x86
9191
- mps2/an385
92+
kernel.common.lto.singlethreaded:
93+
platform_key:
94+
- arch
95+
# CONFIG_CODE_DATA_RELOCATION causes a build error (issue #69730)
96+
filter: CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED and not CONFIG_CODE_DATA_RELOCATION
97+
tags: lto
98+
extra_configs:
99+
- CONFIG_TEST_USERSPACE=n
100+
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
101+
- CONFIG_LTO=y
102+
- CONFIG_LTO_SINGLE_THREADED=y
103+
integration_platforms:
104+
- qemu_x86
105+
- mps2/an385

‎tests/misc/test_build/testcase.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ tests:
3636
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
3737
- CONFIG_LTO=y
3838
- CONFIG_PICOLIBC_USE_MODULE=y
39+
buildsystem.lto.st.picolibc_module:
40+
build_only: true
41+
platform_allow:
42+
- nucleo_f746zg
43+
extra_configs:
44+
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
45+
- CONFIG_LTO=y
46+
- CONFIG_LTO_SINGLE_THREADED=y
47+
- CONFIG_PICOLIBC_USE_MODULE=y
3948
buildsystem.arm.null_pointer_exception_detection_dwt:
4049
build_only: true
4150
platform_allow:

0 commit comments

Comments
 (0)