Skip to content

Commit b7f7f7b

Browse files
aaronyegxkartben
authored andcommitted
samples: logging: logger: Add sample case for SWO logger
Add the SWO logger test item to the logger sample. Also add the logging tag to the tested platform. Signed-off-by: Aaron Ye <[email protected]>
1 parent 229fdf0 commit b7f7f7b

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

boards/ambiq/apollo3_evb/apollo3_evb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ supported:
1515
- gpio
1616
- spi
1717
- i2c
18+
- logging
1819
testing:
1920
ignore_tags:
2021
- net

boards/ambiq/apollo3p_evb/apollo3p_evb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- spi
1717
- i2c
1818
- mspi
19+
- logging
1920
testing:
2021
ignore_tags:
2122
- net
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&itm {
4+
status = "okay";
5+
};

samples/subsys/logging/logger/sample.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,18 @@ tests:
6565
harness: keyboard
6666
extra_configs:
6767
- CONFIG_USERSPACE=y
68+
69+
sample.logger.swo:
70+
arch_allow: arm
71+
platform_allow:
72+
- apollo3_evb
73+
- apollo3p_evb
74+
integration_platforms:
75+
- apollo3_evb
76+
- apollo3p_evb
77+
tags:
78+
- logging
79+
filter: CONFIG_HAS_SWO
80+
extra_args:
81+
- EXTRA_CONF_FILE="arm_itm_swo.conf"
82+
- DTC_OVERLAY_FILE="arm_itm_swo.overlay"

0 commit comments

Comments
 (0)