mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
Merge branch 'test/add_c61_usj_test' into 'master'
test(usj): Add test for usb_seiral_jtag on c61 See merge request espressif/esp-idf!40753
This commit is contained in:
@@ -4,7 +4,7 @@ components/esp_driver_usb_serial_jtag/test_apps/usb_serial_jtag:
|
|||||||
disable:
|
disable:
|
||||||
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET in ["esp32p4", "esp32c5", "esp32c61"]
|
- if: IDF_TARGET in ["esp32p4", "esp32c5"]
|
||||||
temporary: true
|
temporary: true
|
||||||
reason: No runners.
|
reason: No runners.
|
||||||
depends_components:
|
depends_components:
|
||||||
@@ -16,7 +16,7 @@ components/esp_driver_usb_serial_jtag/test_apps/usb_serial_jtag_vfs:
|
|||||||
disable:
|
disable:
|
||||||
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET in ["esp32p4", "esp32c5", "esp32c61"]
|
- if: IDF_TARGET in ["esp32p4", "esp32c5"]
|
||||||
temporary: true
|
temporary: true
|
||||||
reason: No runners.
|
reason: No runners.
|
||||||
depends_components:
|
depends_components:
|
||||||
|
@@ -13,7 +13,7 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
],
|
],
|
||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'], indirect=['target'])
|
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c61'], indirect=['target'])
|
||||||
def test_usb_serial_jtag_dev(dut: Dut) -> None: # type: ignore
|
def test_usb_serial_jtag_dev(dut: Dut) -> None: # type: ignore
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('"test print via usb_serial_jtag driver multiple times in different tasks"')
|
dut.write('"test print via usb_serial_jtag driver multiple times in different tasks"')
|
||||||
@@ -35,7 +35,7 @@ def test_usb_serial_jtag_dev(dut: Dut) -> None: # type: ignore
|
|||||||
],
|
],
|
||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'], indirect=['target'])
|
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c61'], indirect=['target'])
|
||||||
def test_usb_serial_jtag_rom_dev(dut: Dut) -> None: # type: ignore
|
def test_usb_serial_jtag_rom_dev(dut: Dut) -> None: # type: ignore
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('"test rom printf work after driver installed"')
|
dut.write('"test rom printf work after driver installed"')
|
||||||
|
@@ -13,7 +13,7 @@ from pytest_embedded_idf.utils import idf_parametrize
|
|||||||
],
|
],
|
||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'], indirect=['target'])
|
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c61'], indirect=['target'])
|
||||||
def test_usj_vfs_select(dut: Dut) -> None:
|
def test_usj_vfs_select(dut: Dut) -> None:
|
||||||
test_message = 'test123456789!@#%^&*'
|
test_message = 'test123456789!@#%^&*'
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ def test_usj_vfs_select(dut: Dut) -> None:
|
|||||||
],
|
],
|
||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'], indirect=['target'])
|
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c61'], indirect=['target'])
|
||||||
def test_usj_vfs_read_return(dut: Dut) -> None:
|
def test_usj_vfs_read_return(dut: Dut) -> None:
|
||||||
test_message = '!(@*#&(!*@&#((SDasdkjhad\nce'
|
test_message = '!(@*#&(!*@&#((SDasdkjhad\nce'
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ def test_usj_vfs_read_return(dut: Dut) -> None:
|
|||||||
],
|
],
|
||||||
indirect=True,
|
indirect=True,
|
||||||
)
|
)
|
||||||
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'], indirect=['target'])
|
@idf_parametrize('target', ['esp32s3', 'esp32c3', 'esp32c6', 'esp32h2', 'esp32c61'], indirect=['target'])
|
||||||
def test_usj_vfs_read_blocking(dut: Dut) -> None:
|
def test_usj_vfs_read_blocking(dut: Dut) -> None:
|
||||||
test_message = 'testdata'
|
test_message = 'testdata'
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ config ESP_ROM_UART_CLK_IS_XTAL
|
|||||||
|
|
||||||
config ESP_ROM_USB_SERIAL_DEVICE_NUM
|
config ESP_ROM_USB_SERIAL_DEVICE_NUM
|
||||||
int
|
int
|
||||||
default 3
|
default 4
|
||||||
|
|
||||||
config ESP_ROM_HAS_RETARGETABLE_LOCKING
|
config ESP_ROM_HAS_RETARGETABLE_LOCKING
|
||||||
bool
|
bool
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
#define ESP_ROM_HAS_CRC_BE (1) // ROM CRC library supports Big Endian
|
#define ESP_ROM_HAS_CRC_BE (1) // ROM CRC library supports Big Endian
|
||||||
#define ESP_ROM_HAS_JPEG_DECODE (1) // ROM has JPEG decode library
|
#define ESP_ROM_HAS_JPEG_DECODE (1) // ROM has JPEG decode library
|
||||||
#define ESP_ROM_UART_CLK_IS_XTAL (1) // UART clock source is selected to XTAL in ROM
|
#define ESP_ROM_UART_CLK_IS_XTAL (1) // UART clock source is selected to XTAL in ROM
|
||||||
#define ESP_ROM_USB_SERIAL_DEVICE_NUM (3) // UART uses USB_SERIAL_JTAG port in ROM.
|
#define ESP_ROM_USB_SERIAL_DEVICE_NUM (4) // UART uses USB_SERIAL_JTAG port in ROM.
|
||||||
#define ESP_ROM_HAS_RETARGETABLE_LOCKING (1) // ROM was built with retargetable locking
|
#define ESP_ROM_HAS_RETARGETABLE_LOCKING (1) // ROM was built with retargetable locking
|
||||||
#define ESP_ROM_GET_CLK_FREQ (1) // Get clk frequency with rom function `ets_get_cpu_frequency`
|
#define ESP_ROM_GET_CLK_FREQ (1) // Get clk frequency with rom function `ets_get_cpu_frequency`
|
||||||
#define ESP_ROM_HAS_RVFPLIB (1) // ROM has the rvfplib
|
#define ESP_ROM_HAS_RVFPLIB (1) // ROM has the rvfplib
|
||||||
|
Reference in New Issue
Block a user