[scripts] add 1.2 build test without additional features (#5425)

This commit is contained in:
Simon Lin
2020-08-24 11:26:41 -07:00
committed by GitHub
parent d506afca33
commit 04a6a9b925
3 changed files with 18 additions and 4 deletions
+1
View File
@@ -88,6 +88,7 @@ build_all_features()
"-DOPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1"
"-DOPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE=1"
"-DOPENTHREAD_CONFIG_DUA_ENABLE=1"
"-DOPENTHREAD_CONFIG_MLR_ENABLE=1"
)
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
+14 -3
View File
@@ -38,14 +38,25 @@ reset_source()
build_all_features()
{
# Build Thread 1.1 with full features
reset_source
"$(dirname "$0")"/cmake-build simulation
# Build Thread 1.2 with full features
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_ASSERT=OFF
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON
# Build with Vendor Extension
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_VENDOR_EXTENSION=../../src/core/common/extension_example.cpp
# Build Thread 1.2 with no additional features
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_THREAD_VERSION=1.2
# Build Thread 1.2 with full features and OT_ASSERT=OFF
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON -DOT_ASSERT=OFF
}
build_toranj()
+3 -1
View File
@@ -336,10 +336,10 @@ void DuaManager::HandleTimeTick(void)
{
bool attempt = false;
#if OPENTHREAD_CONFIG_DUA_ENABLE
otLogDebgDua("regdelay %d, reregdelay %d, checkdelay %d", mDelay.mFields.mRegistrationDelay,
mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay);
#if OPENTHREAD_CONFIG_DUA_ENABLE
if (mDuaState != kNotExist && TimerMilli::GetNow() > mLastRegistrationTime + Mle::kDuaDadPeriod)
{
mDomainUnicastAddress.mPreferred = true;
@@ -349,6 +349,8 @@ void DuaManager::HandleTimeTick(void)
{
attempt = true;
}
#else
otLogDebgDua("reregdelay %d, checkdelay %d", mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay);
#endif
if ((mDelay.mFields.mCheckDelay > 0) && (--mDelay.mFields.mCheckDelay == 0))