[tests] add Thread 1.2 all features build test (#4850)

This commit is contained in:
Simon Lin
2020-04-27 23:46:28 -07:00
committed by GitHub
parent baa5fdfebe
commit c169c2c552
+14 -2
View File
@@ -83,13 +83,25 @@ build_all_features()
"-DOPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=1"
)
local options_1_2=(
"-DOPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1"
)
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE"
reset_source
make -f examples/Makefile-simulation
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_DEBG"
export CPPFLAGS="${options[*]}"
reset_source
make -f examples/Makefile-simulation
make -f examples/Makefile-simulation FULL_LOGS=1
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
export CPPFLAGS="${options[*]} ${options_1_2[*]}"
reset_source
make -f examples/Makefile-simulation THREAD_VERSION=1.2 FULL_LOGS=1
export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_ASSERT_ENABLE=0"
reset_source