From 35cacd6d5fbb0a3d303eea7e6c4bb505dda1b080 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 23 Oct 2025 17:12:51 -0700 Subject: [PATCH] [nexus] enable CLI logging for fuzz tests (#12058) Adds CLI related configs within the Nexus test build (`openthread-core-nexus-config.h`) to support fuzz testing of the CLI module. The following configurations are added: - `OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH` is increased to 800 to handle potentially long input strings generated by the fuzzer without truncation. - `OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_ENABLE` is enabled to log all input and output through the CLI. This is helpful for debugging and analyzing fuzzer-generated logs. --- tests/nexus/openthread-core-nexus-config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/nexus/openthread-core-nexus-config.h b/tests/nexus/openthread-core-nexus-config.h index 75a8682f9..3194e98ce 100644 --- a/tests/nexus/openthread-core-nexus-config.h +++ b/tests/nexus/openthread-core-nexus-config.h @@ -136,4 +136,9 @@ #define OPENTHREAD_CONFIG_TREL_USE_HEAP_ENABLE 1 #define OPENTHREAD_CONFIG_UPTIME_ENABLE 1 +// CLI configs +#define OPENTHREAD_CONFIG_CLI_MAX_LINE_LENGTH 800 +#define OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_ENABLE 1 +#define OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_LEVEL OT_LOG_LEVEL_INFO + #endif /* OT_CORE_NEXUS_CONFIG_H_ */