Skip to content

Commit

Permalink
chore: Move device pytest to device/esp_tinyusb
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Feb 27, 2024
1 parent b97ab39 commit 2cb87e9
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion device/esp_tinyusb/test_app/main/test_bvalid_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void tud_umount_cb(void)
dev_umounted++;
}

TEST_CASE("bvalid_signal", "[esp_tinyusb]")
TEST_CASE("bvalid_signal", "[esp_tinyusb][usb_device]")
{
unsigned int rounds = DEVICE_DETACH_TEST_ROUNDS;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.usb_device
def test_usb_device(dut) -> None:
def test_usb_device_cdc(dut) -> None:
'''
Running the test locally:
1. Build the testa app for your DUT (ESP32-S2 or S3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
@pytest.mark.esp32s3
@pytest.mark.usb_device
def test_usb_device_esp_tinyusb(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='esp_tinyusb')
dut.run_all_single_board_cases(group='usb_device')
13 changes: 12 additions & 1 deletion host/class/cdc/usb_host_cdc_acm/test_app/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
| Supported Targets | ESP32-S2 | ESP32-S3 |
| ----------------- | -------- | -------- |

# USB: CDC Class test application
# USB: CDC Class test application

## CDC-ACM driver

It tests basic functionality of the driver like open/close/read/write operations,
advanced features like CDC control request, multi-threaded or multi-device access,
as well as reaction to sudden disconnection and other error states.

### Hardware Required

This test expects that TinyUSB dual CDC device with VID = 0x303A and PID = 0x4002
is connected to the USB host.
12 changes: 11 additions & 1 deletion host/class/msc/usb_host_msc/test_app/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
| Supported Targets | ESP32-S2 | ESP32-S3 |
| ----------------- | -------- | -------- |

# USB: CDC Class test application
# USB: CDC Class test application

## MSC driver

Basic functionality such as MSC device install/uninstall, file operations,
raw access to MSC device and sudden disconnect is tested.

### Hardware Required

This test requires two ESP32-S2/S3 boards with a interconnected USB peripherals,
one acting as host running MSC host driver and another MSC device driver (tinyusb).

0 comments on commit 2cb87e9

Please sign in to comment.