ci: update test apps to use run_all_single_board_cases

This commit is contained in:
Marius Vikhammer 2023-03-09 12:15:06 +08:00
parent 2f7aa5abe8
commit 0be8e03907
25 changed files with 47 additions and 103 deletions

View File

@ -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
import pytest
@ -9,6 +9,4 @@ from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.generic
def test_cxx_exception(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -9,6 +9,4 @@ from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.generic
def test_cxx_rtti(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -17,6 +17,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_dac(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -16,6 +16,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_legacy_dac(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -16,9 +16,7 @@ from pytest_embedded import Dut
indirect=True,
)
def test_gptimer(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32c2
@ -32,6 +30,4 @@ def test_gptimer(dut: Dut) -> None:
indirect=True,
)
def test_gptimer_esp32c2_xtal_26mhz(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -21,6 +21,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_i2s(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -15,6 +15,5 @@ from pytest_embedded import Dut
indirect=True,
)
def test_i2s_adc_dac(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
# ADC_DMA_read test takes more than 30 sec
dut.run_all_single_board_cases(timeout=60)

View File

@ -20,6 +20,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_legacy_i2s(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -17,6 +17,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_parlio(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -20,6 +20,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_pulse_cnt(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -7,6 +7,4 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_tls(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -8,6 +8,4 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_http_client(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -8,6 +8,4 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_esp_http_server(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -20,6 +20,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_dma(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -16,6 +16,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_etm(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -15,6 +15,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_i2c_lcd(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -17,6 +17,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_i80_lcd(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -16,6 +16,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_rgb_lcd(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -21,6 +21,13 @@ extern "C" {
#define TEST_LCD_DC_GPIO 4
#define TEST_LCD_PCLK_GPIO 2
#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
#define TEST_LCD_BK_LIGHT_GPIO 18
#define TEST_LCD_RST_GPIO 5

View File

@ -15,6 +15,4 @@ from pytest_embedded import Dut
indirect=True,
)
def test_spi_lcd(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -14,6 +14,4 @@ CONFIGS = [
@pytest.mark.generic
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
def test_esp_pm(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -15,9 +15,7 @@ from pytest_embedded import Dut
indirect=True,
)
def test_psram_esp32(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32s2
@ -31,9 +29,7 @@ def test_psram_esp32(dut: Dut) -> None:
indirect=True,
)
def test_psram_esp32s2(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32s3
@ -47,9 +43,7 @@ def test_psram_esp32s2(dut: Dut) -> None:
indirect=True,
)
def test_psram_esp32s3(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32s3
@ -63,9 +57,7 @@ def test_psram_esp32s3(dut: Dut) -> None:
indirect=True,
)
def test_psram_esp32s3_octal(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32
@ -79,6 +71,4 @@ def test_psram_esp32s3_octal(dut: Dut) -> None:
indirect=True,
)
def test_psram_esp32_psramv0(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -13,9 +13,7 @@ from pytest_embedded import Dut
# @pytest.mark.esp32c2 # esp32c2 are using xtal_26mhz
@pytest.mark.generic
def test_wifi_unit_test(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32c2
@ -28,6 +26,4 @@ def test_wifi_unit_test(dut: Dut) -> None:
indirect=True,
)
def test_wifi_connect_cases_esp32c2_xtal26m(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -8,6 +8,4 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.generic
def test_protocomm(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -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
import pytest
@ -16,9 +16,7 @@ from pytest_embedded import Dut
indirect=True,
)
def test_flash_encryption(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32s3
@ -31,9 +29,7 @@ def test_flash_encryption(dut: Dut) -> None:
indirect=True,
)
def test_flash_encryption_f4r8(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()
@pytest.mark.esp32s3
@ -46,6 +42,4 @@ def test_flash_encryption_f4r8(dut: Dut) -> None:
indirect=True,
)
def test_flash_encryption_f8r8(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()