[script] fix Thread version for check-simulation-build (#6781)

The default Thread version has been set to 1.2 when building. Our test
script which checks building hasn't been updated accordingly. This
commit fixes this error.
This commit is contained in:
Li Cao
2021-07-07 12:31:31 -07:00
committed by GitHub
parent 38cb99f0fc
commit 3d45d0a58b
2 changed files with 14 additions and 7 deletions
+12 -5
View File
@@ -94,32 +94,39 @@ build_all_features()
"-DOPENTHREAD_CONFIG_MLR_ENABLE=1"
)
# Build Thread 1.1 with full features and no log
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
reset_source
make -f examples/Makefile-simulation
make -f examples/Makefile-simulation THREAD_VERSION=1.1
# Build Thread 1.1 with full features and full logs
export CPPFLAGS="${options[*]}"
reset_source
make -f examples/Makefile-simulation FULL_LOGS=1
make -f examples/Makefile-simulation THREAD_VERSION=1.1 FULL_LOGS=1
# Build Thread 1.1 with full features and full logs (Logs defined as macros)
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY=1"
make -f examples/Makefile-simulation FULL_LOGS=1
make -f examples/Makefile-simulation THREAD_VERSION=1.1 FULL_LOGS=1
# Build Thread 1.2 with full features and logs
export CPPFLAGS="${options[*]} ${options_1_2[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
reset_source
make -f examples/Makefile-simulation THREAD_VERSION=1.2
# Build Thread 1.2 with full features and full logs
export CPPFLAGS="${options[*]} ${options_1_2[*]}"
reset_source
make -f examples/Makefile-simulation THREAD_VERSION=1.2 FULL_LOGS=1
# Build Thread 1.1 with ASSERT disabled
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_ASSERT_ENABLE=0"
reset_source
make -f examples/Makefile-simulation
make -f examples/Makefile-simulation THREAD_VERSION=1.1
# Build Thread 1.1 OTNS
export CPPFLAGS="${options[*]}"
reset_source
make -f examples/Makefile-simulation OTNS=1
make -f examples/Makefile-simulation THREAD_VERSION=1.1 OTNS=1
}
build_nest_common()
+2 -2
View File
@@ -40,7 +40,7 @@ build_all_features()
{
# Build Thread 1.1 with full features
reset_source
"$(dirname "$0")"/cmake-build simulation
"$(dirname "$0")"/cmake-build simulation -DOT_THREAD_VERSION=1.1
# Build Thread 1.2 with full features
reset_source
@@ -56,7 +56,7 @@ build_all_features()
# Build with Vendor Extension
reset_source
"$(dirname "$0")"/cmake-build simulation -DOT_VENDOR_EXTENSION=../../src/core/common/extension_example.cpp
"$(dirname "$0")"/cmake-build simulation -DOT_THREAD_VERSION=1.1 -DOT_VENDOR_EXTENSION=../../src/core/common/extension_example.cpp
# Build Thread 1.2 with no additional features
reset_source