From bb3b44994ae94e96256cc78970e75e480c483b7c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 18 Sep 2026 11:43:35 -0700 Subject: [PATCH] [toranj] enable OTNS in posix build instead of simulation (#13622) This commit updates Toranj configurations to enable OTNS on the POSIX platform build instead of the simulation platform build. The simulation platform config is used when running Toranj tests (CLI/NCP) and unit tests. Disabling OTNS there prevents verbose OTNS status logs from polluting test outputs. Enabling it in the POSIX config ensures OTNS compilation continues to be validated in CI (under `toranj-build-posix`). --- tests/toranj/openthread-core-toranj-config-posix.h | 2 ++ tests/toranj/openthread-core-toranj-config-simulation.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/toranj/openthread-core-toranj-config-posix.h b/tests/toranj/openthread-core-toranj-config-posix.h index 81916cf1f..a23939e1d 100644 --- a/tests/toranj/openthread-core-toranj-config-posix.h +++ b/tests/toranj/openthread-core-toranj-config-posix.h @@ -101,4 +101,6 @@ #define OPENTHREAD_CONFIG_SRP_CLIENT_COUNTERS_ENABLE 0 +#define OPENTHREAD_CONFIG_OTNS_ENABLE 1 + #endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ diff --git a/tests/toranj/openthread-core-toranj-config-simulation.h b/tests/toranj/openthread-core-toranj-config-simulation.h index c5febffa3..389e029c9 100644 --- a/tests/toranj/openthread-core-toranj-config-simulation.h +++ b/tests/toranj/openthread-core-toranj-config-simulation.h @@ -124,6 +124,6 @@ #define OPENTHREAD_CONFIG_TREL_USE_HEAP_ENABLE 0 -#define OPENTHREAD_CONFIG_OTNS_ENABLE 1 +#define OPENTHREAD_CONFIG_OTNS_ENABLE 0 #endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_