mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 12:11:17 +00:00
[test] migrate tests to cmake (#8929)
This commit migrate tests not targeting autotool to cmake. * removed openthread-test-driver * removed functional tests from autotool based check * corrected file permission of python scripts * added --run-directory to specify directory to collect logs and captures * get test-ot-test-srp-server pass on POSIX platform
This commit is contained in:
+16
-10
@@ -74,36 +74,39 @@ OT_POSIX_SIM_COMMON_OPTIONS=(
|
||||
"-DOT_ANYCAST_LOCATOR=ON"
|
||||
"-DOT_BORDER_AGENT=ON"
|
||||
"-DOT_BORDER_ROUTER=ON"
|
||||
"-DOT_COAP=ON"
|
||||
"-DOT_COAP_BLOCK=ON"
|
||||
"-DOT_COAP_OBSERVE=ON"
|
||||
"-DOT_COAPS=ON"
|
||||
"-DOT_COMMISSIONER=ON"
|
||||
"-DOT_CHANNEL_MANAGER=ON"
|
||||
"-DOT_CHANNEL_MONITOR=ON"
|
||||
"-DOT_CHILD_SUPERVISION=ON"
|
||||
"-DOT_COAP=ON"
|
||||
"-DOT_COAPS=ON"
|
||||
"-DOT_COAP_BLOCK=ON"
|
||||
"-DOT_COAP_OBSERVE=ON"
|
||||
"-DOT_COMMISSIONER=ON"
|
||||
"-DOT_COMPILE_WARNING_AS_ERROR=ON"
|
||||
"-DOT_COVERAGE=ON"
|
||||
"-DOT_DATASET_UPDATER=ON"
|
||||
"-DOT_DHCP6_CLIENT=ON"
|
||||
"-DOT_DHCP6_SERVER=ON"
|
||||
"-DOT_DIAGNOSTIC=ON"
|
||||
"-DOT_DNSSD_SERVER=ON"
|
||||
"-DOT_DNS_CLIENT=ON"
|
||||
"-DOT_ECDSA=ON"
|
||||
"-DOT_HISTORY_TRACKER=ON"
|
||||
"-DOT_IP6_FRAGM=ON"
|
||||
"-DOT_JAM_DETECTION=ON"
|
||||
"-DOT_JOINER=ON"
|
||||
"-DOT_LOG_LEVEL_DYNAMIC=ON"
|
||||
"-DOT_MAC_FILTER=ON"
|
||||
"-DOT_NEIGHBOR_DISCOVERY_AGENT=ON"
|
||||
"-DOT_NETDATA_PUBLISHER=ON"
|
||||
"-DOT_NETDIAG_CLIENT=ON"
|
||||
"-DOT_PING_SENDER=ON"
|
||||
"-DOT_RCP_RESTORATION_MAX_COUNT=2"
|
||||
"-DOT_REFERENCE_DEVICE=ON"
|
||||
"-DOT_SERVICE=ON"
|
||||
"-DOT_SNTP_CLIENT=ON"
|
||||
"-DOT_SRP_CLIENT=ON"
|
||||
"-DOT_COVERAGE=ON"
|
||||
"-DOT_LOG_LEVEL_DYNAMIC=ON"
|
||||
"-DOT_COMPILE_WARNING_AS_ERROR=ON"
|
||||
"-DOT_RCP_RESTORATION_MAX_COUNT=2"
|
||||
"-DOT_SRP_SERVER=ON"
|
||||
"-DOT_UPTIME=ON"
|
||||
)
|
||||
readonly OT_POSIX_SIM_COMMON_OPTIONS
|
||||
@@ -162,8 +165,11 @@ main()
|
||||
options+=("${OT_POSIX_SIM_COMMON_OPTIONS[@]}" "${local_options[@]}")
|
||||
;;
|
||||
simulation)
|
||||
local_options=("-DOT_LINK_RAW=ON"
|
||||
local_options+=(
|
||||
"-DOT_LINK_RAW=ON"
|
||||
"-DOT_DNS_DSO=ON"
|
||||
"-DOT_DNS_CLIENT_OVER_TCP=ON"
|
||||
"-DOT_UDP_FORWARD=ON"
|
||||
)
|
||||
options+=("${OT_POSIX_SIM_COMMON_OPTIONS[@]}" "${local_options[@]}")
|
||||
;;
|
||||
|
||||
+4
-2
@@ -272,6 +272,7 @@ do_cert()
|
||||
do_cert_suite()
|
||||
{
|
||||
export top_builddir="${OT_BUILDDIR}/openthread-simulation-${THREAD_VERSION}"
|
||||
export top_srcdir="${OT_SRCDIR}"
|
||||
|
||||
if [[ ${THREAD_VERSION} != "1.1" ]]; then
|
||||
export top_builddir_1_3_bbr="${OT_BUILDDIR}/openthread-simulation-1.3-bbr"
|
||||
@@ -285,7 +286,8 @@ do_cert_suite()
|
||||
|
||||
sudo modprobe ip6table_filter
|
||||
|
||||
python3 tests/scripts/thread-cert/run_cert_suite.py --multiply "${MULTIPLY:-1}" "$@"
|
||||
mkdir -p ot_testing
|
||||
./tests/scripts/thread-cert/run_cert_suite.py --run-directory ot_testing --multiply "${MULTIPLY:-1}" "$@"
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -389,7 +391,7 @@ do_build_otbr_docker()
|
||||
|
||||
do_pktverify()
|
||||
{
|
||||
python3 ./tests/scripts/thread-cert/pktverify/verify.py "$1"
|
||||
./tests/scripts/thread-cert/pktverify/verify.py "$1"
|
||||
}
|
||||
|
||||
ot_exec_expect_script()
|
||||
|
||||
Reference in New Issue
Block a user