Skip to content

Commit eb84c8c

Browse files
committed
subsys/cpp: Also run C++ tests with picolibc when possible
When the toolchain has picolibc support, run samples/subsys/cpp/cpp_synchronization and tests/subsys/cpp/libcxx tests using it. Signed-off-by: Keith Packard <[email protected]>
1 parent 3cb0c74 commit eb84c8c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

samples/subsys/cpp/cpp_synchronization/sample.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,18 @@ tests:
1313
- "Create semaphore (.*)"
1414
- "main: Hello World!"
1515
- "coop_thread_entry: Hello World!"
16+
sample.cpp.synchronization.picolibc:
17+
filter: (TOOLCHAIN_HAS_PICOLIBC == 1) and CONFIG_PICOLIBC_SUPPORTED
18+
extra_configs:
19+
- CONFIG_PICOLIBC=y
20+
tags: cpp
21+
toolchain_exclude: issm xcc
22+
integration_platforms:
23+
- qemu_x86
24+
harness: console
25+
harness_config:
26+
type: multi_line
27+
regex:
28+
- "Create semaphore (.*)"
29+
- "main: Hello World!"
30+
- "coop_thread_entry: Hello World!"

tests/subsys/cpp/libcxx/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ tests:
2121
- CONFIG_NEWLIB_LIBC_NANO=y
2222
integration_platforms:
2323
- mps2_an385
24+
cpp.libcxx.picolibc:
25+
filter: (TOOLCHAIN_HAS_PICOLIBC == 1) and CONFIG_PICOLIBC_SUPPORTED
26+
toolchain_exclude: xcc
27+
tags: cpp
28+
timeout: 60
29+
extra_configs:
30+
- CONFIG_PICOLIBC=y
31+
integration_platforms:
32+
- mps2_an385
2433
cpp.libcxx.arcmwdtlib:
2534
toolchain_allow: arcmwdt
2635
min_flash: 54

0 commit comments

Comments
 (0)