Skip to content

Commit 5343aed

Browse files
nashifgalak
authored andcommitted
tests: fix testcase.yaml files
Puts all filter in common section and fix filters. Platforms in integration_platforms must also be allowed first, otherwise the tests will never run. Signed-off-by: Anas Nashif <[email protected]>
1 parent 41c8823 commit 5343aed

File tree

4 files changed

+26
-148
lines changed

4 files changed

+26
-148
lines changed
Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,52 @@
1+
common:
2+
filter: CONFIG_QEMU_TARGET or CONFIG_BOARD_NATIVE_POSIX
3+
tags: cbprintf
4+
integration_platforms:
5+
- native_posix
16
tests:
27
libraries.cbprintf_package:
3-
tags: cbprintf
4-
integration_platforms:
5-
- native_posix
6-
platform_allow: >
7-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
8-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
9-
qemu_x86_64 qemu_xtensa
108
extra_configs:
119
- CONFIG_CBPRINTF_COMPLETE=y
1210

1311
libraries.cbprintf_package_no_generic:
14-
tags: cbprintf
15-
integration_platforms:
16-
- native_posix
17-
platform_allow: >
18-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
19-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
20-
qemu_x86_64 qemu_xtensa
2112
extra_configs:
2213
- CONFIG_CBPRINTF_COMPLETE=y
2314
- CONFIG_COMPILER_OPT="-DZ_C_GENERIC=0"
2415

2516
libraries.cbprintf_package_fp:
26-
tags: cbprintf
27-
integration_platforms:
28-
- native_posix
29-
platform_allow: >
30-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
31-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64
32-
qemu_x86_64 qemu_xtensa
17+
filter: CONFIG_CPU_HAS_FPU
3318
extra_configs:
3419
- CONFIG_CBPRINTF_FP_SUPPORT=y
3520
- CONFIG_CBPRINTF_COMPLETE=y
21+
- CONFIG_FPU=y
3622

3723
libraries.cbprintf_package_fp_align_offset:
38-
tags: cbprintf
39-
integration_platforms:
40-
- native_posix
41-
platform_allow: >
42-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
43-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64
44-
qemu_x86_64
24+
filter: CONFIG_CPU_HAS_FPU
4525
extra_configs:
4626
- CONFIG_CBPRINTF_FP_SUPPORT=y
4727
- CONFIG_CBPRINTF_COMPLETE=y
4828
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
29+
- CONFIG_FPU=y
4930

5031
libraries.cbprintf_package_long_double:
51-
tags: cbprintf
52-
integration_platforms:
53-
- native_posix
54-
platform_allow: >
55-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
56-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv64
57-
qemu_x86_64 qemu_xtensa
32+
filter: CONFIG_CPU_HAS_FPU
5833
platform_exclude: qemu_riscv32
5934
extra_configs:
6035
- CONFIG_CBPRINTF_FP_SUPPORT=y
6136
- CONFIG_CBPRINTF_COMPLETE=y
6237
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
38+
- CONFIG_FPU=y
6339

6440
libraries.cbprintf_package_long_double_align_offset:
65-
tags: cbprintf
66-
integration_platforms:
67-
- native_posix
68-
platform_allow: >
69-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
70-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv64
71-
qemu_x86_64
41+
filter: CONFIG_CPU_HAS_FPU
7242
platform_exclude: qemu_riscv32
7343
extra_configs:
7444
- CONFIG_CBPRINTF_FP_SUPPORT=y
7545
- CONFIG_CBPRINTF_COMPLETE=y
7646
- CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE=y
7747
- CONFIG_COMPILER_OPT="-DCBPRINTF_PACKAGE_ALIGN_OFFSET=1"
48+
- CONFIG_FPU=y
7849

7950
libraries.cbprintf_package_nano:
80-
tags: cbprintf
81-
integration_platforms:
82-
- native_posix
83-
platform_allow: >
84-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
85-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
86-
qemu_x86_64 qemu_xtensa
8751
extra_configs:
8852
- CONFIG_CBPRINTF_NANO=y
Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,152 +1,96 @@
1+
common:
2+
filter: CONFIG_QEMU_TARGET or CONFIG_BOARD_NATIVE_POSIX
3+
tags: log_api logging
4+
integration_platforms:
5+
- native_posix
16
tests:
27
logging.log_api_deferred_overflow_rt_filter:
3-
integration_platforms:
4-
- native_posix
5-
tags: log_api logging
68
extra_configs:
79
- CONFIG_LOG_MODE_DEFERRED=y
810
- CONFIG_LOG_MODE_OVERFLOW=y
911
- CONFIG_LOG_RUNTIME_FILTERING=y
10-
1112
logging.log_api_deferred_overflow:
12-
integration_platforms:
13-
- native_posix
14-
tags: log_api logging
1513
extra_configs:
1614
- CONFIG_LOG_MODE_DEFERRED=y
1715
- CONFIG_LOG_MODE_OVERFLOW=y
18-
1916
logging.log_api_deferred_no_overflow:
20-
integration_platforms:
21-
- native_posix
22-
tags: log_api logging
2317
extra_configs:
2418
- CONFIG_LOG_MODE_DEFERRED=y
2519
- CONFIG_LOG_MODE_OVERFLOW=n
2620

2721
logging.log_api_deferred_static_filter:
28-
integration_platforms:
29-
- native_posix
30-
tags: log_api logging
3122
extra_configs:
3223
- CONFIG_LOG_MODE_DEFERRED=y
3324
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
3425

3526
logging.log_api_deferred_func_prefix:
36-
integration_platforms:
37-
- native_posix
38-
tags: log_api logging
3927
extra_configs:
4028
- CONFIG_LOG_MODE_DEFERRED=y
4129
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
4230
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
31+
- CONFIG_LOG_DETECT_MISSED_STRDUP=n
4332

4433
logging.log_api_immediate:
45-
integration_platforms:
46-
- native_posix
47-
tags: log_api logging
4834
extra_configs:
4935
- CONFIG_LOG_MODE_IMMEDIATE=y
5036

5137
logging.log_api_immediate_rt_filter:
52-
integration_platforms:
53-
- native_posix
54-
tags: log_api logging
5538
extra_configs:
5639
- CONFIG_LOG_MODE_IMMEDIATE=y
5740
- CONFIG_LOG_RUNTIME_FILTERING=y
5841

5942
logging.log_api_immediate_static_filter:
60-
integration_platforms:
61-
- native_posix
62-
tags: log_api logging
6343
extra_configs:
6444
- CONFIG_LOG_MODE_IMMEDIATE=y
6545
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
6646

6747
logging.log2_api_deferred_overflow_rt_filter:
68-
integration_platforms:
69-
- native_posix
70-
tags: log_api logging
7148
extra_configs:
7249
- CONFIG_LOG2_MODE_DEFERRED=y
7350
- CONFIG_LOG_MODE_OVERFLOW=y
7451
- CONFIG_LOG_RUNTIME_FILTERING=y
7552

7653
logging.log2_api_deferred_overflow:
77-
integration_platforms:
78-
- native_posix
79-
tags: log_api logging
8054
extra_configs:
8155
- CONFIG_LOG2_MODE_DEFERRED=y
8256
- CONFIG_LOG_MODE_OVERFLOW=y
8357

8458
logging.log2_api_deferred_no_overflow:
85-
integration_platforms:
86-
- native_posix
87-
tags: log_api logging
8859
extra_configs:
8960
- CONFIG_LOG2_MODE_DEFERRED=y
9061
- CONFIG_LOG_MODE_OVERFLOW=n
9162

9263
logging.log2_api_deferred_static_filter:
93-
integration_platforms:
94-
- native_posix
95-
tags: log_api logging
9664
extra_configs:
9765
- CONFIG_LOG2_MODE_DEFERRED=y
9866
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
9967

10068
logging.log2_api_deferred_func_prefix:
101-
integration_platforms:
102-
- native_posix
103-
tags: log_api logging
10469
extra_configs:
10570
- CONFIG_LOG2_MODE_DEFERRED=y
10671
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
10772
- CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y
10873

10974
logging.log2_api_deferred_64b_timestamp:
110-
integration_platforms:
111-
- native_posix
112-
tags: log_api logging
11375
extra_configs:
11476
- CONFIG_LOG2_MODE_DEFERRED=y
11577
- CONFIG_LOG_TIMESTAMP_64BIT=y
11678

11779
logging.log2_api_immediate:
118-
integration_platforms:
119-
- native_posix
120-
tags: log_api logging
12180
extra_configs:
12281
- CONFIG_LOG2_MODE_IMMEDIATE=y
12382

12483
logging.log2_api_immediate_rt_filter:
125-
integration_platforms:
126-
- native_posix
127-
tags: log_api logging
12884
extra_configs:
12985
- CONFIG_LOG2_MODE_IMMEDIATE=y
13086
- CONFIG_LOG_RUNTIME_FILTERING=y
13187

13288
logging.log2_api_immediate_static_filter:
133-
integration_platforms:
134-
- native_posix
135-
tags: log_api logging
13689
extra_configs:
13790
- CONFIG_LOG2_MODE_IMMEDIATE=y
13891
- CONFIG_SAMPLE_MODULE_LOG_LEVEL_DBG=y
13992

14093
logging.log2_api_immediate_64b_timestamp:
141-
integration_platforms:
142-
- native_posix
143-
tags: log_api logging
14494
extra_configs:
14595
- CONFIG_LOG2_MODE_IMMEDIATE=y
14696
- CONFIG_LOG_TIMESTAMP_64BIT=y
147-
148-
common:
149-
platform_allow: >
150-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
151-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
152-
qemu_x86_64 qemu_xtensa

tests/subsys/logging/log_benchmark/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tests:
1313
integration_platforms:
1414
- native_posix
1515
tags: logging
16-
platform_allow: qemu_x86
16+
platform_allow: qemu_x86 native_posix
1717
extra_configs:
1818
- CONFIG_CBPRINTF_COMPLETE=y
1919
- CONFIG_LOG_STRDUP_BUF_COUNT=8
@@ -42,7 +42,7 @@ tests:
4242
integration_platforms:
4343
- native_posix
4444
tags: logging
45-
platform_allow: qemu_x86
45+
platform_allow: qemu_x86 native_posix
4646
extra_configs:
4747
- CONFIG_CBPRINTF_COMPLETE=y
4848
- CONFIG_CBPRINTF_COMPLETE=y

tests/subsys/logging/log_msg2/testcase.yaml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,28 @@
1+
common:
2+
filter: CONFIG_QEMU_TARGET or CONFIG_BOARD_NATIVE_POSIX
3+
tags: log_api logging
4+
integration_platforms:
5+
- native_posix
16
tests:
27
logging.log_msg2:
3-
tags: log_msg2 logging
4-
integration_platforms:
5-
- native_posix
6-
platform_allow: >
7-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
8-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
9-
qemu_x86_64 qemu_xtensa native_posix_64
108
extra_configs:
119
- CONFIG_CBPRINTF_COMPLETE=y
1210

1311
logging.log_msg2_no_overflow:
14-
tags: log_msg2 logging
15-
integration_platforms:
16-
- native_posix
17-
platform_allow: >
18-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
19-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
20-
qemu_x86_64 qemu_xtensa native_posix native_posix_64
2112
extra_configs:
2213
- CONFIG_LOG_MODE_OVERFLOW=n
2314

2415
logging.log_msg2_64b_timestamp:
25-
tags: log_msg2 logging
26-
integration_platforms:
27-
- native_posix
28-
platform_allow: >
29-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m0 qemu_cortex_m3
30-
qemu_cortex_r5 qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86
31-
qemu_x86_64 qemu_xtensa native_posix_64
3216
extra_configs:
3317
- CONFIG_CBPRINTF_COMPLETE=y
3418
- CONFIG_LOG_TIMESTAMP_64BIT=y
3519

3620
logging.log_msg2_fp:
37-
tags: log_msg2 logging
38-
integration_platforms:
39-
- native_posix
40-
platform_allow: >
41-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m3 qemu_cortex_r5
42-
qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86_64 qemu_xtensa
43-
native_posix_64
4421
extra_configs:
4522
- CONFIG_CBPRINTF_COMPLETE=y
4623
- CONFIG_CBPRINTF_FP_SUPPORT=y
4724

4825
logging.log_msg2_fp_64b_timestamp:
49-
tags: log_msg2 logging
50-
integration_platforms:
51-
- native_posix
52-
platform_allow: >
53-
qemu_arc_em qemu_arc_hs qemu_cortex_a53 qemu_cortex_m3 qemu_cortex_r5
54-
qemu_leon3 qemu_nios2 qemu_riscv32 qemu_riscv64 qemu_x86_64 qemu_xtensa
55-
native_posix_64
5626
extra_configs:
5727
- CONFIG_CBPRINTF_COMPLETE=y
5828
- CONFIG_CBPRINTF_FP_SUPPORT=y

0 commit comments

Comments
 (0)