Skip to content

Commit ee4cf1b

Browse files
committed
Merge branch 'feat/add_ot_br_lib_check_case' into 'master'
feat(openthread): add br library check case Closes TZ-1536 See merge request espressif/esp-idf!36855
2 parents c542692 + 0290c1f commit ee4cf1b

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

examples/openthread/ot_br/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## IDF Component Manager Manifest File
22
dependencies:
33
espressif/esp_ot_cli_extension:
4-
version: "~1.2.0"
4+
version: "~1.3.0"
55
espressif/mdns: "^1.0.3"
66
## Required IDF version
77
idf:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_OPENTHREAD_BR_LIB_CHECK=y

examples/openthread/pytest_otbr.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
# Case 15: Thread network formation and attaching with TREL
6363
# A TREL device forms a Thread network, other TREL devices attach to it, then test ping connection between them.
6464

65+
# Case 16: Thread network BR lib check
66+
# Check BR library compatibility
67+
6568

6669
@pytest.fixture(scope='module', name='Init_avahi')
6770
def fixture_Init_avahi() -> bool:
@@ -928,3 +931,34 @@ def test_trel_connect(dut: Tuple[IdfDut, IdfDut]) -> None:
928931
for trel in trel_list:
929932
ocf.execute_command(trel, 'factoryreset')
930933
time.sleep(3)
934+
935+
936+
# Case 16: Thread network BR lib check
937+
@pytest.mark.supported_targets
938+
@pytest.mark.openthread_br
939+
@pytest.mark.flaky(reruns=1, reruns_delay=1)
940+
@pytest.mark.parametrize(
941+
'config, count, app_path, target, port',
942+
[
943+
pytest.param(
944+
'rcp_uart|br_libcheck',
945+
2,
946+
f'{os.path.join(os.path.dirname(__file__), "ot_rcp")}'
947+
f'|{os.path.join(os.path.dirname(__file__), "ot_br")}',
948+
'esp32c6|esp32s3',
949+
f'{ESPPORT3}|{ESPPORT2}',
950+
id='c6-s3'
951+
),
952+
],
953+
indirect=True,
954+
)
955+
def test_br_lib_check(dut: Tuple[IdfDut, IdfDut]) -> None:
956+
br = dut[1]
957+
dut[0].serial.stop_redirect_thread()
958+
try:
959+
time.sleep(3)
960+
ocf.execute_command(br, 'brlibcheck')
961+
br.expect('The br library compatibility checking passed', timeout=10)
962+
finally:
963+
ocf.execute_command(br, 'factoryreset')
964+
time.sleep(3)

0 commit comments

Comments
 (0)