Storage Imports Test

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Automated Test

Overview

The Storage Imports test verifies that a storage adapter driver follows the proper miniport architecture for its bus type. The tool also validates that the driver does not import functions from outside the port driver.

Details

The test is started against a particular device node that is identified by that device node's device instance path. The test queries the interface of that device node for the bus type (by using IOCTL_STORAGE_QUERY_PROPERTY: StorageAdapterDescriptor.) The test determines the driver for the device node by checking the Service property of the device node. The test then determines the type of miniport architecture of the driver and obtains a list of imported functions.

The miniport must match the architecture model that is required for the device's bus type. These architecture model requirements are defined in STORAGE-0002.

Run Time: 60 seconds
Log File: Storimports.wtl
System Restart Required: No
Test Category:
Supported operating systems for Logo or Signature testing:
  • Windows Server 2008

  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program:

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

  • Windows keyboard

  • Two-button pointing device

  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz

  • Hard drive with a minimum of 20 GB available on partition C:

Running Storage Imports Test

Start this test against a device from the Device Console window in DTM. Device Console fills in the test's WDKDeviceID parameter with the instance path of the device that you select. The device that you select should be a storage adapter and should be configured on the test client, with storage attached.

If you want to run the test manually, you must copy the test binaries from their respective locations (listed in the File Manifest section) and run the test by using one of the command line variations that are listed in the following Command Syntax section.

Command Syntax

Command optionDescription

StorImports.exe /device "[DeviceInstancePath]"

Runs the test against a device instance that is currently installed on the computer.

StorImports.exe /driver "[DriverName]" /bustype "[BusType]"

Runs the test against a driver (leave off the file name extension) of a specified bus type. Valid bus types include ATA, Fibre, iSCSI, RAID, SAS, SATA, or SCSI.

 

Code Tour

File Manifest

FileLocation

StorImports.exe

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

StorageDevices.dll

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

Link.exe

...\tests\%ARCHITECTURE%\redist\linker

mspdb80.dll

...\tests\%ARCHITECTURE%\redist\linker

 

Test Assertions

Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements

 

 

Build date: 9/14/2012

Community Additions

ADD
Show: