mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'ci/driver_single_board' into 'master'
ci: update test apps to use run_all_single_board_cases See merge request espressif/esp-idf!22669
This commit is contained in:
commit
75591a8a13
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -9,6 +9,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_cxx_exception(dut: Dut) -> None:
|
def test_cxx_exception(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -9,6 +9,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_cxx_rtti(dut: Dut) -> None:
|
def test_cxx_rtti(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -17,6 +17,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_dac(dut: Dut) -> None:
|
def test_dac(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -16,6 +16,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_dac(dut: Dut) -> None:
|
def test_legacy_dac(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -16,9 +16,7 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_gptimer(dut: Dut) -> None:
|
def test_gptimer(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c2
|
@pytest.mark.esp32c2
|
||||||
@ -32,6 +30,4 @@ def test_gptimer(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_gptimer_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
def test_gptimer_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -21,6 +21,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_i2s(dut: Dut) -> None:
|
def test_i2s(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -15,6 +15,5 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_i2s_adc_dac(dut: Dut) -> None:
|
def test_i2s_adc_dac(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
# ADC_DMA_read test takes more than 30 sec
|
||||||
dut.write('*')
|
dut.run_all_single_board_cases(timeout=60)
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -20,6 +20,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_legacy_i2s(dut: Dut) -> None:
|
def test_legacy_i2s(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -17,6 +17,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_parlio(dut: Dut) -> None:
|
def test_parlio(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -20,6 +20,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_pulse_cnt(dut: Dut) -> None:
|
def test_pulse_cnt(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -7,6 +7,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_esp_tls(dut: Dut) -> None:
|
def test_esp_tls(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -8,6 +8,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_esp_http_client(dut: Dut) -> None:
|
def test_esp_http_client(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -8,6 +8,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_esp_http_server(dut: Dut) -> None:
|
def test_esp_http_server(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -20,6 +20,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_dma(dut: Dut) -> None:
|
def test_dma(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -16,6 +16,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_etm(dut: Dut) -> None:
|
def test_etm(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -15,6 +15,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_i2c_lcd(dut: Dut) -> None:
|
def test_i2c_lcd(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -17,6 +17,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_i80_lcd(dut: Dut) -> None:
|
def test_i80_lcd(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -16,6 +16,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_rgb_lcd(dut: Dut) -> None:
|
def test_rgb_lcd(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -21,6 +21,13 @@ extern "C" {
|
|||||||
#define TEST_LCD_DC_GPIO 4
|
#define TEST_LCD_DC_GPIO 4
|
||||||
#define TEST_LCD_PCLK_GPIO 2
|
#define TEST_LCD_PCLK_GPIO 2
|
||||||
#define TEST_LCD_DATA0_GPIO 1
|
#define TEST_LCD_DATA0_GPIO 1
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||||
|
#define TEST_LCD_BK_LIGHT_GPIO 18
|
||||||
|
#define TEST_LCD_RST_GPIO 5
|
||||||
|
#define TEST_LCD_CS_GPIO 0
|
||||||
|
#define TEST_LCD_DC_GPIO 1
|
||||||
|
#define TEST_LCD_PCLK_GPIO 2
|
||||||
|
#define TEST_LCD_DATA0_GPIO 4
|
||||||
#else
|
#else
|
||||||
#define TEST_LCD_BK_LIGHT_GPIO 18
|
#define TEST_LCD_BK_LIGHT_GPIO 18
|
||||||
#define TEST_LCD_RST_GPIO 5
|
#define TEST_LCD_RST_GPIO 5
|
||||||
|
@ -15,6 +15,4 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_spi_lcd(dut: Dut) -> None:
|
def test_spi_lcd(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -14,6 +14,4 @@ CONFIGS = [
|
|||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
||||||
def test_esp_pm(dut: Dut) -> None:
|
def test_esp_pm(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -15,9 +15,7 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_psram_esp32(dut: Dut) -> None:
|
def test_psram_esp32(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32s2
|
@pytest.mark.esp32s2
|
||||||
@ -31,9 +29,7 @@ def test_psram_esp32(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_psram_esp32s2(dut: Dut) -> None:
|
def test_psram_esp32s2(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@ -47,9 +43,7 @@ def test_psram_esp32s2(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_psram_esp32s3(dut: Dut) -> None:
|
def test_psram_esp32s3(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@ -63,9 +57,7 @@ def test_psram_esp32s3(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_psram_esp32s3_octal(dut: Dut) -> None:
|
def test_psram_esp32s3_octal(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@ -79,6 +71,4 @@ def test_psram_esp32s3_octal(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_psram_esp32_psramv0(dut: Dut) -> None:
|
def test_psram_esp32_psramv0(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -13,9 +13,7 @@ from pytest_embedded import Dut
|
|||||||
# @pytest.mark.esp32c2 # esp32c2 are using xtal_26mhz
|
# @pytest.mark.esp32c2 # esp32c2 are using xtal_26mhz
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_wifi_unit_test(dut: Dut) -> None:
|
def test_wifi_unit_test(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32c2
|
@pytest.mark.esp32c2
|
||||||
@ -28,6 +26,4 @@ def test_wifi_unit_test(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_wifi_connect_cases_esp32c2_xtal26m(dut: Dut) -> None:
|
def test_wifi_connect_cases_esp32c2_xtal26m(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -8,6 +8,4 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_protocomm(dut: Dut) -> None:
|
def test_protocomm(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -16,9 +16,7 @@ from pytest_embedded import Dut
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_flash_encryption(dut: Dut) -> None:
|
def test_flash_encryption(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@ -31,9 +29,7 @@ def test_flash_encryption(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_flash_encryption_f4r8(dut: Dut) -> None:
|
def test_flash_encryption_f4r8(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@ -46,6 +42,4 @@ def test_flash_encryption_f4r8(dut: Dut) -> None:
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
def test_flash_encryption_f8r8(dut: Dut) -> None:
|
def test_flash_encryption_f8r8(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.run_all_single_board_cases()
|
||||||
dut.write('*')
|
|
||||||
dut.expect_unity_test_output()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user