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
d2e68d7a25
T0122_read6_invalid: suppress signed/unsigned comparison warnings
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-02 21:16:45 +01:00
Arne Redlich
34b25f94c1
0122_read6_invalid.c: add missing include
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:53:08 +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
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