Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.19 KB

File metadata and controls

45 lines (35 loc) · 1.19 KB
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause

USB MSD Validation

Overview

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 (uas or usb-storage) from the MSD interface
    • Discover associated block devices via sysfs
  • Print a table of enumerated devices:
DEVICE    VID:PID   DRIVER            PRODUCT
-------------------------------------------------------------------------------
<dev>     <vid:pid> <uas|usb-storage> <product>

Setup

  • 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.

Usage

Instructions:

  1. Copy the test suite to the target device using scp or any preferred method.
  2. Navigate to the test directory on the target device.
  3. Run the test script using the test runner or directly.

Quick Example

cd Runner
./run-test.sh usb_msd