From fdc1ee59d80b64552ce6db81aac689c5dccb1a75 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Thu, 28 Mar 2019 10:35:25 +0100 Subject: [PATCH] sample: subsys: logging: Ensure that logger RTT backend is tested Logger RTT backend should be compiled on the boards that have RTT. Signed-off-by: Krzysztof Chruscinski --- samples/subsys/logging/logger/prj_rtt.conf | 8 ++++++++ samples/subsys/logging/logger/sample.yaml | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 samples/subsys/logging/logger/prj_rtt.conf diff --git a/samples/subsys/logging/logger/prj_rtt.conf b/samples/subsys/logging/logger/prj_rtt.conf new file mode 100644 index 00000000000000..5fa850bb084377 --- /dev/null +++ b/samples/subsys/logging/logger/prj_rtt.conf @@ -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 diff --git a/samples/subsys/logging/logger/sample.yaml b/samples/subsys/logging/logger/sample.yaml index 42923d8214244b..67096874decfa5 100644 --- a/samples/subsys/logging/logger/sample.yaml +++ b/samples/subsys/logging/logger/sample.yaml @@ -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"