SD-Ioctl Test
This test verifies that SD-specific IOCTL calls work from any user mode process as expected.
Test details
Associated requirements |
Device.Storage.Controller.SD.BasicFunction |
Platforms |
Windows RT (ARM-based) Windows 8 (x64) Windows 8 (x86) Windows Server 2012 (x64) Windows RT 8.1 Windows 8.1 x64 Windows 8.1 x86 Windows Server 2012 R2 |
Expected run time |
~5 minutes |
Categories |
Certification Functional |
Type |
Automated |
Running the test
Before you run the test, complete the test setup as described in the test requirements: WDTF System Fundamentals Testing Prerequisites.
The test expects that an SD card is inserted into the host controller and working before the test begins.
Troubleshooting
The test sends several variations of IOCTLs to the disk and validates the response. In the case of an error sending the IOCTL or validating the response, the logs contain information about the errors. To check the WTT trace, perform the following steps:
View Task Log of Run SDIOCTL Test.
Open the log file sdioctltst.wtl.
Check for messages that may solve the issue.
For additional troubleshooting information, see Troubleshooting System Fundamentals Testing.
More information
The test will go through a series of IOCTLs and various parameters surrounding those IOCTLs. It will send them to the underlying disk and validate the response conforms to the requirements. Log information about which IOCTLs and the results are printed as tests cases in the log.
The following is a list of the IOCTLs that are covered in this file:
IOCTL_DISK_MEDIA_REMOVAL
IOCTL_DISK_GET_LENGTH_INFO
IOCTL_DISK_IS_WRITABLE
IOCTL_DISK_VERIFY
IOCTL_STORAGE_CHECK_VERIFY
IOCTL_STORAGE_CHECK_VERIFY2
IOCTL_DISK_CHECK_VERIFY
IOCTL_DISK_GET_CACHE_INFORMATION
IOCTL_STORAGE_GET_HOTPLUG_INFO
IOCTL_STORAGE_SET_HOTPLUG_INFO
IOCTL_STORAGE_GET_DEVICE_NUMBER
IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX
IOCTL_STORAGE_GET_MEDIA_TYPES_EX
IOCTL_STORAGE_QUERY_PROPERTY
IOCTL_SCSI_GET_ADDRESS
IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER
IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL
IOCTL_SFFDISK_DEVICE_COMMAND
IOCTL_SFFDISK_DEVICE_PASSWORD
Command usage
Command | Description |
---|---|
sdioctltst.exe -c "[WDKDeviceID]" |
Run the test for the specified device instance ID. |
Command syntax
Command | Description |
---|---|
sdioctltst.exe |
The command-line options for the test are listed below. |
-d |
This can be either sffdisk or sdbus. |
-n |
The specific test number. |
-c |
The device instance ID of the controller. |
File list
File | Location |
---|---|
sdioctltst.exe |
<[testbinroot]>\NTTest\testsrc\driverstest\storage\sd\ioctl\ |