Skip to content

Commit 844c78c

Browse files
keith-packardnashif
authored andcommitted
tests/kernel: Also run tests using minimallibc
With picolibc being the default C library, we need to explicitly include testing against the minimal C library for kernel components. Signed-off-by: Keith Packard <[email protected]>
1 parent f0daf90 commit 844c78c

File tree

15 files changed

+149
-0
lines changed

15 files changed

+149
-0
lines changed

tests/kernel/cache/testcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@ tests:
88
- qemu_xtensa
99
- qemu_cortex_a53
1010
- nsim_em
11+
kernel.cache.api.minimallibc:
12+
tags:
13+
- kernel
14+
- cache
15+
- libc
16+
filter: CONFIG_CACHE_MANAGEMENT and CONFIG_MINIMAL_LIBC_SUPPORTED
17+
integration_platforms:
18+
- qemu_xtensa
19+
- qemu_cortex_a53
20+
- nsim_em
21+
extra_configs:
22+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/context/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ tests:
44
extra_configs:
55
- CONFIG_TEST_EXTRA_STACK_SIZE=1024
66
min_ram: 16
7+
kernel.context.minimallibc:
8+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
9+
tags: kernel libc
10+
extra_configs:
11+
- CONFIG_TEST_EXTRA_STACK_SIZE=1024
12+
- CONFIG_MINIMAL_LIBC=y
13+
min_ram: 16
714
linker.linker_generator:
815
platform_allow: qemu_cortex_m3
916
tags:

tests/kernel/device/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ tests:
99
tags:
1010
- kernel
1111
- device
12+
kernel.device.minimallibc:
13+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
14+
tags:
15+
- kernel
16+
- device
17+
- libc
18+
extra_configs:
19+
- CONFIG_MINIMAL_LIBC=y
1220
kernel.device.pm:
1321
tags:
1422
- kernel

tests/kernel/early_sleep/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ tests:
33
tags:
44
- kernel
55
- sleep
6+
kernel.common.sleep.minimallibc:
7+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
8+
tags:
9+
- kernel
10+
- sleep
11+
- libc
12+
extra_configs:
13+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/interrupt/testcase.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,24 @@ tests:
1515
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
1616
extra_configs:
1717
- CONFIG_QEMU_ICOUNT=y
18+
arch.interrupt.minimallibc:
19+
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE and CONFIG_MINIMAL_LIBC_SUPPORTED
20+
# nios2 excluded, see #22956
21+
arch_exclude: nios2
22+
platform_exclude: qemu_cortex_m0
23+
tags:
24+
- kernel
25+
- interrupt
26+
- libc
27+
extra_configs:
28+
- CONFIG_MINIMAL_LIBC=y
29+
arch.interrupt.qemu_cortex_m0.minimallibc:
30+
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE and CONFIG_MINIMAL_LIBC_SUPPORTED
31+
platform_allow: qemu_cortex_m0
32+
tags:
33+
- kernel
34+
- interrupt
35+
- libc
36+
extra_configs:
37+
- CONFIG_QEMU_ICOUNT=y
38+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/mp/testcase.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ tests:
66
filter: CONFIG_MP_MAX_NUM_CPUS > 1
77
depends_on:
88
- smp
9+
kernel.multiprocessing.minimallibc:
10+
tags:
11+
- kernel
12+
- smp
13+
- libc
14+
filter: CONFIG_MP_MAX_NUM_CPUS > 1 and CONFIG_MINIMAL_LIBC_SUPPORTED
15+
depends_on:
16+
- smp
17+
extra_configs:
18+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/obj_tracking/testcase.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ tests:
22
kernel.objects.tracking:
33
tags: kernel
44
platform_exclude: qemu_x86_tiny
5+
kernel.objects.tracking.minimallibc:
6+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
7+
tags: kernel libc
8+
platform_exclude: qemu_x86_tiny
9+
extra_configs:
10+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/pending/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
tests:
22
kernel.objects:
33
tags: kernel
4+
kernel.objects.minimallibc:
5+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
6+
tags: kernel libc
7+
extra_configs:
8+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/poll/testcase.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,16 @@ tests:
88
platform_exclude:
99
- nrf52dk_nrf52810
1010
- qemu_arc_hs6x
11+
kernel.poll.minimallibc:
12+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
13+
ignore_faults: true
14+
tags:
15+
- kernel
16+
- userspace
17+
- libc
18+
# FIXME: qemu_arc_hs6x is excluded due to a run-time failure, see #49492
19+
platform_exclude:
20+
- nrf52dk_nrf52810
21+
- qemu_arc_hs6x
22+
extra_configs:
23+
- CONFIG_MINIMAL_LIBC=y

tests/kernel/queue/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ tests:
44
- kernel
55
- userspace
66
ignore_faults: true
7+
kernel.queue.minimallibc:
8+
filter: CONFIG_MINIMAL_LIBC_SUPPORTED
9+
tags:
10+
- kernel
11+
- userspace
12+
- libc
13+
ignore_faults: true
14+
extra_configs:
15+
- CONFIG_MINIMAL_LIBC=y

0 commit comments

Comments
 (0)