Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause
This shell script executes on the DUT (Device-Under-Test) and verifies USB Mass Storage Devices (MSD). The test validation scope includes:
- Successful enumeration of MSD devices
- For each device:
- Determine bound transport driver (
uasorusb-storage) from the MSD interface - Discover associated block devices via sysfs
- Determine bound transport driver (
- Print a table of enumerated devices:
DEVICE VID:PID DRIVER PRODUCT
-------------------------------------------------------------------------------
<dev> <vid:pid> <uas|usb-storage> <product>
- Connect USB MSD peripheral(s) to USB port(s) on DUT.
- Only applicable for USB ports that support Host Mode functionality.
- USB MSD peripherals examples: USB flash drive, external HDD/SSD, etc.
- Copy the test suite to the target device using
scpor any preferred method. - Navigate to the test directory on the target device.
- Run the test script using the test runner or directly.
cd Runner
./run-test.sh usb_msd