openthread: add openthread ci for ESP32-H2

pull/10997/head
Xu Si Yu 2023-03-09 11:46:07 +08:00
rodzic b5b062a55c
commit cdfcd51dce
5 zmienionych plików z 14 dodań i 10 usunięć

Wyświetl plik

@ -178,6 +178,7 @@ build:integration_test:
- "build:example_test-esp32h4"
- "build:example_test-esp32s3"
- "build:example_test-esp32c6"
- "build:example_test-esp32h2"
- "build:example_test"
- build:target_test

Wyświetl plik

@ -892,6 +892,7 @@ example_test_pytest_openthread_br:
- build_pytest_examples_esp32s3
- build_pytest_examples_esp32c6
- build_pytest_examples_esp32h4
- build_pytest_examples_esp32h2
tags:
- esp32h4
- openthread_br

Wyświetl plik

@ -13,10 +13,6 @@ examples/openthread/ot_br:
examples/openthread/ot_cli:
enable:
- if: IDF_TARGET in ["esp32h2", "esp32h4", "esp32c6"]
disable_test:
- if: IDF_TARGET == "esp32h2"
temporary: true
reason: test on esp32h4 and esp32c6
examples/openthread/ot_rcp:
enable:

Wyświetl plik

@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32h2"
CONFIG_IDF_TARGET_ESP32H2=y

Wyświetl plik

@ -77,22 +77,26 @@ default_cli_ot_para = ocf.thread_parameter('router', '', '12', '', False)
@pytest.mark.flaky(reruns=1, reruns_delay=1)
@pytest.mark.parametrize(
'port, config, count, app_path, beta_target, target', [
('/dev/USB_RCP|/dev/USB_CLI|/dev/USB_BR|/dev/USB_CLI_C6', 'rcp|cli|br|cli_c6', 4,
('/dev/USB_RCP|/dev/USB_CLI|/dev/USB_BR|/dev/USB_CLI_C6|/dev/USB_CLI_H2',
'rcp|cli|br|cli_c6|cli_h2', 5,
f'{os.path.join(os.path.dirname(__file__), "ot_rcp")}'
f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}'
f'|{os.path.join(os.path.dirname(__file__), "ot_br")}'
f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}'
f'|{os.path.join(os.path.dirname(__file__), "ot_cli")}',
'esp32h2beta2|esp32h2beta2|esp32s3|esp32c6', 'esp32h4|esp32h4|esp32s3|esp32c6'),
'esp32h2beta2|esp32h2beta2|esp32s3|esp32c6|esp32h2',
'esp32h4|esp32h4|esp32s3|esp32c6|esp32h2'),
],
indirect=True,
)
def test_thread_connect(dut:Tuple[IdfDut, IdfDut, IdfDut, IdfDut]) -> None:
def test_thread_connect(dut:Tuple[IdfDut, IdfDut, IdfDut, IdfDut, IdfDut]) -> None:
br = dut[2]
cli_h2 = dut[1]
cli_h4 = dut[1]
cli_c6 = dut[3]
cli_h2 = dut[4]
dut[0].serial.stop_redirect_thread()
cli_list = [cli_h2, cli_c6]
router_extaddr_list = ['7766554433221101', '7766554433221102']
cli_list = [cli_h4, cli_c6, cli_h2]
router_extaddr_list = ['7766554433221101', '7766554433221102', '7766554433221103']
ocf.reset_thread(br)
for cli in cli_list: