Ronnie Sahlberg
bdce246bc0
TESTS: Fix trying to free a NULL task.
2013-05-14 23:01:48 -07:00
Ronnie Sahlberg
e28a94ce77
TESTS: Add tests for WriteSame10/16 UNMAP.
...
If UNMAP is available, verify that both LBPME and LBPWS[10] are set.
If unmap is not available, verify that LBPWS[10] is clear.
2013-05-14 22:55:05 -07:00
Ronnie Sahlberg
dc6c603106
TEST: Add SCSI.Unmap.UnmapVPD and see if UNMAP availability matches
...
the VPD settings.
If UNMAP is not available then LBPU must be clear
and if UNMAP is available then both LBPME and LBPU must be set.
2013-05-14 22:35:57 -07:00
Ronnie Sahlberg
dd46f3acf0
TESTS: Keep the LogicalBlockProvisioning VPD around after we read it during
...
test startup.
2013-05-14 20:25:42 -07:00
Ronnie Sahlberg
f49a1beb16
TEST: Add test for the protection information setting in READCAPACITY16
...
If the device does not support PI (INQ->PROTECT) then
verify that PROT_EN, P_TYPE and P_I_EXP are all zero.
If the device does support PI and IF PROT_EN is clear
then verify that both P_TYPE and P_I_EXP are zero.
If the device does support PI and IF PROT_EN is set
then verify that P_TYPE is 0, 1 or 2
2013-05-13 20:03:56 -07:00
Ronnie Sahlberg
d166d27ab8
TESTS: Add a test to start verifying that the BlockLimits VPD page is correct.
...
Verify that the page length matches up with the size of the data in buffer.
Verify that page length is 0x3c if the device claims SBC-3, and 0x0c if not.
If the device claims SBC-3 and if it claims UNMAP support (LBPU)
then we check that both MAXIMUM UNMAP LBA COUNT and
MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT looks sane.
Sane here means >0, <1M or 0xffffffff
If the device claims SBC-3 and if it does not claim UNMAP support (LBPU)
then we check that both MAXIMUM UNMAP LBA COUNT and
MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT are both 0.
2013-05-12 18:43:43 -07:00
Ronnie Sahlberg
bd239db4fa
TEST: Add a test for inquiry version descriptors
...
Block devices should claim at least some version of SPC and SBC
2013-05-12 08:26:21 -07:00
Ronnie Sahlberg
ee689ee3fb
TESTS: Update the protection tests
2013-05-12 08:06:08 -07:00
Ronnie Sahlberg
5135836ee5
TESTS: keep the unmarshalled std inq structure around
2013-05-11 17:07:59 -07:00
Ronnie Sahlberg
b7dd6b533b
TEST: Add a test that is cmdsn is too low the target just ignores the pdu
2013-04-30 19:05:23 -07:00
Ronnie Sahlberg
1a275bbecc
TEST: rename the cmdsn too high test
2013-04-30 18:32:09 -07:00
Ronnie Sahlberg
4a8d967541
Add support for synchronous command timeout.
...
Default to 0 meaning no timeout.
Implement a test for iSCS to test what happens if we send a command
with CMDSN being higher than the target allows.
In this case we dont strictly know what will happen, just that what should
NOT happen is the target responding with success.
But we have to be prepared for any kind of failure, including a timeout,
scsi sense, or even iscsi reject or session failure.
2013-04-29 20:42:33 -07:00
Ronnie Sahlberg
5bce69f1f3
TEST: rename the usb block device tests to usb-sbc
2013-04-27 20:39:30 -07:00
Ronnie Sahlberg
4222d5fcd7
TESTS: Add another level for the test hiearchy : Familt/Suite/Test
...
and add 4 basic families : ALL, SCSI, iSCSI and USB-MEMORY-STICK
2013-04-27 13:57:57 -07:00
Ronnie Sahlberg
9d44644c63
TESTS: Move the tests for iscsi residuals to its own suite
2013-04-27 10:15:30 -07:00
Ronnie Sahlberg
2627a8845e
TESTS: add a flag --usb so we can clamp all i/o to at most 120k
...
Add checks for maximum tranfer length to all commands that are limited
by BlockLimits/MTL
2013-04-27 09:59:59 -07:00
Ronnie Sahlberg
af6d1c9c13
Add a test for mandatory opcodes for SBC devices.
...
Note that Read16/Readcapacity16 are mandatory on SBC3 but not prior.
Not all mandatory opcodes are tested for yet.
2013-04-21 14:50:41 -07:00
Ronnie Sahlberg
2873b18bb7
TESTS: Add tests to verify that RELEASE6 is dropped on target/lun reset
2013-03-25 17:42:24 -07:00
Ronnie Sahlberg
1f54a3068c
TESTS: Add tests for residuals for WRITEVERIFY10/12/16
2013-03-24 09:29:03 -07:00
Ronnie Sahlberg
e1f15c8464
TESTS: Add tests that WRITE10/12/16 handle residuals correctly
...
Also test that IF the iSCSI layer provides 2 blocks of DATA-OUT but
the SCSI WRITE* command only covers one single block,
then only the first block will be modified but not the second block.
2013-03-24 08:56:23 -07:00
Ronnie Sahlberg
7cfcf32591
TESTS: Add tests for READ12/16 residuals
2013-03-23 15:50:57 -07:00
Ronnie Sahlberg
5b29ad2ddf
TESTS: Add test for READ10 to check that over/underflow residuals are generated correctly.
2013-03-23 12:44:55 -07:00
Ronnie Sahlberg
fd77387c66
TESTS: Add tests to verify a RESERVE6 is dropped on logout and it-nexus loss
2013-03-21 19:55:24 -07:00
Ronnie Sahlberg
6c0fd5cfa3
TESTS: Add RESERVE6/RELEASE6 tests
2013-03-21 19:41:32 -07:00
Ronnie Sahlberg
f11749ca52
TEST: Add test that all mandatoryb VPD pages are available on SBC devices
2013-03-12 19:26:39 -07:00
Ronnie Sahlberg
ec70169380
TEST: Add test for the supported VPD pages and that we can read them
2013-03-12 18:41:57 -07:00
Ronnie Sahlberg
e84b71af15
TEST: Add test for EVPD bit for INQUIRY commands
2013-03-12 18:29:24 -07:00
Ronnie Sahlberg
b10641566e
TESTS: Add tests for INQUIRY allocation length.
...
Add special test that for SPC3+ devices we do have 16 bits of alloc length available.
2013-03-11 18:32:29 -07:00
Ronnie Sahlberg
0bc415761a
TESTS: Add test for standard inquiry page
2013-03-10 19:02:45 -07:00
Ronnie Sahlberg
ad0b14e833
TEST: Add a test to verify PREVENT REMOVALs are seen across all nexuses
2013-03-03 13:44:16 -08:00
Ronnie Sahlberg
0d5c8a4f11
TESTS: Add test for PREVENTALLOWMEDIUMREMOVAL are cleared on lun/target reset
2013-03-03 13:37:52 -08:00
Ronnie Sahlberg
d288d5a8b6
TESTS: Add tests for prevent/allow medium removal
2013-03-03 10:05:57 -08:00
Ronnie Sahlberg
a2fd736930
TESTS: Add tests for medium access commands when medium is ejected
2013-03-03 09:26:34 -08:00
Ronnie Sahlberg
44c789c9c8
TESTS: Add tests for STARTSTOPUNIT
2013-03-02 16:53:40 -08:00
Lee Duncan
8493ec5837
Added persistent reservation ownership tests.
...
Created tests for all persistent reservation types that
verifies reservation ownership based on reservation
type.
2013-02-24 08:19:30 -08:00
Ronnie Sahlberg
41754b45e8
TESTS: Add tests for ORWRITE
2013-02-19 19:30:51 -08:00
Ronnie Sahlberg
fc1b2697d4
TESTS: Add tests for WRITEVERIFY10/12/16
2013-02-18 20:16:41 -08:00
Ronnie Sahlberg
02010f9157
TESTS: Add tests that medium changing commands fail for readonly devices
2013-02-18 19:28:53 -08:00
Ronnie Sahlberg
5fe7eb573c
TESTS: Add beyond eol test for GET_LBA_STATUS
2013-02-18 18:11:05 -08:00
Lee Duncan
07bb4d04d2
ported group reservation access control test to CUnit
...
Ported group reservation access control test to CUnit format.
This is the final group reservation test to be ported.
2013-02-18 06:58:34 -08:00
Lee Duncan
9b436eee2f
ported 3 more group reservation tests to CUnit
...
Ported 3 more group reservation tests to new the CUnit format.
2013-02-18 06:58:04 -08:00
Ronnie Sahlberg
a1590cf30c
TEST: Add simple test for GET_LBA_STATUS
2013-02-09 14:12:28 -08:00
Lee Duncan
3f4bb80fd4
Converted first PGR test to new CUnit format
...
Here's the patch that really adds the new test ... plz let me know if I did this incorrectly.
---------------------------------------------------------------
parent 93fd84ab52bc56f889dbd7970345d205ce03f958 (1.7.0-238-g93fd84a)
commit c5aa45226d054389280b763ce5754c5fa647b05c
Author: Lee Duncan <lduncan@suse.de >
Date: Wed Feb 6 13:43:08 2013 -0800
Converted first PGR test to new CUnit format
2013-02-09 12:05:57 -08:00
Lee Duncan
49d1f87d17
Clean up comment and usage message
...
parent df665e940aba51dbc6b1e7040bda476d66b6584f (1.7.0-237-gdf665e9)
commit 93fd84ab52bc56f889dbd7970345d205ce03f958
Author: Lee Duncan <lduncan@suse.de >
Date: Wed Feb 6 13:41:39 2013 -0800
Clean up comment and usage message
2013-02-09 12:04:12 -08:00
Ronnie Sahlberg
aefa88b724
TESTS: Add tests that WRITESAME10/16 UNMAP will unmap until end of the device when number-of-blocks is set to 0
2013-01-27 10:32:00 -08:00
Ronnie Sahlberg
8e85b87092
TESTS: Add tests for PREFETCH10/16 to the new test suite
2013-01-26 18:07:25 -08:00
Ronnie Sahlberg
0dbffe1a5d
TESTS Add tests for WRITESAME16 to the new testsuite
2013-01-26 09:18:39 -08:00
Ronnie Sahlberg
f8298d013c
TESTS: Add WRITESAME10 tests to the new testsuite
2013-01-26 09:05:02 -08:00
Ronnie Sahlberg
bfbde8b097
TEST: Add test for 0 blocks for UNMAP and fix num_blocks which was off by one
...
across the testsuite
2013-01-21 20:20:46 -08:00
Ronnie Sahlberg
2535eaed47
TEST add simple UNMAP test
2013-01-21 19:38:51 -08:00