diff --git a/app/sample.yaml b/app/sample.yaml index e2aba08..70b8bab68 100644 --- a/app/sample.yaml +++ b/app/sample.yaml @@ -6,9 +6,13 @@ sample: name: cannectivity common: tags: usb can - build_only: true platform_exclude: - native_sim + harness: console + harness_config: + type: one_line + regex: + - "CANnectivity firmware initialized with .*" tests: app.cannectivity: depends_on: usb_device can diff --git a/app/src/main.c b/app/src/main.c index 8f52874..1d3669d 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -86,4 +86,7 @@ int main(void) LOG_ERR("failed to enable USB device"); return err; } + + LOG_INF("CANnectivity firmware initialized with %u channel%s\n", ARRAY_SIZE(channels), + ARRAY_SIZE(channels) > 1 ? "s" : ""); }