Commit Graph

9 Commits

Author SHA1 Message Date
Sitsofe Wheeler
0b6b12ba53 TESTS: Fix COMPAREANDWRITE tests to send write data
Previously COMPAREANDWRITE was only sending verify instance data which
can cause targets to generate COMMAND ABORTED/NOT ENOUGH UNSOLICITED
DATA errors due to the buffer being obviously too small to contain
verify AND write instance data.

The buffer size check has been modified and compareandwrite tests
updated to pass a larger buffer with interesting write instance data.
2013-09-09 17:48:13 +01: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
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
09573068ad TESTS: Skipped tests should return -2 2012-08-31 14:19:11 -07:00
Ronnie Sahlberg
f3aacb3a5d TESTS: skip COMPARE-AND-WRITE tests on targets missing this opcode 2012-08-31 11:18:55 -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
Ronnie Sahlberg
6bbbff64fd Add some missing free calls 2012-07-14 18:10:04 +10:00
Ronnie Sahlberg
b5a6f7c3cb Bugfixes for the compare and write tests 2012-07-14 13:15:45 +10:00
Ronnie Sahlberg
17e3355dc2 TEST: Add tests for COMPAREANDWRITE 2012-07-14 13:06:24 +10:00