mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +00:00
[nexus] add '1_1' prefix to nexus test filenames (#12569)
This commit renames all nexus test files and updates corresponding configuration and source files to include a '1_1_' prefix. The '1_1' prefix represents the Thread 1.1 test plan. This change prepares the nexus test suite for the addition of tests from the Thread 1.2, 1.3, and 1.4 test plans, ensuring a clear and organized structure for multi-version specification testing. Changes include: - Renaming test_<num>.cpp to test_1_1_<num>.cpp. - Renaming verify_<num>.py to verify_1_1_<num>.py. - Updating CMakeLists.txt to reflect new test names. - Updating run_nexus_tests.sh for default tests and variants. - Updating hardcoded JSON output filenames in C++ test sources. - Updating testcase name identification in Python verification scripts.
This commit is contained in:
+96
-96
@@ -118,102 +118,102 @@ endmacro()
|
||||
#----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Cert tests
|
||||
ot_nexus_test(5_1_1 "cert;nexus")
|
||||
ot_nexus_test(5_1_2 "cert;nexus")
|
||||
ot_nexus_test(5_1_3 "cert;nexus")
|
||||
ot_nexus_test(5_1_4 "cert;nexus")
|
||||
ot_nexus_test(5_1_5 "cert;nexus")
|
||||
ot_nexus_test(5_1_6 "cert;nexus")
|
||||
ot_nexus_test(5_1_7 "cert;nexus")
|
||||
ot_nexus_test(5_1_8 "cert;nexus")
|
||||
ot_nexus_test(5_1_9 "cert;nexus")
|
||||
ot_nexus_test(5_1_10 "cert;nexus")
|
||||
ot_nexus_test(5_1_11 "cert;nexus")
|
||||
ot_nexus_test(5_1_12 "cert;nexus")
|
||||
ot_nexus_test(5_1_13 "cert;nexus")
|
||||
ot_nexus_test(5_2_1 "cert;nexus")
|
||||
ot_nexus_test(5_2_3 "cert;nexus")
|
||||
ot_nexus_test(5_2_4 "cert;nexus")
|
||||
ot_nexus_test(5_2_5 "cert;nexus")
|
||||
ot_nexus_test(5_2_6 "cert;nexus")
|
||||
ot_nexus_test(5_2_7 "cert;nexus")
|
||||
ot_nexus_test(5_3_1 "cert;nexus")
|
||||
ot_nexus_test(5_3_2 "cert;nexus")
|
||||
ot_nexus_test(5_3_3 "cert;nexus")
|
||||
ot_nexus_test(5_3_4 "cert;nexus")
|
||||
ot_nexus_test(5_3_5 "cert;nexus")
|
||||
ot_nexus_test(5_3_6 "cert;nexus")
|
||||
ot_nexus_test(5_3_7 "cert;nexus")
|
||||
ot_nexus_test(5_3_8 "cert;nexus")
|
||||
ot_nexus_test(5_3_9 "cert;nexus")
|
||||
ot_nexus_test(5_3_10 "cert;nexus")
|
||||
ot_nexus_test(5_3_11 "cert;nexus")
|
||||
ot_nexus_test(5_5_1 "cert;nexus")
|
||||
ot_nexus_test(5_5_2 "cert;nexus")
|
||||
ot_nexus_test(5_5_3 "cert;nexus")
|
||||
ot_nexus_test(5_5_4_1 "cert;nexus")
|
||||
ot_nexus_test(5_5_4_2 "cert;nexus")
|
||||
ot_nexus_test(5_5_5 "cert;nexus")
|
||||
ot_nexus_test(5_5_7 "cert;nexus")
|
||||
ot_nexus_test(5_6_1 "cert;nexus")
|
||||
ot_nexus_test(5_6_2 "cert;nexus")
|
||||
ot_nexus_test(5_6_3 "cert;nexus")
|
||||
ot_nexus_test(5_6_4 "cert;nexus")
|
||||
ot_nexus_test(5_6_5 "cert;nexus")
|
||||
ot_nexus_test(5_6_6 "cert;nexus")
|
||||
ot_nexus_test(5_6_7 "cert;nexus")
|
||||
ot_nexus_test(5_6_9 "cert;nexus")
|
||||
ot_nexus_test(5_7_1 "cert;nexus")
|
||||
ot_nexus_test(5_7_2 "cert;nexus")
|
||||
ot_nexus_test(5_7_3 "cert;nexus")
|
||||
ot_nexus_test(5_8_2 "cert;nexus")
|
||||
ot_nexus_test(5_8_3 "cert;nexus")
|
||||
ot_nexus_test(5_8_4 "cert;nexus")
|
||||
ot_nexus_test(6_1_1 "cert;nexus")
|
||||
ot_nexus_test(6_1_2 "cert;nexus")
|
||||
ot_nexus_test(6_1_3 "cert;nexus")
|
||||
ot_nexus_test(6_1_4 "cert;nexus")
|
||||
ot_nexus_test(6_1_5 "cert;nexus")
|
||||
ot_nexus_test(6_1_6 "cert;nexus")
|
||||
ot_nexus_test(6_1_7 "cert;nexus")
|
||||
ot_nexus_test(6_2_1 "cert;nexus")
|
||||
ot_nexus_test(6_2_2 "cert;nexus")
|
||||
ot_nexus_test(6_3_1 "cert;nexus")
|
||||
ot_nexus_test(6_3_2 "cert;nexus")
|
||||
ot_nexus_test(6_4_1 "cert;nexus")
|
||||
ot_nexus_test(6_4_2 "cert;nexus")
|
||||
ot_nexus_test(6_5_1 "cert;nexus")
|
||||
ot_nexus_test(6_5_2 "cert;nexus")
|
||||
ot_nexus_test(6_5_3 "cert;nexus")
|
||||
ot_nexus_test(6_6_1 "cert;nexus")
|
||||
ot_nexus_test(6_6_2 "cert;nexus")
|
||||
ot_nexus_test(7_1_1 "cert;nexus")
|
||||
ot_nexus_test(7_1_2 "cert;nexus")
|
||||
ot_nexus_test(7_1_3 "cert;nexus")
|
||||
ot_nexus_test(7_1_4 "cert;nexus")
|
||||
ot_nexus_test(7_1_5 "cert;nexus")
|
||||
ot_nexus_test(7_1_6 "cert;nexus")
|
||||
ot_nexus_test(7_1_7 "cert;nexus")
|
||||
ot_nexus_test(7_1_8 "cert;nexus")
|
||||
ot_nexus_test(9_2_1 "cert;nexus")
|
||||
ot_nexus_test(9_2_2 "cert;nexus")
|
||||
ot_nexus_test(9_2_3 "cert;nexus")
|
||||
ot_nexus_test(9_2_4 "cert;nexus")
|
||||
ot_nexus_test(9_2_5 "cert;nexus")
|
||||
ot_nexus_test(9_2_6 "cert;nexus")
|
||||
ot_nexus_test(9_2_7 "cert;nexus")
|
||||
ot_nexus_test(9_2_8 "cert;nexus")
|
||||
ot_nexus_test(9_2_9 "cert;nexus")
|
||||
ot_nexus_test(9_2_10 "cert;nexus")
|
||||
ot_nexus_test(9_2_11 "cert;nexus")
|
||||
ot_nexus_test(9_2_12 "cert;nexus")
|
||||
ot_nexus_test(9_2_13 "cert;nexus")
|
||||
ot_nexus_test(9_2_14 "cert;nexus")
|
||||
ot_nexus_test(9_2_15 "cert;nexus")
|
||||
ot_nexus_test(9_2_16 "cert;nexus")
|
||||
ot_nexus_test(9_2_17 "cert;nexus")
|
||||
ot_nexus_test(9_2_18 "cert;nexus")
|
||||
ot_nexus_test(9_2_19 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_8 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_9 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_10 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_11 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_12 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_1_13 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_2_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_8 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_9 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_10 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_3_11 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_4_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_4_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_5_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_6_9 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_7_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_7_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_7_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_8_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_8_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_5_8_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_1_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_2_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_2_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_3_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_3_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_4_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_4_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_5_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_5_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_5_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_6_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_6_6_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_7_1_8 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_1 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_2 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_3 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_4 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_5 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_6 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_7 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_8 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_9 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_10 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_11 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_12 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_13 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_14 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_15 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_16 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_17 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_18 "cert;nexus")
|
||||
ot_nexus_test(1_1_9_2_19 "cert;nexus")
|
||||
|
||||
# Misc tests
|
||||
ot_nexus_test(border_admitter "core;nexus")
|
||||
|
||||
+103
-103
@@ -48,108 +48,108 @@ NEXUS_BIN_DIR="${BUILD_DIR}/tests/nexus"
|
||||
|
||||
# Default test list if no arguments are provided
|
||||
DEFAULT_TESTS=(
|
||||
"5_1_1"
|
||||
"5_1_2"
|
||||
"5_1_3"
|
||||
"5_1_4"
|
||||
"5_1_5"
|
||||
"5_1_6"
|
||||
"5_1_7"
|
||||
"5_1_8"
|
||||
"5_1_9"
|
||||
"5_1_10"
|
||||
"5_1_11"
|
||||
"5_1_12"
|
||||
"5_1_13"
|
||||
"5_2_1"
|
||||
"5_2_3"
|
||||
"5_2_4"
|
||||
"5_2_5"
|
||||
"5_2_6"
|
||||
"5_2_7"
|
||||
"5_3_1"
|
||||
"5_3_2"
|
||||
"5_3_3"
|
||||
"5_3_4"
|
||||
"5_3_5"
|
||||
"5_3_6"
|
||||
"5_3_7"
|
||||
"5_3_8"
|
||||
"5_3_9"
|
||||
"5_3_10"
|
||||
"5_3_11"
|
||||
"5_5_1"
|
||||
"5_5_2"
|
||||
"5_5_3"
|
||||
"5_5_4_1"
|
||||
"5_5_4_2"
|
||||
"5_5_5"
|
||||
"5_5_7"
|
||||
"5_6_1"
|
||||
"5_6_2"
|
||||
"5_6_3"
|
||||
"5_6_4"
|
||||
"5_6_5"
|
||||
"5_6_6"
|
||||
"5_6_7"
|
||||
"5_6_9"
|
||||
"5_7_1"
|
||||
"5_7_2"
|
||||
"5_7_3"
|
||||
"5_8_2"
|
||||
"5_8_3"
|
||||
"5_8_4"
|
||||
"6_1_1_A"
|
||||
"6_1_1_B"
|
||||
"6_1_2_A"
|
||||
"6_1_2_B"
|
||||
"6_1_3_A"
|
||||
"6_1_3_B"
|
||||
"6_1_4"
|
||||
"6_1_5"
|
||||
"6_1_6"
|
||||
"6_1_7"
|
||||
"6_2_1_A"
|
||||
"6_2_1_B"
|
||||
"6_2_2"
|
||||
"6_3_1_A"
|
||||
"6_3_1_B"
|
||||
"6_3_2"
|
||||
"6_4_1_A"
|
||||
"6_4_1_B"
|
||||
"6_4_2"
|
||||
"6_5_1"
|
||||
"6_5_2"
|
||||
"6_5_3"
|
||||
"6_6_1"
|
||||
"6_6_2"
|
||||
"7_1_1"
|
||||
"7_1_2"
|
||||
"7_1_3"
|
||||
"7_1_4"
|
||||
"7_1_5"
|
||||
"7_1_6"
|
||||
"7_1_7"
|
||||
"7_1_8"
|
||||
"9_2_1"
|
||||
"9_2_2"
|
||||
"9_2_3"
|
||||
"9_2_4"
|
||||
"9_2_5"
|
||||
"9_2_6"
|
||||
"9_2_7"
|
||||
"9_2_8"
|
||||
"9_2_9"
|
||||
"9_2_10"
|
||||
"9_2_11"
|
||||
"9_2_12"
|
||||
"9_2_13"
|
||||
"9_2_14"
|
||||
"9_2_15"
|
||||
"9_2_16"
|
||||
"9_2_17"
|
||||
"9_2_18"
|
||||
"9_2_19"
|
||||
"1_1_5_1_1"
|
||||
"1_1_5_1_2"
|
||||
"1_1_5_1_3"
|
||||
"1_1_5_1_4"
|
||||
"1_1_5_1_5"
|
||||
"1_1_5_1_6"
|
||||
"1_1_5_1_7"
|
||||
"1_1_5_1_8"
|
||||
"1_1_5_1_9"
|
||||
"1_1_5_1_10"
|
||||
"1_1_5_1_11"
|
||||
"1_1_5_1_12"
|
||||
"1_1_5_1_13"
|
||||
"1_1_5_2_1"
|
||||
"1_1_5_2_3"
|
||||
"1_1_5_2_4"
|
||||
"1_1_5_2_5"
|
||||
"1_1_5_2_6"
|
||||
"1_1_5_2_7"
|
||||
"1_1_5_3_1"
|
||||
"1_1_5_3_2"
|
||||
"1_1_5_3_3"
|
||||
"1_1_5_3_4"
|
||||
"1_1_5_3_5"
|
||||
"1_1_5_3_6"
|
||||
"1_1_5_3_7"
|
||||
"1_1_5_3_8"
|
||||
"1_1_5_3_9"
|
||||
"1_1_5_3_10"
|
||||
"1_1_5_3_11"
|
||||
"1_1_5_5_1"
|
||||
"1_1_5_5_2"
|
||||
"1_1_5_5_3"
|
||||
"1_1_5_5_4_1"
|
||||
"1_1_5_5_4_2"
|
||||
"1_1_5_5_5"
|
||||
"1_1_5_5_7"
|
||||
"1_1_5_6_1"
|
||||
"1_1_5_6_2"
|
||||
"1_1_5_6_3"
|
||||
"1_1_5_6_4"
|
||||
"1_1_5_6_5"
|
||||
"1_1_5_6_6"
|
||||
"1_1_5_6_7"
|
||||
"1_1_5_6_9"
|
||||
"1_1_5_7_1"
|
||||
"1_1_5_7_2"
|
||||
"1_1_5_7_3"
|
||||
"1_1_5_8_2"
|
||||
"1_1_5_8_3"
|
||||
"1_1_5_8_4"
|
||||
"1_1_6_1_1_A"
|
||||
"1_1_6_1_1_B"
|
||||
"1_1_6_1_2_A"
|
||||
"1_1_6_1_2_B"
|
||||
"1_1_6_1_3_A"
|
||||
"1_1_6_1_3_B"
|
||||
"1_1_6_1_4"
|
||||
"1_1_6_1_5"
|
||||
"1_1_6_1_6"
|
||||
"1_1_6_1_7"
|
||||
"1_1_6_2_1_A"
|
||||
"1_1_6_2_1_B"
|
||||
"1_1_6_2_2"
|
||||
"1_1_6_3_1_A"
|
||||
"1_1_6_3_1_B"
|
||||
"1_1_6_3_2"
|
||||
"1_1_6_4_1_A"
|
||||
"1_1_6_4_1_B"
|
||||
"1_1_6_4_2"
|
||||
"1_1_6_5_1"
|
||||
"1_1_6_5_2"
|
||||
"1_1_6_5_3"
|
||||
"1_1_6_6_1"
|
||||
"1_1_6_6_2"
|
||||
"1_1_7_1_1"
|
||||
"1_1_7_1_2"
|
||||
"1_1_7_1_3"
|
||||
"1_1_7_1_4"
|
||||
"1_1_7_1_5"
|
||||
"1_1_7_1_6"
|
||||
"1_1_7_1_7"
|
||||
"1_1_7_1_8"
|
||||
"1_1_9_2_1"
|
||||
"1_1_9_2_2"
|
||||
"1_1_9_2_3"
|
||||
"1_1_9_2_4"
|
||||
"1_1_9_2_5"
|
||||
"1_1_9_2_6"
|
||||
"1_1_9_2_7"
|
||||
"1_1_9_2_8"
|
||||
"1_1_9_2_9"
|
||||
"1_1_9_2_10"
|
||||
"1_1_9_2_11"
|
||||
"1_1_9_2_12"
|
||||
"1_1_9_2_13"
|
||||
"1_1_9_2_14"
|
||||
"1_1_9_2_15"
|
||||
"1_1_9_2_16"
|
||||
"1_1_9_2_17"
|
||||
"1_1_9_2_18"
|
||||
"1_1_9_2_19"
|
||||
)
|
||||
|
||||
# Use provided arguments or the default test list
|
||||
@@ -239,7 +239,7 @@ run_test()
|
||||
expanded_tests=()
|
||||
for t in "${TESTS_TO_RUN[@]}"; do
|
||||
case "$t" in
|
||||
6_1_1 | 6_1_2 | 6_1_3 | 6_1_6 | 6_2_1 | 6_2_2 | 6_3_1 | 6_3_2 | 6_4_1 | 6_4_2 | 6_5_1 | 6_5_2 | 6_5_3 | 6_6_1 | 6_6_2 | 9_2_1 | 9_2_3 | 9_2_4 | 9_2_19)
|
||||
1_1_6_1_1 | 1_1_6_1_2 | 1_1_6_1_3 | 1_1_6_1_6 | 1_1_6_2_1 | 1_1_6_2_2 | 1_1_6_3_1 | 1_1_6_3_2 | 1_1_6_4_1 | 1_1_6_4_2 | 1_1_6_5_1 | 1_1_6_5_2 | 1_1_6_5_3 | 1_1_6_6_1 | 1_1_6_6_2 | 1_1_9_2_1 | 1_1_9_2_3 | 1_1_9_2_4 | 1_1_9_2_19)
|
||||
expanded_tests+=("${t}_A" "${t}_B")
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
### 5.3.1 SSED Attachment
|
||||
|
||||
#### 5.3.1.1 Topology
|
||||
*(Note: The specific topology diagram is not included in the provided text, but it involves a Leader/DUT, Router_1, and SSED_1.)*
|
||||
|
||||
#### 5.3.1.2 Purpose & Description
|
||||
The purpose of this test is to validate that the DUT can successfully support a SSED that establishes CSL Synchronization after attach using Child Update Request.
|
||||
|
||||
**Specification Reference:** 4.6.5.2
|
||||
|
||||
#### 5.3.1.3 Test Procedure Description
|
||||
|
||||
**Step 1: All**
|
||||
* **Description:** Topology formation: DUT, Router_1, SSED_1.
|
||||
* **Pass Criteria:** N/A.
|
||||
|
||||
**Step 2: SSED_1**
|
||||
* **Description:** Automatically attaches to the DUT. Automatically initiates a CSL connection via a MLE Child Update Request that contains the CSL IEs and the CSL Synchronized Timeout TLV.
|
||||
* **Pass Criteria:** N/A.
|
||||
|
||||
**Step 3: Leader (DUT)**
|
||||
* **Description:** Automatically completes the CSL connection with SSED_1 by unicasting MLE Child Update Response.
|
||||
* **Pass Criteria:** The DUT MUST unicast MLE Child Update Response to SSED_1.
|
||||
* The Frame Version of the packet MUST be: IEEE Std 802.15.4-2015 (value = 0b10).
|
||||
|
||||
**Step 4: Router_1**
|
||||
* **Description:** Harness verifies connectivity by instructing the device to send an ICMPv6 Echo Request to the SSED_1 mesh-local address (via the DUT).
|
||||
* **Pass Criteria:**
|
||||
* The DUT MUST forward the ICMPv6 Echo Request to SSED_1.
|
||||
* The Frame Version of the packet MUST be: IEEE Std 802.15.4-2015 (value = 0b10).
|
||||
* SSED_1 MUST NOT send a MAC Data Request prior to receiving the ICMPv6 Echo Request from the Leader.
|
||||
* Router_1 MUST receive an ICMPv6 Echo Response from SSED_1.
|
||||
|
||||
*(End of Test Case)*
|
||||
@@ -152,7 +152,7 @@ void Test5_1_1(void)
|
||||
Log("Step 11.2: Sending Echo Request from Leader to Router Link-Local");
|
||||
nexus.SendAndVerifyEchoRequest(leader, router.Get<Mle::Mle>().GetLinkLocalAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -200,7 +200,7 @@ void Test5_1_10(void)
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().IsChild());
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().GetParent().GetExtAddress() == router1.Get<Mac::Mac>().GetExtAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_10.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_10.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -235,7 +235,7 @@ void Test5_1_11(void)
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().IsChild());
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().GetParent().GetExtAddress() == reed1.Get<Mac::Mac>().GetExtAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_11.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_11.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -165,7 +165,7 @@ void Test5_1_12(void)
|
||||
*/
|
||||
nexus.AdvanceTime(kLinkSyncTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_12.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_12.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -172,7 +172,7 @@ void Test5_1_13(void)
|
||||
|
||||
VerifyOrQuit(router.Get<Mle::Mle>().IsRouter());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_13.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_13.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -189,7 +189,7 @@ void Test5_1_2(void)
|
||||
*/
|
||||
nexus.AdvanceTime(kEchoRequestWaitTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -225,7 +225,7 @@ void Test5_1_3(void)
|
||||
* - Pass Criteria: N/A
|
||||
*/
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -214,7 +214,7 @@ void Test5_1_4(void)
|
||||
nexus.AdvanceTime(kAttachToRouterTime);
|
||||
VerifyOrQuit(router2.Get<Mle::Mle>().IsRouter());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -202,7 +202,7 @@ void Test5_1_5(void)
|
||||
Log("Router_1 re-joined after ID_REUSE_DELAY with Router ID: %u", thirdRouterId);
|
||||
VerifyOrQuit(thirdRouterId == secondRouterId, "Router ID was not reused after ID_REUSE_DELAY");
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -143,7 +143,7 @@ void Test5_1_6(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(leader, router.Get<Mle::Mle>().GetLinkLocalAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_6.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -244,7 +244,7 @@ void Test5_1_7(void)
|
||||
|
||||
nexus.AdvanceTime(kEchoResponseWaitTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -208,7 +208,7 @@ void Test5_1_8(void)
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().IsChild());
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().GetParent().GetExtAddress() == router3.Get<Mac::Mac>().GetExtAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_8.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_8.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -247,7 +247,7 @@ void Test5_1_9(void)
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().IsChild());
|
||||
VerifyOrQuit(dut.Get<Mle::Mle>().GetParent().GetExtAddress() == reed1.Get<Mac::Mac>().GetExtAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_1_9.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_1_9.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -212,7 +212,7 @@ void Test5_2_1(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(leader, reed1.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -198,7 +198,7 @@ void Test5_2_3(void)
|
||||
nexus.AdvanceTime(kWaitTime);
|
||||
VerifyOrQuit(routers[kMaxRouters - 1]->Get<Mle::Mle>().IsChild());
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -268,7 +268,7 @@ void Test5_2_4(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(med1, leader.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -284,7 +284,7 @@ void Test5_2_5(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(med1, reed1.FindMatchingAddress("2002::/64"), 0, 64, kEchoResponseTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -208,7 +208,7 @@ void Test_5_2_6(void)
|
||||
nexus.SendAndVerifyEchoRequest(leader, router1.Get<Mle::Mle>().GetMeshLocalEid(), /* aPayloadSize */ 0,
|
||||
/* aHopLimit */ 64, kEchoResponseWaitTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_6.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -210,7 +210,7 @@ void Test5_2_7(void)
|
||||
*/
|
||||
nexus.AdvanceTime(kAttachToChildTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_2_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_2_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -180,7 +180,7 @@ void Test5_3_1(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(leader, dut.Get<Mle::Mle>().GetLinkLocalAllThreadNodesAddress(), kEchoPayloadSize);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -244,7 +244,7 @@ void Test5_3_10(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(med1, router1.FindMatchingAddress(kPrefix1), 0, kDefaultHopLimit, kEchoResponseTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_10.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_10.json");
|
||||
|
||||
Log("Step 6: Router_2 (DUT)");
|
||||
|
||||
@@ -181,7 +181,7 @@ void Test5_3_11(void)
|
||||
med1.SendEchoRequest(x, kEchoIdentifier);
|
||||
nexus.AdvanceTime(kAqTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_11.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_11.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -209,7 +209,7 @@ void Test5_3_2(void)
|
||||
nexus.SendAndVerifyEchoRequest(leader, multicastAddr, kLargePayloadSize);
|
||||
}
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -258,7 +258,7 @@ void Test5_3_3(void)
|
||||
router1.SendEchoRequest(med1.Get<Mle::Mle>().GetMeshLocalEid(), kIcmpIdentifierStep6b);
|
||||
nexus.AdvanceTime(kEchoResponseWaitTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -190,7 +190,7 @@ void Test5_3_4(void)
|
||||
nexus.AdvanceTime(kEchoProcessingTime);
|
||||
}
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -262,7 +262,7 @@ void Test5_3_5(void)
|
||||
router3.SendEchoRequest(leader.Get<Mle::Mle>().GetMeshLocalEid(), kEchoIdentifier);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -197,7 +197,7 @@ void Test5_3_6(void)
|
||||
VerifyOrQuit(!leader.Get<RouterTable>().IsAllocated(router1Id));
|
||||
VerifyOrQuit(!leader.Get<RouterTable>().IsAllocated(router2Id));
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_6.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -270,7 +270,7 @@ void Test5_3_7(void)
|
||||
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -251,7 +251,7 @@ void Test5_3_8(void)
|
||||
nexus.SendAndVerifyEchoRequest(med1, med2.FindMatchingAddress("2003::/64"), kEchoPayloadSize, kEchoHopLimit,
|
||||
kEchoResponseWaitTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_3_8.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_8.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -190,7 +190,7 @@ void Test5_3_9(void)
|
||||
SuccessOrQuit(sed1.Get<DataPollSender>().SetExternalPollPeriod(kSedPollPeriod));
|
||||
|
||||
// Save test info while all nodes have their addresses.
|
||||
nexus.SaveTestInfo("test_5_3_9.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_3_9.json");
|
||||
|
||||
/**
|
||||
* Step 3: SED_1
|
||||
@@ -206,7 +206,7 @@ void Test5_5_1(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(leader, router1.Get<Mle::Mle>().GetLinkLocalAddress());
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -383,7 +383,7 @@ void Test5_5_2(void)
|
||||
leader.SendEchoRequest(med1.Get<Mle::Mle>().GetLinkLocalAddress(), 0);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -377,7 +377,7 @@ void Test5_5_3(void)
|
||||
med2.SendEchoRequest(med3.Get<Mle::Mle>().GetMeshLocalEid(), kEchoIdentifier);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -218,7 +218,7 @@ void Test5_5_4_1(void)
|
||||
router3.SendEchoRequest(router4.Get<Mle::Mle>().GetMeshLocalEid(), kEchoIdentifier);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_4_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_4_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -265,7 +265,7 @@ void Test5_5_4_2(void)
|
||||
Log("Step 11: Router_4");
|
||||
nexus.SendAndVerifyEchoRequest(router4, router1.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_4_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_4_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -265,7 +265,7 @@ void Test5_5_5(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(*r[1], leader.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kPingTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -296,7 +296,7 @@ void Test5_5_7(void)
|
||||
}
|
||||
}
|
||||
|
||||
nexus.SaveTestInfo("test_5_5_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_5_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -238,7 +238,7 @@ void Test5_6_1(void)
|
||||
nexus.SendAndVerifyEchoRequest(leader, router1.FindMatchingAddress(kPrefix3));
|
||||
nexus.SendAndVerifyEchoRequest(leader, router1.FindMatchingAddress(kPrefix4));
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_1.json");
|
||||
|
||||
Log("Test 5.6.1 passed");
|
||||
}
|
||||
@@ -271,7 +271,7 @@ void Test5_6_2(void)
|
||||
Log("Step 11: Leader (DUT) sends MLE Child Update Response to MED_1 and SED_1.");
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_2.json");
|
||||
Log("Test 5.6.2 passed");
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ void Test5_6_3(void)
|
||||
|
||||
nexus.AdvanceTime(kNetworkDataPropagationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -318,7 +318,7 @@ void Test5_6_4(void)
|
||||
|
||||
nexus.AdvanceTime(2 * kUpdateProcessTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -310,7 +310,7 @@ void Test5_6_5(void)
|
||||
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -454,7 +454,7 @@ void Test5_6_6(void)
|
||||
// Handled automatically by the stack.
|
||||
nexus.AdvanceTime(kShortIntervalTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_6.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -319,7 +319,7 @@ void Test5_6_7(void)
|
||||
*/
|
||||
nexus.AdvanceTime(kReedAdvertisementInterval);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -412,7 +412,7 @@ void Test5_6_9(void)
|
||||
sed1.SendEchoRequest(dest2007_0, kEchoId15);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_6_9.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_6_9.json");
|
||||
Log("Test 5.6.9 passed");
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ void Test5_7_1(void)
|
||||
nullptr, nullptr));
|
||||
nexus.AdvanceTime(kDiagResponseTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_7_1.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_7_1.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -363,7 +363,7 @@ void Test5_7_2(void)
|
||||
Ip6::Address::GetRealmLocalAllNodesMulticast(), kBaseDiagGetTlvs, sizeof(kBaseDiagGetTlvs), nullptr, nullptr));
|
||||
nexus.AdvanceTime(kDiagResponseTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_7_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_7_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -274,7 +274,7 @@ void Test5_7_3(void)
|
||||
// Note: Leader doesn't respond to its own multicast query, so 4 responses.
|
||||
VerifyOrQuit(context.mResponseCount >= 4);
|
||||
|
||||
nexus.SaveTestInfo("test_5_7_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_7_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -169,7 +169,7 @@ void Test5_8_2(void)
|
||||
*/
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_8_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_8_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -174,7 +174,7 @@ void Test5_8_3(void)
|
||||
nexus.AdvanceTime(kMaxAdvertisementTime);
|
||||
VerifyOrQuit(router1.Get<KeyManager>().GetCurrentKeySequence() == kInitialKeySequence + 1);
|
||||
|
||||
nexus.SaveTestInfo("test_5_8_3.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_8_3.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -464,7 +464,7 @@ void Test5_8_4(void)
|
||||
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_5_8_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_5_8_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -214,16 +214,16 @@ int main(int argc, char *argv[])
|
||||
if (argc < 2)
|
||||
{
|
||||
// If no argument, run both topologies.
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyA, "test_6_1_1_A.json");
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyB, "test_6_1_1_B.json");
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyA, "test_1_1_6_1_1_A.json");
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyB, "test_1_1_6_1_1_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_1_1_A.json");
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_1_1_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_1_1_B.json");
|
||||
ot::Nexus::RunTest6_1_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_1_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -286,19 +286,19 @@ int main(int argc, char *argv[])
|
||||
if (argc > 1 && strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
printf("Running Topology A...\n");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_1_2_A.json");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_1_2_A.json");
|
||||
}
|
||||
else if (argc > 1 && strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
printf("Running Topology B...\n");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_1_2_B.json");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_1_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Running Topology A...\n");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyA, "test_6_1_2_A.json");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyA, "test_1_1_6_1_2_A.json");
|
||||
printf("Running Topology B...\n");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyB, "test_6_1_2_B.json");
|
||||
ot::Nexus::RunTest6_1_2(ot::Nexus::kTopologyB, "test_1_1_6_1_2_B.json");
|
||||
}
|
||||
|
||||
printf("All tests passed\n");
|
||||
@@ -251,8 +251,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_1_3(ot::Nexus::kTopologyA, "test_6_1_3_A.json");
|
||||
ot::Nexus::RunTest6_1_3(ot::Nexus::kTopologyB, "test_6_1_3_B.json");
|
||||
ot::Nexus::RunTest6_1_3(ot::Nexus::kTopologyA, "test_1_1_6_1_3_A.json");
|
||||
ot::Nexus::RunTest6_1_3(ot::Nexus::kTopologyB, "test_1_1_6_1_3_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -262,12 +262,12 @@ int main(int argc, char *argv[])
|
||||
if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyA;
|
||||
defaultJsonFile = "test_6_1_3_A.json";
|
||||
defaultJsonFile = "test_1_1_6_1_3_A.json";
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyB;
|
||||
defaultJsonFile = "test_6_1_3_B.json";
|
||||
defaultJsonFile = "test_1_1_6_1_3_B.json";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -278,7 +278,7 @@ void Test6_1_4(void)
|
||||
*/
|
||||
nexus.SendAndVerifyEchoRequest(router3, dut.Get<Mle::Mle>().GetLinkLocalAddress(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_6_1_4.json");
|
||||
nexus.SaveTestInfo("test_1_1_6_1_4.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -233,7 +233,7 @@ void Test6_1_5(void)
|
||||
router1.SendEchoRequest(sed1.Get<Mle::Mle>().GetLinkLocalAddress(), kEchoIdentifier);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_6_1_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_6_1_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -259,8 +259,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_1_6(ot::Nexus::kTopologyA, "test_6_1_6_A.json");
|
||||
ot::Nexus::RunTest6_1_6(ot::Nexus::kTopologyB, "test_6_1_6_B.json");
|
||||
ot::Nexus::RunTest6_1_6(ot::Nexus::kTopologyA, "test_1_1_6_1_6_A.json");
|
||||
ot::Nexus::RunTest6_1_6(ot::Nexus::kTopologyB, "test_1_1_6_1_6_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -270,12 +270,12 @@ int main(int argc, char *argv[])
|
||||
if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyA;
|
||||
defaultJsonFile = "test_6_1_6_A.json";
|
||||
defaultJsonFile = "test_1_1_6_1_6_A.json";
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyB;
|
||||
defaultJsonFile = "test_6_1_6_B.json";
|
||||
defaultJsonFile = "test_1_1_6_1_6_B.json";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -187,7 +187,7 @@ void RunTest6_1_7(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::RunTest6_1_7((argc > 2) ? argv[2] : "test_6_1_7.json");
|
||||
ot::Nexus::RunTest6_1_7((argc > 2) ? argv[2] : "test_1_1_6_1_7.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -176,8 +176,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_2_1(ot::Nexus::kTopologyA, "test_6_2_1_A.json");
|
||||
ot::Nexus::RunTest6_2_1(ot::Nexus::kTopologyB, "test_6_2_1_B.json");
|
||||
ot::Nexus::RunTest6_2_1(ot::Nexus::kTopologyA, "test_1_1_6_2_1_A.json");
|
||||
ot::Nexus::RunTest6_2_1(ot::Nexus::kTopologyB, "test_1_1_6_2_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -187,12 +187,12 @@ int main(int argc, char *argv[])
|
||||
if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyA;
|
||||
defaultJsonFile = "test_6_2_1_A.json";
|
||||
defaultJsonFile = "test_1_1_6_2_1_A.json";
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
topology = ot::Nexus::kTopologyB;
|
||||
defaultJsonFile = "test_6_2_1_B.json";
|
||||
defaultJsonFile = "test_1_1_6_2_1_B.json";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -287,16 +287,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyA, "test_6_2_2_A.json");
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyB, "test_6_2_2_B.json");
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyA, "test_1_1_6_2_2_A.json");
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyB, "test_1_1_6_2_2_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_2_2_A.json");
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_2_2_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_2_2_B.json");
|
||||
ot::Nexus::RunTest_6_2_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_2_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -278,16 +278,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyA, "test_6_3_1_A.json");
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyB, "test_6_3_1_B.json");
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyA, "test_1_1_6_3_1_A.json");
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyB, "test_1_1_6_3_1_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_3_1_A.json");
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_3_1_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_3_1_B.json");
|
||||
ot::Nexus::RunTest6_3_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_3_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -315,16 +315,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyA, "test_6_3_2_A.json");
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyB, "test_6_3_2_B.json");
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyA, "test_1_1_6_3_2_A.json");
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyB, "test_1_1_6_3_2_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_3_2_A.json");
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_3_2_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_3_2_B.json");
|
||||
ot::Nexus::RunTest6_3_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_3_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -245,15 +245,15 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyB, "test_6_4_1.json");
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyB, "test_1_1_6_4_1.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_4_1.json");
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_4_1.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_4_1.json");
|
||||
ot::Nexus::RunTest6_4_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_4_1.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -242,16 +242,16 @@ int main(int argc, char *argv[])
|
||||
if (argc < 2)
|
||||
{
|
||||
// If no argument, run both topologies.
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyA, "test_6_4_2_A.json");
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyB, "test_6_4_2_B.json");
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyA, "test_1_1_6_4_2_A.json");
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyB, "test_1_1_6_4_2_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_4_2_A.json");
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_4_2_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_4_2_B.json");
|
||||
ot::Nexus::RunTest6_4_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_4_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -218,16 +218,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyA, "test_6_5_1_A.json");
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyB, "test_6_5_1_B.json");
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyA, "test_1_1_6_5_1_A.json");
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyB, "test_1_1_6_5_1_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_5_1_A.json");
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_5_1_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_5_1_B.json");
|
||||
ot::Nexus::RunTest6_5_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_5_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -266,16 +266,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyA, "test_6_5_2_A.json");
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyB, "test_6_5_2_B.json");
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyA, "test_1_1_6_5_2_A.json");
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyB, "test_1_1_6_5_2_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_5_2_A.json");
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_5_2_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_5_2_B.json");
|
||||
ot::Nexus::RunTest_6_5_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_5_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -229,16 +229,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyA, "test_6_5_3_A.json");
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyB, "test_6_5_3_B.json");
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyA, "test_1_1_6_5_3_A.json");
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyB, "test_1_1_6_5_3_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_5_3_A.json");
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_5_3_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_5_3_B.json");
|
||||
ot::Nexus::RunTest6_5_3(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_5_3_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -242,16 +242,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyA, "test_6_6_1_A.json");
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyB, "test_6_6_1_B.json");
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyA, "test_1_1_6_6_1_A.json");
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyB, "test_1_1_6_6_1_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_6_1_A.json");
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_6_1_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_6_1_B.json");
|
||||
ot::Nexus::RunTest6_6_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_6_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -243,16 +243,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyA, "test_6_6_2_A.json");
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyB, "test_6_6_2_B.json");
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyA, "test_1_1_6_6_2_A.json");
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyB, "test_1_1_6_6_2_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_6_6_2_A.json");
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_6_6_2_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_6_6_2_B.json");
|
||||
ot::Nexus::RunTest6_6_2(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_6_6_2_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -235,7 +235,7 @@ void Test7_1_1(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::Test7_1_1((argc > 2) ? argv[2] : "test_7_1_1.json");
|
||||
ot::Nexus::Test7_1_1((argc > 2) ? argv[2] : "test_1_1_7_1_1.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -247,7 +247,7 @@ void Test7_1_2(void)
|
||||
Log("Step 10: Leader (DUT)");
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_7_1_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_7_1_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -237,7 +237,7 @@ void Test7_1_3(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::Test7_1_3((argc > 2) ? argv[2] : "test_7_1_3.json");
|
||||
ot::Nexus::Test7_1_3((argc > 2) ? argv[2] : "test_1_1_7_1_3.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -242,7 +242,7 @@ void Test7_1_4(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::Test7_1_4((argc > 2) ? argv[2] : "test_7_1_4.json");
|
||||
ot::Nexus::Test7_1_4((argc > 2) ? argv[2] : "test_1_1_7_1_4.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -260,7 +260,7 @@ void Test7_1_5(void)
|
||||
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_7_1_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_7_1_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -457,7 +457,7 @@ void Test7_1_6(void)
|
||||
nexus.AdvanceTime(kSedEchoResponseDelay);
|
||||
}
|
||||
|
||||
nexus.SaveTestInfo("test_7_1_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_7_1_6.json");
|
||||
}
|
||||
|
||||
} /* namespace Nexus */
|
||||
@@ -551,7 +551,7 @@ void Test7_1_7(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::Test7_1_7((argc > 2) ? argv[2] : "test_7_1_7.json");
|
||||
ot::Nexus::Test7_1_7((argc > 2) ? argv[2] : "test_1_1_7_1_7.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -247,7 +247,7 @@ void Test7_1_8(const char *aJsonFile)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ot::Nexus::Test7_1_8((argc > 2) ? argv[2] : "test_7_1_8.json");
|
||||
ot::Nexus::Test7_1_8((argc > 2) ? argv[2] : "test_1_1_7_1_8.json");
|
||||
printf("All tests passed\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -308,16 +308,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyA, "test_9_2_1_A.json");
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyB, "test_9_2_1_B.json");
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyA, "test_1_1_9_2_1_A.json");
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyB, "test_1_1_9_2_1_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_9_2_1_A.json");
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_9_2_1_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_9_2_1_B.json");
|
||||
ot::Nexus::RunTest9_2_1(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_9_2_1_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -597,7 +597,7 @@ void Test9_2_10(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(leader, router1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_10.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_10.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -571,7 +571,7 @@ void Test9_2_11(void)
|
||||
|
||||
nexus.AdvanceTime(kResponseTime * 5); // Added extra wait at the very end
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_11.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_11.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -310,7 +310,7 @@ void Test9_2_12(void)
|
||||
nexus.SendAndVerifyEchoRequest(leader1, leader2.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
nexus.SendAndVerifyEchoRequest(leader1, med1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_12.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_12.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -312,7 +312,7 @@ void Test9_2_13(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, router1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_13.json", &leader1);
|
||||
nexus.SaveTestInfo("test_1_1_9_2_13.json", &leader1);
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -258,7 +258,7 @@ void Test9_2_14(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, router1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_14.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_14.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -563,7 +563,7 @@ void Test9_2_15(void)
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, dut.Get<Mle::Mle>().GetMeshLocalEid(), kEchoPayloadSize, kEchoHopLimit,
|
||||
kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_15.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_15.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -647,7 +647,7 @@ void Test9_2_16(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, router2.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_16.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_16.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -329,7 +329,7 @@ void Test9_2_17(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(leader2, dut.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_17.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_17.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -517,7 +517,7 @@ void Test9_2_18(void)
|
||||
commissioner.SendEchoRequest(leader.Get<Mle::Mle>().GetMeshLocalEid(), 0);
|
||||
nexus.AdvanceTime(kStabilizationTime);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_18.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_18.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -378,16 +378,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyA, "test_9_2_19_A.json");
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyB, "test_9_2_19_B.json");
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyA, "test_1_1_9_2_19_A.json");
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyB, "test_1_1_9_2_19_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_9_2_19_A.json");
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_9_2_19_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_9_2_19_B.json");
|
||||
ot::Nexus::RunTest9_2_19(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_9_2_19_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -360,7 +360,7 @@ void Test9_2_2(void)
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, leader.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
nexus.AdvanceTime(kResponseTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_2.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_2.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -288,16 +288,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyA, "test_9_2_3_A.json");
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyB, "test_9_2_3_B.json");
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyA, "test_1_1_9_2_3_A.json");
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyB, "test_1_1_9_2_3_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_9_2_3_A.json");
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_9_2_3_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_9_2_3_B.json");
|
||||
ot::Nexus::RunTest9_2_3(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_9_2_3_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -953,16 +953,16 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyA, "test_9_2_4_A.json");
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyB, "test_9_2_4_B.json");
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyA, "test_1_1_9_2_4_A.json");
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyB, "test_1_1_9_2_4_B.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "A") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_9_2_4_A.json");
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyA, (argc > 2) ? argv[2] : "test_1_1_9_2_4_A.json");
|
||||
}
|
||||
else if (strcmp(argv[1], "B") == 0)
|
||||
{
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_9_2_4_B.json");
|
||||
ot::Nexus::RunTest9_2_4(ot::Nexus::kTopologyB, (argc > 2) ? argv[2] : "test_1_1_9_2_4_B.json");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -462,7 +462,7 @@ void Test9_2_5(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(router1, leader.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_5.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_5.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -715,7 +715,7 @@ void Test9_2_6(void)
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, med1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, sed1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_6.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_6.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -655,7 +655,7 @@ void Test9_2_7(void)
|
||||
|
||||
nexus.SendAndVerifyEchoRequest(router, leader.Get<Mle::Mle>().GetMeshLocalEid(), 0, 0, kEchoTimeout);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_7.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_7.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -384,7 +384,7 @@ void Test9_2_8(void)
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, med1.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, sed1.Get<Mle::Mle>().GetMeshLocalEid(), 0, 64, 5000);
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_8.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_8.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
@@ -952,7 +952,7 @@ void Test9_2_9(void)
|
||||
nexus.SendAndVerifyEchoRequest(commissioner, router1.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
nexus.SendAndVerifyEchoRequest(router2, leader.Get<Mle::Mle>().GetMeshLocalEid());
|
||||
|
||||
nexus.SaveTestInfo("test_9_2_9.json");
|
||||
nexus.SaveTestInfo("test_1_1_9_2_9.json");
|
||||
}
|
||||
|
||||
} // namespace Nexus
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user