[toranj] add --log-level option to build.sh (#11840)

This change introduces a `--log-level` option to the `build.sh`
script, allowing the `OPENTHREAD_CONFIG_LOG_LEVEL` to be specified at
build time.

The supported log levels are `NONE`, `CRIT`, `WARN`, `NOTE`, `INFO`,
and `DEBG`. The default level is set to `INFO`.

The CI workflow is updated to test builds with all the supported log
levels.
This commit is contained in:
Abtin Keshavarzian
2025-08-22 14:30:39 -07:00
committed by GitHub
parent b6f1252bd8
commit 46e3c15cd7
3 changed files with 48 additions and 2 deletions
+16
View File
@@ -152,6 +152,7 @@ jobs:
run: |
./tests/toranj/build.sh all
ninja test
#- - - - - - - - - - - - - - - - - - - - - - - - - - -
# Validate posix builds with different radio configs
git clean -dfx
./tests/toranj/build.sh ncp-15.4
@@ -165,6 +166,21 @@ jobs:
./tests/toranj/build.sh posix-15.4+trel
git clean -dfx
./tests/toranj/build.sh posix-trel
#- - - - - - - - - - - - - - - - - - - - - - - - - - -
# Log levels
git clean -dfx
./tests/toranj/build.sh --log-level DEBG all
git clean -dfx
./tests/toranj/build.sh --log-level INFO all
git clean -dfx
./tests/toranj/build.sh --log-level NOTE all
git clean -dfx
./tests/toranj/build.sh --log-level WARN all
git clean -dfx
./tests/toranj/build.sh --log-level CRIT all
git clean -dfx
./tests/toranj/build.sh --log-level NONE all
#- - - - - - - - - - - - - - - - - - - - - - - - - - -
git clean -dfx
./tests/toranj/build.sh --enable-plat-key-ref all