Commit Graph

7 Commits

Author SHA1 Message Date
Ronnie Sahlberg
ed1c3e1129 TESTS: Fix all 0block tests
Remove the test for accessing 0blocks (transfer length==0) at the end of the device since they were invalid.

SBC says that :
   If the LBA plus the transfer length exceeds the capacity
   of the medium, then the device server shall terminate the
   command with CHECK CONDITION status with the sense key
   set to ILLEGAL REQUEST and the additional sense code
   set to LOGICAL BLOCK ADDRESS OUT OF RANGE.

This means that if TL==0  then a LBA that is the first LBA beyond the end of
device is actually valid.

Improve output for error conditions and harminize all tests
2012-09-10 19:08:57 -07:00
Ronnie Sahlberg
ecbff226b8 Improve tests for READ10/READ12/READ16 2012-06-24 07:55:49 +10:00
Ronnie Sahlberg
d5f646099d READ10/WRITE10: Change these functions to sue the same signatures as the other READ/WRITE
Harmonize the signatures for READ10/WRITE10 to match the ones for READ12/16 and WRITE12/16

This breaks the API/ABI so this forces the next version of the library to bump the major version to 2.0

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-05 19:20:02 +10:00
Ronnie Sahlberg
26873ea6ce TESTS: Improve tests for reading at LBA -1
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-03 10:05:42 +10:00
Ronnie Sahlberg
288fd5e9fe TEST-TOOL: Add a --info argument to print more detailed infor what a test does
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-03 09:08:12 +10:00
Ronnie Sahlberg
a5d81fc16a fix some compiler warnings 2012-03-10 12:08:05 +11:00
Ronnie Sahlberg
a1715ae21a Add a simple SCSI test tool.
For now focused on SBC but should be enhanced to cover other commandsets too
2011-04-16 16:47:38 +10:00