Michael Tokarev
120b308741
Spelling fixes: Dont => Don't
...
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2013-12-16 18:19:24 -08:00
Paolo Bonzini
3916872d27
use scsi_get/set_uint16/32/64 in tests
...
Fixes ARM problems too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-08-02 17:30:24 +02: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
c526b9e954
TESTS: remove compiler warnings
2012-08-31 15:26:23 -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
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