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
5ad957b873
TESTS: Start fixing up the tests so we can test-suite them properly
...
Dont call READCAPACITY from every single test.
Remove two arguments from the test signatures and turn them into globals.
remove the ret++ silliness. Tests return 0 : all ok, -2, skipped or -1 : test failed
2012-12-26 18:34:12 -08:00
Arne Redlich
081ae59cdf
T0105_read10_invalid: suppress signed/unsigned comparison warnings
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 17:05:47 +01: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
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
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
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
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