Skip to content

Commit eae52cf

Browse files
committed
tests/cpp: Test the modular build of libstdc++
Add a test case verifying that libstdc++ can be used with the picolibc module or with newlib. Signed-off-by: Keith Packard <[email protected]>
1 parent 9e888ab commit eae52cf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/lib/cpp/libcxx/testcase.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ tests:
1111
- CONFIG_CPP_EXCEPTIONS=y
1212
integration_platforms:
1313
- mps2/an385
14+
cpp.libcxx.glibcxx.newlib.module:
15+
filter: TOOLCHAIN_HAS_NEWLIB == 1
16+
toolchain_exclude: xcc
17+
min_flash: 54
18+
min_ram: 24
19+
tags: cpp
20+
extra_configs:
21+
- CONFIG_NEWLIB_LIBC=y
22+
- CONFIG_GLIBCXX_LIBCPP=y
23+
- CONFIG_GLIBCXX_LIBCPP_USE_MODULE=y
24+
- CONFIG_CPP_EXCEPTIONS=y
25+
integration_platforms:
26+
- mps2/an385
1427
cpp.libcxx.glibcxx.newlib_nano:
1528
filter: TOOLCHAIN_HAS_NEWLIB == 1 and CONFIG_HAS_NEWLIB_LIBC_NANO
1629
toolchain_exclude: xcc
@@ -34,6 +47,18 @@ tests:
3447
- CONFIG_CPP_EXCEPTIONS=y
3548
integration_platforms:
3649
- mps2/an385
50+
cpp.libcxx.glibcxx.picolibc.module:
51+
toolchain_exclude: xcc
52+
platform_exclude: native_sim
53+
tags: cpp
54+
timeout: 60
55+
extra_configs:
56+
- CONFIG_PICOLIBC=y
57+
- CONFIG_PICOLIBC_USE_MODULE=y
58+
- CONFIG_GLIBCXX_LIBCPP=y
59+
- CONFIG_CPP_EXCEPTIONS=y
60+
integration_platforms:
61+
- mps2/an385
3762
cpp.libcxx.arcmwdtlib:
3863
toolchain_allow: arcmwdt
3964
min_flash: 54

0 commit comments

Comments
 (0)