Skip to content

Commit 35e017a

Browse files
keith-packardcarlescufi
authored andcommitted
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 13dfbae commit 35e017a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

samples/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: 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/lib/cpp/libcxx/testcase.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ tests:
2323
- CONFIG_GLIBCXX_LIBCPP=y
2424
integration_platforms:
2525
- mps2_an385
26+
cpp.libcxx.glibcxx.picolibc:
27+
filter: TOOLCHAIN_HAS_PICOLIBC == 1
28+
toolchain_exclude: xcc
29+
tags: cpp
30+
timeout: 60
31+
extra_configs:
32+
- CONFIG_PICOLIBC=y
33+
- CONFIG_GLIBCXX_LIBCPP=y
34+
- CONFIG_CPP_EXCEPTIONS=y
35+
integration_platforms:
36+
- mps2_an385
2637
cpp.libcxx.arcmwdtlib:
2738
toolchain_allow: arcmwdt
2839
min_flash: 54

0 commit comments

Comments
 (0)