1common:
2  platform_type:
3    - qemu
4    - native
5  tags: cbprintf
6  min_flash: 48
7tests:
8  libraries.cbprintf.package:
9    extra_configs:
10      - CONFIG_CBPRINTF_COMPLETE=y
11    integration_platforms:
12      - native_sim
13
14  libraries.cbprintf.package_no_generic:
15    extra_configs:
16      - CONFIG_CBPRINTF_COMPLETE=y
17      - CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
18    integration_platforms:
19      - native_sim
20
21  libraries.cbprintf.package_fp:
22    filter: CONFIG_CPU_HAS_FPU
23    extra_configs:
24      - CONFIG_CBPRINTF_FP_SUPPORT=y
25      - CONFIG_CBPRINTF_COMPLETE=y
26      - CONFIG_FPU=y
27    integration_platforms:
28      - native_sim
29
30  libraries.cbprintf.package_fp_align_offset:
31    filter: CONFIG_CPU_HAS_FPU
32    extra_configs:
33      - CONFIG_CBPRINTF_FP_SUPPORT=y
34      - CONFIG_CBPRINTF_COMPLETE=y
35      - CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
36      - CONFIG_FPU=y
37    integration_platforms:
38      - native_sim
39
40  libraries.cbprintf.package_long_double:
41    filter: CONFIG_CPU_HAS_FPU
42    extra_configs:
43      - CONFIG_CBPRINTF_FP_SUPPORT=y
44      - CONFIG_CBPRINTF_COMPLETE=y
45      - CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
46      - CONFIG_FPU=y
47      - CONFIG_MINIMAL_LIBC=y
48    integration_platforms:
49      - native_sim
50
51  libraries.cbprintf.package_long_double_align_offset:
52    filter: CONFIG_CPU_HAS_FPU
53    extra_configs:
54      - CONFIG_CBPRINTF_FP_SUPPORT=y
55      - CONFIG_CBPRINTF_COMPLETE=y
56      - CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
57      - CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
58      - CONFIG_FPU=y
59      - CONFIG_MINIMAL_LIBC=y
60    integration_platforms:
61      - native_sim
62
63  libraries.cbprintf.package_nano:
64    tags:
65      - nano
66    extra_configs:
67      - CONFIG_CBPRINTF_NANO=y
68    integration_platforms:
69      - native_sim
70
71  # Same test but with test compiled as C++
72  libraries.cbprintf.package_cpp:
73    extra_configs:
74      - CONFIG_CPP=y
75      - CONFIG_CBPRINTF_COMPLETE=y
76    integration_platforms:
77      - native_sim
78
79  libraries.cbprintf.package_no_generic_cpp:
80    extra_configs:
81      - CONFIG_CPP=y
82      - CONFIG_CBPRINTF_COMPLETE=y
83      - CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
84    integration_platforms:
85      - native_sim
86
87  libraries.cbprintf.package_fp_cpp:
88    filter: CONFIG_CPU_HAS_FPU
89    extra_configs:
90      - CONFIG_CPP=y
91      - CONFIG_CBPRINTF_FP_SUPPORT=y
92      - CONFIG_CBPRINTF_COMPLETE=y
93      - CONFIG_FPU=y
94    integration_platforms:
95      - native_sim
96
97  libraries.cbprintf.package_fp_align_offset_cpp:
98    filter: CONFIG_CPU_HAS_FPU
99    extra_configs:
100      - CONFIG_CPP=y
101      - CONFIG_CBPRINTF_FP_SUPPORT=y
102      - CONFIG_CBPRINTF_COMPLETE=y
103      - CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
104      - CONFIG_FPU=y
105    integration_platforms:
106      - native_sim
107
108  libraries.cbprintf.package_long_double_cpp:
109    filter: CONFIG_CPU_HAS_FPU
110    extra_configs:
111      - CONFIG_CPP=y
112      - CONFIG_CBPRINTF_FP_SUPPORT=y
113      - CONFIG_CBPRINTF_COMPLETE=y
114      - CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
115      - CONFIG_FPU=y
116      - CONFIG_MINIMAL_LIBC=y
117    integration_platforms:
118      - native_sim
119
120  libraries.cbprintf.package_long_double_align_offset_cpp:
121    filter: CONFIG_CPU_HAS_FPU
122    extra_configs:
123      - CONFIG_CPP=y
124      - CONFIG_CBPRINTF_FP_SUPPORT=y
125      - CONFIG_CBPRINTF_COMPLETE=y
126      - CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
127      - CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
128      - CONFIG_FPU=y
129      - CONFIG_MINIMAL_LIBC=y
130    integration_platforms:
131      - native_sim
132
133  libraries.cbprintf.package_nano_cpp:
134    tags:
135      - nano
136    extra_configs:
137      - CONFIG_CPP=y
138      - CONFIG_CBPRINTF_NANO=y
139    integration_platforms:
140      - native_sim
141
142  libraries.cbprintf.package.picolibc:
143    filter: CONFIG_PICOLIBC_SUPPORTED
144    tags: picolibc
145    extra_configs:
146      - CONFIG_CBPRINTF_COMPLETE=y
147      - CONFIG_PICOLIBC=y
148    integration_platforms:
149      - qemu_x86
150
151  libraries.cbprintf.package_no_generic.picolibc:
152    filter: CONFIG_PICOLIBC_SUPPORTED
153    tags: picolibc
154    extra_configs:
155      - CONFIG_CBPRINTF_COMPLETE=y
156      - CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
157      - CONFIG_PICOLIBC=y
158    integration_platforms:
159      - qemu_x86
160
161  libraries.cbprintf.package_fp.picolibc:
162    filter: CONFIG_CPU_HAS_FPU and CONFIG_PICOLIBC_SUPPORTED
163    tags: picolibc
164    extra_configs:
165      - CONFIG_CBPRINTF_FP_SUPPORT=y
166      - CONFIG_CBPRINTF_COMPLETE=y
167      - CONFIG_FPU=y
168      - CONFIG_PICOLIBC=y
169    integration_platforms:
170      - qemu_x86
171
172  # Same test but with test compiled as C++
173  libraries.cbprintf.package_cpp.picolibc:
174    filter: CONFIG_PICOLIBC_SUPPORTED
175    tags: picolibc
176    extra_configs:
177      - CONFIG_CPP=y
178      - CONFIG_CBPRINTF_COMPLETE=y
179      - CONFIG_PICOLIBC=y
180    integration_platforms:
181      - qemu_x86
182
183  libraries.cbprintf.package_no_generic_cpp.picolibc:
184    filter: CONFIG_PICOLIBC_SUPPORTED
185    tags: picolibc
186    extra_configs:
187      - CONFIG_CPP=y
188      - CONFIG_CBPRINTF_COMPLETE=y
189      - CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
190      - CONFIG_PICOLIBC=y
191    integration_platforms:
192      - qemu_x86
193
194  libraries.cbprintf.package_fp_cpp.picolibc:
195    filter: CONFIG_CPU_HAS_FPU and CONFIG_PICOLIBC_SUPPORTED
196    tags: picolibc
197    extra_configs:
198      - CONFIG_CPP=y
199      - CONFIG_CBPRINTF_FP_SUPPORT=y
200      - CONFIG_CBPRINTF_COMPLETE=y
201      - CONFIG_FPU=y
202      - CONFIG_PICOLIBC=y
203    integration_platforms:
204      - qemu_x86
205