Skip to content

Commit

Permalink
[tests] add build tests for BR features (#6570)
Browse files Browse the repository at this point in the history
BR features are tested with "Border Router" CI task but it is built
with gcc by default. This commit adds BR features to posix build
checks which apply clang/clang++.
  • Loading branch information
wgtdkp authored Feb 15, 2023
1 parent 7a6546c commit 3c65092
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions script/check-posix-build-cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ build()
"-DOT_TREL=ON"
)

if [[ $OSTYPE != "darwin"* ]]; then
options+=(
"-DOT_BORDER_ROUTING=ON"
"-DOT_SRP_SERVER=ON"
)
fi

reset_source
"$(dirname "$0")"/cmake-build posix "${options[@]}"
}
Expand Down
2 changes: 1 addition & 1 deletion src/posix/platform/infra_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ uint32_t InfraNetif::GetFlags(void) const

close(sock);

return ifReq.ifr_flags;
return static_cast<uint32_t>(ifReq.ifr_flags);
}

void InfraNetif::CountAddresses(otSysInfraNetIfAddressCounters &aAddressCounters) const
Expand Down

0 comments on commit 3c65092

Please sign in to comment.