Skip to content

Commit

Permalink
tests: kernel: common: Enable tests with LTO
Browse files Browse the repository at this point in the history
This commit enables some kernel tests with
Link Time Optimization enabled.

Signed-off-by: Radosław Koppel <[email protected]>
  • Loading branch information
rakons committed Feb 2, 2024
1 parent 753f61e commit 2f86480
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/kernel/common/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ tests:
tags: picolibc
extra_configs:
- CONFIG_PICOLIBC=y
kernel.common.lto:
filter: CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
tags: lto
extra_configs:
- CONFIG_TEST_USERSPACE=n
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
- CONFIG_LTO=y
20 changes: 20 additions & 0 deletions tests/kernel/interrupt/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,23 @@ tests:
extra_configs:
- CONFIG_SHARED_INTERRUPTS=y
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
arch.shared_interrupt.lto:
# excluded because of failures during test_prevent_interruption
platform_exclude: qemu_cortex_m0
arch_exclude:
# same as above, #22956
- nios2
# test needs 2 working interrupt lines
- xtensa
# TODO: make test work on this arch
- mips
tags:
- kernel
- interrupt
- lto
extra_configs:
- CONFIG_SHARED_INTERRUPTS=y
- CONFIG_TEST_USERSPACE=n
- CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
- CONFIG_LTO=y
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE and CONFIG_ISR_TABLES_LOCAL_DECLARATION_SUPPORTED

0 comments on commit 2f86480

Please sign in to comment.