Skip to content

Commit

Permalink
sample: subsys: logging: Ensure that logger RTT backend is tested
Browse files Browse the repository at this point in the history
Logger RTT backend should be compiled on the boards that have RTT.

Signed-off-by: Krzysztof Chruscinski <[email protected]>
  • Loading branch information
nordic-krch authored and galak committed Mar 28, 2019
1 parent 8dd015f commit fdc1ee5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/subsys/logging/logger/prj_rtt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_LOG=y
CONFIG_LOG_RUNTIME_FILTERING=y
CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_LOG_PRINTK=y
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0
CONFIG_LOG_BACKEND_RTT=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_COVERAGE=n
6 changes: 6 additions & 0 deletions samples/subsys/logging/logger/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ tests:
- Severity levels showcase
- Logging performance showcase
- Logs from external logging system showcase

test_rtt:
tags: logging
filter: CONFIG_HAS_SEGGER_RTT
harness: keyboard
extra_args: CONF_FILE="prj_rtt.conf"

0 comments on commit fdc1ee5

Please sign in to comment.