Paolo Bonzini
0abacf8fa4
test-tool: 0214 was reading twice from -1
...
It should read once from -1, once from 2^31.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-09-04 18:34:38 +02:00
Ronnie Sahlberg
d6bbe8fe44
TESTS: PREFETCH10/16, add test for prefetch-lengt==0
2012-09-03 10:00:53 -07:00
Ronnie Sahlberg
81e935ffb0
TESTS: PREFETCH10/16 are optional. Skip test if not supported on target
2012-09-03 09:52:43 -07:00
Ronnie Sahlberg
116af01156
TYPO: Change periperal_device_type to just device_type
...
but leave the old name as a define for backward compatibility
2012-09-03 09:45:59 -07:00
Ronnie Sahlberg
77fc2497f7
TESTS: Change all tests to use 'block_size' instead of hardcoded 512
...
This should allow the testst to work corectly on block devices with 4k blocksize too.
2012-09-03 08:58:56 -07:00
Ronnie Sahlberg
6ef4bbd3e1
TEST: add back extra test for invalid buffer offsets
2012-08-31 16:15:53 -07:00
Ronnie Sahlberg
6a24b283f8
TEST: If we timeout a test, drop all wait/out pdus from the list
...
we dont want the callbacks anymore.
2012-08-31 16:12:21 -07:00
Ronnie Sahlberg
c526b9e954
TESTS: remove compiler warnings
2012-08-31 15:26:23 -07:00
Ronnie Sahlberg
09573068ad
TESTS: Skipped tests should return -2
2012-08-31 14:19:11 -07:00
Ronnie Sahlberg
4df1525415
TESTS: Additional checks for missing opcodes and skipping tests
2012-08-31 11:42:44 -07:00
Ronnie Sahlberg
f3aacb3a5d
TESTS: skip COMPARE-AND-WRITE tests on targets missing this opcode
2012-08-31 11:18:55 -07:00
Ronnie Sahlberg
98d18d5c42
TESTS: Add remaining checks for *verify* opcode not implemented skip test
2012-08-30 20:30:28 -07:00
Ronnie Sahlberg
8bc3d51cd4
TESTS: improve verify tests to detect/abort on opcode not supported furthter
2012-08-30 20:22:16 -07:00
Ronnie Sahlberg
b4594c1ff3
TESTS: Add check and skip tests for targets that do not implement VERIFY*
2012-08-30 20:09:53 -07:00
Paolo Bonzini
e4377e7d91
iscsi-test: return -2 when skipping tests
...
This lets a test driver distinguish failure from skipping unsupported
tests.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-08-30 17:39:00 +02:00
Paolo Bonzini
c7b519524c
iscsi-test: prepare to return exit status 77 for skipped tests
...
Teach the test harness to distinguish skipped tests from failed tests.
Return -2 from a skipped test and, if no test was failed but some were
skipped, return 77 from the main program.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-08-30 17:38:12 +02:00
Paolo Bonzini
f04471d642
iscsi-test: do not test read-only for non-SBC devices
...
The device-specific parameter is not defined in MMC.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-08-30 17:38:05 +02:00
Paolo Bonzini
418058e52a
iscsi-test: do not test DPO/FUA for non-SBC devices
...
These bits are not defined in MMC.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-08-30 17:37:53 +02:00
Paolo Bonzini
560241b494
iscsi-test: avoid declaring struct inside parameter list
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2012-08-30 17:37:50 +02:00
Ronnie Sahlberg
d1c7b17cf5
TEST: Start adding tests for invalid BUFFEROFFSET in DATA-IN
2012-08-12 12:51:37 +10:00
Ronnie Sahlberg
7c2fada513
TEST: Add test that DATASN in reverse order is detected as an error
2012-08-12 11:12:12 +10:00
Ronnie Sahlberg
5754851b9d
TESTS: More tests for invalid DATASN
2012-08-10 16:48:17 +10:00
Ronnie Sahlberg
6412834754
TEST: Add test that invalid DATASN for DATAIN is detected as an error
...
Send a write containing two DATA-IN PDUs in a sequence but both PDUs have DATASN==0
This is an error and the target should react to this as an invalid command
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-08-10 16:08:55 +10:00
Ronnie Sahlberg
0cf42c3662
TESTS: Add a test for ISCSI CMDSN out of range
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-08-10 15:36:10 +10:00
Ronnie Sahlberg
1a387632a9
TEST: Use better default iscsi name for the test tool
2012-08-10 11:27:10 +10:00
Ronnie Sahlberg
d5d062a494
TESTS: For the invalid tests, treat the target dropping the session as OK
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-08-01 16:38:30 +10:00
Ronnie Sahlberg
77d8e41be7
TESTS: Add a mechanism to temporarily disable the session reconnect
...
Some tests may cause a target to drop the session.
For these tests we DO want the test tool to detect that the command
failed and later reconnect the session again when we proceed to the next subtest
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-08-01 16:32:40 +10:00
Ronnie Sahlberg
fbc4f3584b
TEST: Add initial test for "test that all mandatory SBC commands are there"
...
Some tests are just stubs since we underlying vommands have not been
implemented in libiscsi yet.
2012-07-22 08:52:25 +10:00
Ronnie Sahlberg
458c342839
typo
2012-07-22 07:37:04 +10:00
Ronnie Sahlberg
94cd6bf3b1
TEST: Add test that PREVENTs on different IT_Nexuses do not interfere
2012-07-21 15:04:53 +10:00
Ronnie Sahlberg
af9d3eab79
fix a typo
2012-07-21 12:27:51 +10:00
Ronnie Sahlberg
d8ed7d4053
TESTS, After a target/lun reset, wait until the lun stabilizes before continuing the tests
2012-07-21 12:26:24 +10:00
Ronnie Sahlberg
9205a71135
fix typo in test, we try to reset the LUN, not the target
2012-07-21 12:09:59 +10:00
Ronnie Sahlberg
313d579464
TEST: Add a test that a LUN reset will clear PREVENTALLOW
2012-07-21 12:05:25 +10:00
Ronnie Sahlberg
ca046ab342
TEST: add a test that a Cold Reset will clear PREVENTALLOW
2012-07-21 11:59:34 +10:00
Ronnie Sahlberg
7d0393452c
TEST: Add a test that PREVENTALLOW is cleared byb a warm reset
2012-07-21 11:53:26 +10:00
Ronnie Sahlberg
44bf8a5a3a
TEST: Add a test that a I_T_Nexus loss clears the PREVENTALLOW on that nexus
2012-07-21 11:17:09 +10:00
Ronnie Sahlberg
5953607743
TEST: add test that we can not eject media when PREVENTALLOW is set on the I_T_nexus
2012-07-21 10:43:33 +10:00
Ronnie Sahlberg
5cf3ccca75
TEST: Add simple test for PREVENTYALLLOWMEDIUMREMOVAL
2012-07-21 10:04:37 +10:00
Ronnie Sahlberg
b8e08a355d
TESTS: Add test for all media access commands that they fail correctly on ejected media
2012-07-18 08:03:29 +10:00
Ronnie Sahlberg
4a3935770d
TEST Add test for powercondition and eject
2012-07-16 21:43:27 +10:00
Ronnie Sahlberg
db68e68f6d
TEST: add simple test for STARTSTOPUNIT
2012-07-16 21:06:52 +10:00
Ronnie Sahlberg
1f40de8858
compiler warnings
2012-07-15 08:13:40 +10:00
Ronnie Sahlberg
e6ca1451b0
TEST add test for wrprotect field in ORWRITE
2012-07-14 18:38:48 +10:00
Ronnie Sahlberg
6bbbff64fd
Add some missing free calls
2012-07-14 18:10:04 +10:00
Ronnie Sahlberg
67f4ceca6b
Add COMPAREANDWRITE and ORWRITE to the readonly tests
2012-07-14 17:55:10 +10:00
Ronnie Sahlberg
030cb9134a
Add lba-out-of-range tests for ORWRITE
2012-07-14 17:45:43 +10:00
Ronnie Sahlberg
1a7a92024e
Fix typo in orwrite test
2012-07-14 17:30:57 +10:00
Ronnie Sahlberg
1ce5d97e57
TEST: Add test for ORWRITE command
2012-07-14 17:29:58 +10:00
Ronnie Sahlberg
bee944c3cc
update log message
2012-07-14 13:17:13 +10:00