Skip to content

Commit

Permalink
[tests] add cli test for 'reset bootloader'
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Oct 24, 2023
1 parent 1be30d1 commit 259a582
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ build_simulation()
build_posix()
{
local version="$1"
local options=("-DOT_MESSAGE_USE_HEAP=ON" "-DOT_THREAD_VERSION=${version}" "-DBUILD_TESTING=ON")
local options=(
"-DBUILD_TESTING=ON"
"-DOT_MESSAGE_USE_HEAP=ON"
"-DOT_PLATFORM_BOOTLOADER_MODE=ON"
"-DOT_THREAD_VERSION=${version}"
)

if [[ ${version} != "1.1" ]]; then
options+=("-DOT_DUA=ON")
Expand Down
3 changes: 3 additions & 0 deletions tests/scripts/expect/cli-reset.exp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ send "panid\n"
expect "0xffff"
expect_line "Done"

send "reset bootloader\n"
expect_line "Error 27: NotCapable"

dispose_all

0 comments on commit 259a582

Please sign in to comment.