Commit Graph

676 Commits

Author SHA1 Message Date
Ronnie Sahlberg ce0c912b54 TEST: add simple test for READ12 2012-05-02 18:51:37 +10:00
Ronnie Sahlberg 974738968d Implement READ/WRITE_12/16 and a simple test for read16
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-05-01 21:54:32 +10:00
Ronnie Sahlberg 256415e284 Remove a backup file from an editor that is not really part of the package 2012-05-01 06:54:01 +10:00
Ronnie Sahlberg 568e4ddfcc SBC: Add support for WRITESAME16 and add simple tests using it to unmap blocks from a thin provisioned lun 2012-04-28 14:34:47 +10:00
Ronnie Sahlberg d620cf4fd2 TEST: Add a test to verify that WRITESAME10 to unmap a fraction of a physical block will fail with an error 2012-04-28 14:14:55 +10:00
Ronnie Sahlberg cc0fa15e14 SBC: Add support for WRITESAME10 and a simple test for using writesame10 to unmap blocks from thin provisioned luns 2012-04-28 13:55:37 +10:00
Ronnie Sahlberg 521f0a5a95 TEST: Add a test of various uses for UNMAP but no blocks to actually unmap. 2012-04-22 08:46:14 +10:00
Ronnie Sahlberg dd5f94b2ca Add support for UNMAP command and add a simple test for this opcode 2012-04-22 08:09:15 +10:00
Ronnie Sahlberg 86bf89aabf Add support for READCAPACITY16
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-04-20 17:56:39 +10:00
Ronnie Sahlberg a5d81fc16a fix some compiler warnings 2012-03-10 12:08:05 +11:00
Ronnie Sahlberg 2b521b4d24 TEST-TOOL: add test for read16/rdprotect 2012-02-05 07:56:35 +11:00
Ronnie Sahlberg b4573178ca TEST-TOOL: Add test for read12/rdprotect 2012-02-05 07:52:30 +11:00
Ronnie Sahlberg 0a0dfc4d65 TEST-TOOL: only do the read10 rdprotect test for SBC devices 2012-02-05 07:39:10 +11:00
Ronnie Sahlberg 32ba166040 TEST-TOOL: READ10 with invalid rdprotect should fail with invalid_field_in_cdb 2012-02-05 07:35:33 +11:00
Ronnie Sahlberg 5c273ca58c Add VERIFY10 test for BYTCHK==0
If BYTCHK is zero  the target should NOT perform a compare of data in buffer with data on media, so if we send knowingly bad data to compare with
the target shall not detect the miscompare but return sgtatus good.
2012-01-27 16:35:23 +11:00
Ronnie Sahlberg 62684d641a Add a test to check that if we deliberately send wrong data to the target it will reposnd with sense MISMATCH
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-01-26 16:18:05 +11:00
Ronnie Sahlberg cff996a96d VERIFY10: Add support for VERIFY10. Also add a simple test for verify10 2012-01-26 15:47:14 +11:00
Paolo Bonzini 17319072b1 use automake and libtool
This commits replaces the handwritten makefile with automake+libtool.
There is some hackery needed for the LD_PRELOAD shared library,
but apart from that there is nothing special and it is a large gain in
portability and standardization.

The spec file is modified as little as is needed to properly build
the RPMs.
2011-10-28 17:04:59 +02:00
Ronnie Sahlberg 8bc4150e31 Fix typo in a printed string 2011-04-22 12:23:53 +10:00
Ronnie Sahlberg 9aaf1e5de4 Add tests for invalid READ6 commands 2011-04-22 12:03:51 +10:00
Ronnie Sahlberg 2838e6f6ac Add tests for reading beyong eol for READ6 2011-04-22 11:41:33 +10:00
Ronnie Sahlberg acc2871ab0 Fix the 4 residual tests for read10 2011-04-18 17:38:50 +10:00
Ronnie Sahlberg ea6079d953 run all tests in t0105 even if one of the tests fail 2011-04-18 12:49:14 +10:00
Ronnie Sahlberg 8007398b9b Add a few more tests of READ10 with a mismatch between the amount of data
specified in the CDB XFERLENGTH and the iSCSI EDTL
2011-04-17 06:50:20 +10:00
Ronnie Sahlberg 51ef550414 Add -f to rm when cleaning up to get rid of error message when running make clean twice 2011-04-16 16:49:10 +10: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