Peter Lieven
8e4e03d85d
test-tool: allow get_lba_status to return provisioning type
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2014-08-13 17:02:51 +02:00
Bart Van Assche
b631a2146c
SPC-2 RESERVE tests: Use MODE SENSE instead of TEST UNIT READY
...
Although SPC-2 specifies that a reservation conflict should be
reported when TEST UNIT READY is received from another initiator than
the registered initiator, it is an established practice that TEST
UNIT READY is accepted in this case. Hence use the MODE SENSE command
to test the effect of the RESERVE command instead of TEST UNIT READY.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2014-08-04 16:05:25 -07:00
Ronnie Sahlberg
cefb6a6127
TESTS: update the get_lba_status + unmap test to account for lbppbe
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2014-07-16 05:37:34 -07:00
Ronnie Sahlberg
879f542ebf
TESTS: CompareAndWrite are bounded by the max block setting in BlockLimits
...
Make sure that we check that a target returns an error if we try to compare and write too much.
2014-03-05 18:47:24 -08:00
Ronnie Sahlberg
8aa6d9de8f
TESTS: Add a test for COMPARE_AND_WRITE when the data to verify does not match
2013-09-23 21:58:55 -07:00
Ronnie Sahlberg
9f1a28f753
TESTS: Add an initial simple test for COMPARE_AND_WRITE
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2013-09-22 17:02:30 -07:00
Ronnie Sahlberg
e7df1af3b9
TESTS: READ10 and STARTSTOPUNIT should fail while sanitize is in progress
...
Other commands should fail too but we dont need to test them all
2013-07-21 14:33:22 -07:00
Ronnie Sahlberg
d901700633
Add a test that a sanitize operation will continue across resets
...
Verify that abort task/abort task set/lun reset/warm reset/cold reset
and full blown session failures will not affect a sanitize that is in
progress
2013-07-21 14:11:13 -07:00
Ronnie Sahlberg
a3283fbafd
TESTS: Add a test that SANITIZE fails when SWP is on.
2013-07-09 02:27:30 -07:00
Ronnie Sahlberg
6e5a5745aa
TESTS: Add a test that SANITIZE commands fail when there is a RESERVATION
2013-07-09 01:51:00 -07:00
Ronnie Sahlberg
e31e0ce58d
TESTS: Log when we skip tests on normal log level, not just for -V
2013-07-08 00:23:39 -07:00
Ronnie Sahlberg
6a65874dd9
TESTS: Add helper function for READ10 that returns a task*
2013-07-05 16:14:21 -07:00
Ronnie Sahlberg
d8d10c0a44
TESTS: Sanitize check that after block erase all blocks are unmapped
2013-07-05 16:04:29 -07:00
Ronnie Sahlberg
cb793f01f3
TESTS: Fix typo. s/allow_sanitize/allow-sanitize/g
2013-06-01 08:40:43 -07:00
Ronnie Sahlberg
10d101cf51
TESTS: Try reading the BlockDeviceCharacteristics VPD page on startup
2013-05-26 19:53:27 -07:00
Ronnie Sahlberg
b193e08be8
Tests: Update the SANITIZE tests
2013-05-26 19:36:35 -07:00
Ronnie Sahlberg
e5e8d7e3ef
TESTS: Add a simple test for SANITIZE OVERWRITE
2013-05-26 11:48:45 -07:00
Ronnie Sahlberg
eebd04e613
Add initial support for SANITIZE and a simple test to generate this opcode.
2013-05-25 16:02:02 -07:00
Ronnie Sahlberg
c9ee8525b2
TESTS: Add a test for the reprot one command reporting options for
...
REPORT SUPPORTED OPCODES.
Opcodes that are listed in the full list of all supported opcodes as taking
a service action should work to ask reporting option 2 (uses service action)
from but fail when asked for option 1 (no service action)
Similarly, opcodes that are flagged as not taking a service action should
work when used with option 1 but fail with option 2.
2013-05-19 07:27:33 -07:00
Ronnie Sahlberg
709410b1d7
TESTS: Add some REPORT SUPPORTED OPCODES tests
...
Add a simple test that it works or is not implemented.
Add a RCTD test to verify that with this flag clear we get command descriptors without CTDP set and with it set we get command descriptors with CTDP set and a timeout descriptor
2013-05-18 13:56:02 -07:00
Ronnie Sahlberg
864bf81c56
TESTS: Test that WRITESAME10/16 unmap can handle big number of logical blocks when unmapping.
...
If BLockLimits->MaxWriteSameLength is 0 (no limit) or >=256
then verify that both WRITESAME10 and WRITESAME16 can unmap with a
number of blocks == 2 byte field.
If not, then verify that a 256 block unmap results in INVALID FIELD IN CDB
If BLockLimits->MaxWriteSameLength is 0 (no limit) or >=65536
then verify that WRITESAME16 can unmap with a
number of blocks == 3 byte field.
If not, then verify that a 65536 block unmap results in INVALID FIELD IN CDB
From discussions on linux-scsi there are devices that support WRITESAME16
but where the implementation only looks at the low 2 bytes of the 4 bytes for
num-blocks in the CDB.
This added test aims to find and flag such devices.
2013-05-15 19:50:41 -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
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
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
808eed9680
Make task->residual a size_t instead of an int
...
Update and improve the log messages for failures for the read10 invalid test
2013-03-23 11:23:02 -07:00
Ronnie Sahlberg
6c0fd5cfa3
TESTS: Add RESERVE6/RELEASE6 tests
2013-03-21 19:41:32 -07:00
Ronnie Sahlberg
e84b71af15
TEST: Add test for EVPD bit for INQUIRY commands
2013-03-12 18:29:24 -07:00
Ronnie Sahlberg
0bc415761a
TESTS: Add test for standard inquiry page
2013-03-10 19:02:45 -07: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
Lee Duncan
4c8770a405
Renamed group reservation routines with prin_*/prout_*
...
Renamed group reservation helper functions with prin_* or prout_*,
making it more clear what they are doing.
2013-02-18 06:55:59 -08:00
Lee Duncan
990af4a427
Added printf format checking to logging function.
...
This also required changing the logging of "" at the
start of each test to appeal the otherwise-friendly
compiler.
2013-02-13 18:04:51 -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
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
2535eaed47
TEST add simple UNMAP test
2013-01-21 19:38:51 -08:00
Ronnie Sahlberg
d7be22fa2f
TESTS: add READCAPACITY16 tests
2013-01-21 17:13:48 -08:00
Ronnie Sahlberg
ab3dfae005
TESTS add tests for VERIFY10 and VERIFY12
2013-01-21 14:50:40 -08:00
Ronnie Sahlberg
0e4e2e91bd
TESTS: Add VERIFY16 tests
2013-01-21 14:27:14 -08:00