mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 17:09:51 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user